Skip to content

Commit

Permalink
Fix compile error, OSSL_STACK_OF_X509_free undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
dongbeiouba committed Mar 15, 2024
1 parent 6a3fad4 commit 4b2fa06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pkcs12_api_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static int changepass(PKCS12 *p12, EVP_PKEY *key, X509 *cert, STACK_OF(X509) *ca
PKCS12_free(p12new);
EVP_PKEY_free(key2);
X509_free(cert2);
OSSL_STACK_OF_X509_free(ca2);
sk_X509_pop_free(ca2, X509_free);
return ret;
}

Expand Down Expand Up @@ -130,7 +130,7 @@ static int pkcs12_parse_test(void)
PKCS12_free(p12);
EVP_PKEY_free(key);
X509_free(cert);
OSSL_STACK_OF_X509_free(ca);
sk_X509_pop_free(ca, X509_free);
return TEST_true(ret);
}

Expand Down Expand Up @@ -222,7 +222,7 @@ static int pkcs12_create_ex2_test(int test)
PKCS12_free(ptr);
EVP_PKEY_free(key);
X509_free(cert);
OSSL_STACK_OF_X509_free(ca);
sk_X509_pop_free(ca, X509_free);
return TEST_true(ret);
}

Expand Down

0 comments on commit 4b2fa06

Please sign in to comment.