forked from wolfSSL/wolfssl
Add test
This commit is contained in:
@ -2312,6 +2312,10 @@ static int test_wolfSSL_CTX_use_PrivateKey_file(void)
|
|||||||
/* invalid key type */
|
/* invalid key type */
|
||||||
ExpectFalse(wolfSSL_CTX_use_PrivateKey_file(ctx, svrKeyFile, 9999));
|
ExpectFalse(wolfSSL_CTX_use_PrivateKey_file(ctx, svrKeyFile, 9999));
|
||||||
|
|
||||||
|
/* invalid key format */
|
||||||
|
ExpectFalse(wolfSSL_CTX_use_PrivateKey_file(ctx, "./certs/dh-priv-2048.pem",
|
||||||
|
WOLFSSL_FILETYPE_PEM));
|
||||||
|
|
||||||
/* success */
|
/* success */
|
||||||
#ifdef NO_RSA
|
#ifdef NO_RSA
|
||||||
/* rsa needed */
|
/* rsa needed */
|
||||||
|
Reference in New Issue
Block a user