Skip to content

Commit 2d8e853

Browse files
committed
Fix compile issue with --enable-crl and --disable-ecc
1 parent 6fc93ac commit 2d8e853

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3817,7 +3817,7 @@ int CheckBitString(const byte* input, word32* inOutIdx, int* len,
38173817
}
38183818

38193819
/* RSA (with CertGen or KeyGen) OR ECC OR ED25519 OR ED448 (with CertGen or
3820-
* KeyGen) */
3820+
* KeyGen) OR CRL */
38213821
#if (!defined(NO_RSA) && \
38223822
(defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_KEY_GEN) || \
38233823
defined(OPENSSL_EXTRA))) || \
@@ -3827,7 +3827,8 @@ int CheckBitString(const byte* input, word32* inOutIdx, int* len,
38273827
defined(OPENSSL_EXTRA))) || \
38283828
(defined(WC_ENABLE_ASYM_KEY_EXPORT) && !defined(NO_CERTS)) || \
38293829
(!defined(NO_DSA) && !defined(HAVE_SELFTEST) && defined(WOLFSSL_KEY_GEN)) || \
3830-
(!defined(NO_DH) && defined(WOLFSSL_DH_EXTRA))
3830+
(!defined(NO_DH) && defined(WOLFSSL_DH_EXTRA)) || \
3831+
defined(HAVE_CRL)
38313832

38323833
/* Set the DER/BER encoding of the ASN.1 BIT STRING header.
38333834
*
@@ -3865,7 +3866,7 @@ word32 SetBitString(word32 len, byte unusedBits, byte* output)
38653866
/* Return index after header. */
38663867
return idx;
38673868
}
3868-
#endif /* !NO_RSA || HAVE_ECC || HAVE_ED25519 || HAVE_ED448 */
3869+
#endif /* !NO_RSA || HAVE_ECC || HAVE_ED25519 || HAVE_ED448 || HAVE_CRL */
38693870

38703871
#ifdef ASN_BER_TO_DER
38713872

0 commit comments

Comments
 (0)