Skip to content

Commit 7023d52

Browse files
committed
Fix for --enable-all --enable-asn=original.
1 parent 548a2c6 commit 7023d52

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

wolfssl/wolfcrypt/settings.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3023,13 +3023,15 @@ extern void uITRON4_free(void *p) ;
30233023
#endif
30243024

30253025
/* ASN Unknown Extension Callback support */
3026-
#if defined(WOLFSSL_CUSTOM_OID) && defined(HAVE_OID_DECODING)
3026+
#if defined(WOLFSSL_CUSTOM_OID) && defined(HAVE_OID_DECODING) && \
3027+
defined(WOLFSSL_ASN_TEMPLATE)
30273028
#undef WC_ASN_UNKNOWN_EXT_CB
30283029
#define WC_ASN_UNKNOWN_EXT_CB
3029-
#endif
3030-
3031-
#if defined(WC_ASN_UNKNOWN_EXT_CB) && !defined(WOLFSSL_ASN_TEMPLATE)
3032-
#error ASN unknown extension callback is only supported with ASN template
3030+
#else
3031+
/* if user supplied build option and not using ASN template, raise error */
3032+
#if defined(WC_ASN_UNKNOWN_EXT_CB) && !defined(WOLFSSL_ASN_TEMPLATE)
3033+
#error ASN unknown extension callback is only supported with ASN template
3034+
#endif
30333035
#endif
30343036

30353037

0 commit comments

Comments
 (0)