diff --git a/test/oqs_test_kems.c b/test/oqs_test_kems.c index ca345c31..3b55bd38 100644 --- a/test/oqs_test_kems.c +++ b/test/oqs_test_kems.c @@ -105,9 +105,9 @@ int main(int argc, char *argv[]) } } - OSSL_LIB_CTX_free(libctx); if (OPENSSL_VERSION_PREREQ(3, 1)) OSSL_PROVIDER_unload(oqsprov); // avoid crash in 3.0.x + OSSL_LIB_CTX_free(libctx); TEST_ASSERT(errcnt == 0) return !test; } diff --git a/test/oqs_test_signatures.c b/test/oqs_test_signatures.c index 547a29ba..1277ff0a 100644 --- a/test/oqs_test_signatures.c +++ b/test/oqs_test_signatures.c @@ -122,9 +122,9 @@ int main(int argc, char *argv[]) } } - OSSL_LIB_CTX_free(libctx); if (OPENSSL_VERSION_PREREQ(3, 1)) OSSL_PROVIDER_unload(oqsprov); // avoid crash in 3.0.x + OSSL_LIB_CTX_free(libctx); TEST_ASSERT(errcnt == 0) return !test; diff --git a/test/oqs_test_tlssig.c b/test/oqs_test_tlssig.c index 405e343e..d1f114b0 100644 --- a/test/oqs_test_tlssig.c +++ b/test/oqs_test_tlssig.c @@ -178,9 +178,9 @@ int main(int argc, char *argv[]) "TLS-SIG handshake test not enabled. Update OpenSSL to more current version.\n"); #endif - OSSL_LIB_CTX_free(libctx); if (OPENSSL_VERSION_PREREQ(3, 1)) OSSL_PROVIDER_unload(oqsprov); // avoid crash in 3.0.x + OSSL_LIB_CTX_free(libctx); TEST_ASSERT(errcnt == 0) return !test; }