File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments