Edge case fix for AKID not set in CA and two CAs with same issuer line

This commit is contained in:
kaleb-himes
2019-03-07 11:30:13 -07:00
parent 0e962aa6e5
commit 413e3b36cb

View File

@ -8079,6 +8079,8 @@ int ParseCertRelative(DecodedCert* cert, int type, int verify, void* cm)
#ifndef NO_SKID
if (cert->extAuthKeyIdSet)
cert->ca = GetCA(cm, cert->extAuthKeyId);
if (cert->ca == NULL)
cert->ca = GetCA(cm, cert->extSubjKeyId);
if (cert->ca == NULL)
cert->ca = GetCAByName(cm, cert->issuerHash);