We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f01c9d commit 71ebad1Copy full SHA for 71ebad1
1 file changed
tests/api.c
@@ -2312,6 +2312,10 @@ static int test_wolfSSL_CTX_use_PrivateKey_file(void)
2312
/* invalid key type */
2313
ExpectFalse(wolfSSL_CTX_use_PrivateKey_file(ctx, svrKeyFile, 9999));
2314
2315
+ /* invalid key format */
2316
+ ExpectFalse(wolfSSL_CTX_use_PrivateKey_file(ctx, "./certs/dh-priv-2048.pem",
2317
+ WOLFSSL_FILETYPE_PEM));
2318
+
2319
/* success */
2320
#ifdef NO_RSA
2321
/* rsa needed */
0 commit comments