From be4d3c8321d2123825beb14bf20cc96aa14163ad Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 20 Dec 2017 15:02:35 -0700 Subject: [PATCH] fix for SetBitString() defined but not used --- wolfcrypt/src/asn.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 272fb19bc..9ebbb0112 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -648,9 +648,13 @@ static int CheckBitString(const byte* input, word32* inOutIdx, int* len, return 0; } +/* RSA (with CertGen or KeyGen) OR ECC OR ED25519 (with CertGen or KeyGen) */ #if (!defined(NO_RSA) && !defined(HAVE_USER_RSA) && \ - (defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_KEY_GEN))) || \ - defined(HAVE_ECC) || defined(HAVE_ED25519) + (defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_KEY_GEN))) || \ + defined(HAVE_ECC) || \ + (defined(HAVE_ED25519) && \ + (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.