mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
add test case for ignoring cert path error
This commit is contained in:
@@ -1434,6 +1434,11 @@ static int test_wolfSSL_CTX_load_verify_locations(void)
|
|||||||
ExpectIntEQ(wolfSSL_CTX_load_verify_locations(ctx, NULL, bogusFile),
|
ExpectIntEQ(wolfSSL_CTX_load_verify_locations(ctx, NULL, bogusFile),
|
||||||
WS_RETURN_CODE(BAD_PATH_ERROR,WOLFSSL_FAILURE));
|
WS_RETURN_CODE(BAD_PATH_ERROR,WOLFSSL_FAILURE));
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(WOLFSSL_QT) || defined(WOLFSSL_IGNORE_BAD_CERT_PATH)
|
||||||
|
/* test ignoring the invalid path */
|
||||||
|
ExpectIntEQ(wolfSSL_CTX_load_verify_locations_ex(ctx, NULL, bogusFile,
|
||||||
|
WOLFSSL_LOAD_FLAG_IGNORE_BAD_PATH_ERR), WOLFSSL_SUCCESS);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* load ca cert */
|
/* load ca cert */
|
||||||
#ifdef NO_RSA
|
#ifdef NO_RSA
|
||||||
|
Reference in New Issue
Block a user