crypt32: Copy the CRL_INFO structure instead of recalculating it.
commitbdcddf024ff36a731acfd8a2086af1f34a21cc7d
authorZebediah Figura <zfigura@codeweavers.com>
Thu, 15 Jul 2021 16:25:17 +0000 (15 11:25 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 21 Jul 2021 20:02:23 +0000 (21 22:02 +0200)
tree37dc2b854976ad17ffca5784ff6b31f61bf46e23
parent1c501c65875f9bb1bb3d1ae3023563a1f9422ce8
crypt32: Copy the CRL_INFO structure instead of recalculating it.

Steam calls CertGetCertificateChain() on a certificate with a 20 MB CRL, which
can take over 400 ms to parse each time. Avoid parsing it more often than we
need to.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/crypt32/crl.c