Skip to content

Commit 2b503da

Browse files
committed
Fix from review
1 parent a6fd25b commit 2b503da

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/api/test_ossl_x509_str.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ static int test_wolfSSL_X509_STORE_CTX_ex_partial_chain_mixed(
854854
1);
855855
/* Must verify: chain terminates at trusted intermediate in the store. */
856856
ExpectIntEQ(X509_verify_cert(ctx), 1);
857+
ExpectIntEQ(X509_STORE_CTX_get_error(ctx), X509_V_OK);
857858

858859
X509_STORE_CTX_free(ctx);
859860
X509_STORE_free(store);
@@ -899,6 +900,8 @@ static int test_wolfSSL_X509_STORE_CTX_ex_partial_chain_untrusted_terminal(
899900
/* Must NOT verify: the chain terminal (x509CaInt2) is not in the
900901
* original trust set, even though the store is non-empty. */
901902
ExpectIntNE(X509_verify_cert(ctx), 1);
903+
ExpectIntEQ(X509_STORE_CTX_get_error(ctx),
904+
X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY);
902905

903906
X509_STORE_CTX_free(ctx);
904907
X509_STORE_free(store);

0 commit comments

Comments
 (0)