Merge pull request #2147 from kaleb-himes/ZD4615-extAuthKeyIdNotSetInCAFix

Edge case fix for AKID not set in CA and two CAs with same issuer line
This commit is contained in:
John Safranek
2019-03-12 11:59:10 -07:00
committed by GitHub

View File

@ -8086,6 +8086,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->extSubjKeyIdSet)
cert->ca = GetCA(cm, cert->extSubjKeyId);
if (cert->ca == NULL)
cert->ca = GetCAByName(cm, cert->issuerHash);