forked from wolfSSL/wolfssl
Merge pull request #7488 from SparkiDev/asn_template_debug_fix
Asn template debug fix
This commit is contained in:
@@ -1203,7 +1203,7 @@ static int GetASN_ObjectId(const byte* input, word32 idx, int length)
|
|||||||
/* OID data must be at least 3 bytes. */
|
/* OID data must be at least 3 bytes. */
|
||||||
if (length < 3) {
|
if (length < 3) {
|
||||||
#ifdef WOLFSSL_DEBUG_ASN_TEMPLATE
|
#ifdef WOLFSSL_DEBUG_ASN_TEMPLATE
|
||||||
WOLFSSL_MSG_VSNPRINTF("OID length must be 3 or more: %d", len);
|
WOLFSSL_MSG_VSNPRINTF("OID length must be 3 or more: %d", length);
|
||||||
#else
|
#else
|
||||||
WOLFSSL_MSG("OID length less than 3");
|
WOLFSSL_MSG("OID length less than 3");
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user