initialize max pathlen to preserve ASN no signer error

This commit is contained in:
Kaleb Himes
2019-10-18 11:30:08 -06:00
committed by Jacob Barthelmeh
parent a0a572cf3e
commit 0eefa80d74

View File

@ -4455,6 +4455,7 @@ void InitDecodedCert(DecodedCert* cert,
cert->source = source; /* don't own */
cert->maxIdx = inSz; /* can't go over this index */
cert->heap = heap;
cert->maxPathLen = WOLFSSL_MAX_PATH_LEN;
#ifdef WOLFSSL_CERT_GEN
cert->subjectSNEnc = CTC_UTF8;
cert->subjectCEnc = CTC_PRINTABLE;