mingw-openssl/0035-speed-skip-unavailable-dgst.patch
2023-05-31 15:21:45 +02:00

14 lines
594 B
Diff

diff -rupN --no-dereference openssl-3.0.9/apps/speed.c openssl-3.0.9-new/apps/speed.c
--- openssl-3.0.9/apps/speed.c 2023-05-31 14:33:11.679115195 +0200
+++ openssl-3.0.9-new/apps/speed.c 2023-05-31 14:33:13.533114404 +0200
@@ -591,6 +591,9 @@ static int EVP_MAC_loop(int algindex, vo
for (count = 0; COND(c[algindex][testnum]); count++) {
size_t outl;
+ if (mctx == NULL)
+ return -1;
+
if (!EVP_MAC_init(mctx, NULL, 0, NULL)
|| !EVP_MAC_update(mctx, buf, lengths[testnum])
|| !EVP_MAC_final(mctx, mac, &outl, sizeof(mac)))