From 76404c937ecd95a68582426bd526cbb48157c433 Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sat, 2 Nov 2019 13:01:40 +0900 Subject: [PATCH] #ifdef guard --- wolfcrypt/src/asn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 18a4b87de..943bd7949 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -7216,8 +7216,11 @@ static int DecodeBasicCaConstraint(const byte* input, int sz, DecodedCert* cert) * left empty. So, if the length is 0, just return. */ /* For OpenSSL compatibility, if ASN_INTEGER do nothing */ + #ifdef WOLFSSL_X509_BASICCONS_INT if (input[idx] == ASN_INTEGER) return 0; + #endif + ret = GetBoolean(input, &idx, sz); if (ret < 0) { WOLFSSL_MSG("\tfail: constraint not valid BOOLEAN");