Fix missing symbol for specific configs

This commit is contained in:
Sean Parkinson 2017-04-04 14:33:14 +10:00
parent b02a75510e
commit 36e81b650e
1 changed files with 5 additions and 1 deletions

View File

@ -998,7 +998,11 @@ static int CheckBitString(const byte* input, word32* inOutIdx, int* len,
return 0;
}
#if !defined(NO_RSA) && (defined(WOLFSSL_CERT_GEN) || (defined(WOLFSSL_KEY_GEN) && !defined(HAVE_USER_RSA)))
#if (!defined(NO_RSA) && (defined(WOLFSSL_CERT_GEN) || \
(defined(WOLFSSL_KEY_GEN) && \
!defined(HAVE_USER_RSA)))) || \
(defined(HAVE_ECC) && (defined(WOLFSSL_CERT_GEN) || \
defined(WOLFSSL_KEY_GEN)))
/* Set the DER/BER encoding of the ASN.1 BIT_STRING header.
*
* len Length of data to encode.