diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 46ae3bd0c..177e44c82 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -804,7 +804,7 @@ static int SetASNInt(int len, byte firstByte, byte* output) } #endif -#if !defined(NO_DSA) || defined(HAVE_ECC) || (defined(WOLFSSL_KEY_GEN) && !defined(NO_RSA) && !defined(HAVE_USER_RSA)) +#if !defined(NO_DSA) || defined(HAVE_ECC) || defined(WOLFSSL_CERT_GEN) || (defined(WOLFSSL_KEY_GEN) && !defined(NO_RSA) && !defined(HAVE_USER_RSA)) /* Set the DER/BER encoding of the ASN.1 INTEGER element with an mp_int. * The number is assumed to be positive. * diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 527dd1679..28afc464d 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -13448,9 +13448,9 @@ int mp_test(void) int ret; #if defined(HAVE_ECC) || defined(WOLFSSL_KEY_GEN) int i, j, k; + mp_digit d; #endif mp_int a, b, r1, r2, p; - mp_digit d; ret = mp_init_multi(&a, &b, &r1, &r2, NULL, NULL); if (ret != 0)