mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
adjust test case for no ECC
This commit is contained in:
@@ -5047,13 +5047,9 @@ static void test_wolfSSL_PKCS8(void)
|
|||||||
AssertIntEQ(wolfSSL_CTX_use_PrivateKey_buffer(ctx, buffer, bytes,
|
AssertIntEQ(wolfSSL_CTX_use_PrivateKey_buffer(ctx, buffer, bytes,
|
||||||
WOLFSSL_FILETYPE_ASN1), WOLFSSL_SUCCESS);
|
WOLFSSL_FILETYPE_ASN1), WOLFSSL_SUCCESS);
|
||||||
#else
|
#else
|
||||||
#ifdef OPENSSL_EXTRA
|
/* if HAVE_ECC is not defined then BEGIN EC PRIVATE KEY is not found */
|
||||||
AssertIntGT((bytes = wc_KeyPemToDer(buffer, bytes, der,
|
|
||||||
(word32)sizeof(der), NULL)), 0);
|
|
||||||
#else
|
|
||||||
AssertIntEQ((bytes = wc_KeyPemToDer(buffer, bytes, der,
|
AssertIntEQ((bytes = wc_KeyPemToDer(buffer, bytes, der,
|
||||||
(word32)sizeof(der), NULL)), ASN_NO_PEM_HEADER);
|
(word32)sizeof(der), NULL)), ASN_NO_PEM_HEADER);
|
||||||
#endif
|
|
||||||
#endif /* HAVE_ECC */
|
#endif /* HAVE_ECC */
|
||||||
|
|
||||||
wolfSSL_CTX_free(ctx);
|
wolfSSL_CTX_free(ctx);
|
||||||
|
Reference in New Issue
Block a user