File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments