diff options
Diffstat (limited to 'test/verify_extra_test.c')
-rw-r--r-- | test/verify_extra_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/verify_extra_test.c b/test/verify_extra_test.c index 5f664f531bd8..57f761f078e5 100644 --- a/test/verify_extra_test.c +++ b/test/verify_extra_test.c @@ -75,7 +75,7 @@ static int test_alt_chains_cert_forgery(void) lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file()); if (lookup == NULL) goto err; - if (!X509_LOOKUP_load_file(lookup, roots_f, X509_FILETYPE_PEM)) + if (X509_LOOKUP_load_file(lookup, roots_f, X509_FILETYPE_PEM) <= 0) goto err; untrusted = load_certs_pem(untrusted_f); @@ -99,7 +99,7 @@ static int test_alt_chains_cert_forgery(void) err: X509_STORE_CTX_free(sctx); X509_free(x); - sk_X509_pop_free(untrusted, X509_free); + OSSL_STACK_OF_X509_free(untrusted); X509_STORE_free(store); return ret; } @@ -266,8 +266,8 @@ static int do_test_purpose(int purpose, int expected) testresult = 1; err: - sk_X509_pop_free(trusted, X509_free); - sk_X509_pop_free(untrusted, X509_free); + OSSL_STACK_OF_X509_free(trusted); + OSSL_STACK_OF_X509_free(untrusted); X509_STORE_CTX_free(ctx); X509_free(eecert); X509_free(untrcert); |