Added proper ifdef's to EccPrivateKeyToDer

This commit is contained in:
Ethan Looney
2020-08-06 08:06:06 -07:00
parent 9671901de6
commit afcb40724e

View File

@@ -20654,7 +20654,7 @@ static int test_ToTraditional (void)
static int test_wc_EccPrivateKeyToDer (void) static int test_wc_EccPrivateKeyToDer (void)
{ {
int ret = 0; int ret = 0;
#if (defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_KEY_GEN)) #if defined(HAVE_ECC) && !defined(WC_NO_RNG)
byte output[FOURK_BUF]; byte output[FOURK_BUF];
ecc_key eccKey; ecc_key eccKey;