@@ -22501,7 +22501,7 @@ int ParseCert(DecodedCert* cert, int type, int verify, void* cm)
2250122501 char* ptr;
2250222502#endif
2250322503
22504- ret = ParseCertRelative(cert, type, verify, cm);
22504+ ret = ParseCertRelative(cert, type, verify, cm, NULL );
2250522505 if (ret < 0)
2250622506 return ret;
2250722507
@@ -23399,7 +23399,7 @@ Signer* findSignerByName(Signer *list, byte *hash)
2339923399 return NULL;
2340023400}
2340123401
23402- int ParseCertRelativeEx (DecodedCert* cert, int type, int verify, void* cm, Signer *extraCAList)
23402+ int ParseCertRelative (DecodedCert* cert, int type, int verify, void* cm, Signer *extraCAList)
2340323403{
2340423404 int ret = 0;
2340523405#ifndef WOLFSSL_ASN_TEMPLATE
@@ -24056,11 +24056,6 @@ int ParseCertRelativeEx(DecodedCert* cert, int type, int verify, void* cm, Signe
2405624056 return ret;
2405724057}
2405824058
24059- int ParseCertRelative(DecodedCert* cert, int type, int verify, void* cm)
24060- {
24061- return ParseCertRelativeEx(cert, type, verify, cm, NULL);
24062- }
24063-
2406424059int FillSigner(Signer* signer, DecodedCert* cert, int type, DerBuffer *der)
2406524060{
2406624061 int ret = 0;
@@ -26681,7 +26676,7 @@ static int wc_SetCert_LoadDer(Cert* cert, const byte* der, word32 derSz,
2668126676 InitDecodedCert_ex((DecodedCert*)cert->decodedCert, der, derSz,
2668226677 cert->heap, devId);
2668326678 ret = ParseCertRelative((DecodedCert*)cert->decodedCert,
26684- CERT_TYPE, 0, NULL);
26679+ CERT_TYPE, 0, NULL, NULL );
2668526680 if (ret >= 0) {
2668626681 cert->der = (byte*)der;
2668726682 }
@@ -32425,7 +32420,7 @@ static int SetAltNamesFromCert(Cert* cert, const byte* der, int derSz,
3242532420#endif
3242632421
3242732422 InitDecodedCert_ex(decoded, der, (word32)derSz, NULL, devId);
32428- ret = ParseCertRelative(decoded, CA_TYPE, NO_VERIFY, 0);
32423+ ret = ParseCertRelative(decoded, CA_TYPE, NO_VERIFY, 0, NULL );
3242932424
3243032425 if (ret < 0) {
3243132426 WOLFSSL_MSG("ParseCertRelative error");
@@ -32624,7 +32619,7 @@ static int SetNameFromCert(CertName* cn, const byte* der, int derSz, int devId)
3262432619#endif
3262532620
3262632621 InitDecodedCert_ex(decoded, der, (word32)derSz, NULL, devId);
32627- ret = ParseCertRelative(decoded, CA_TYPE, NO_VERIFY, 0);
32622+ ret = ParseCertRelative(decoded, CA_TYPE, NO_VERIFY, 0, NULL );
3262832623
3262932624 if (ret < 0) {
3263032625 WOLFSSL_MSG("ParseCertRelative error");
@@ -36561,7 +36556,7 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex,
3656136556 cert_inited = 1;
3656236557
3656336558 /* Don't verify if we don't have access to Cert Manager. */
36564- ret = ParseCertRelativeEx (cert, CERT_TYPE,
36559+ ret = ParseCertRelative (cert, CERT_TYPE,
3656536560 noVerify ? NO_VERIFY : VERIFY_OCSP_CERT,
3656636561 cm, resp->pendingCAs);
3656736562 if (ret < 0) {
@@ -36723,7 +36718,7 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex,
3672336718 certInit = 1;
3672436719 /* Parse the certificate and don't verify if we don't have access to
3672536720 * Cert Manager. */
36726- ret = ParseCertRelativeEx (cert, CERT_TYPE, noVerify ? NO_VERIFY : VERIFY,
36721+ ret = ParseCertRelative (cert, CERT_TYPE, noVerify ? NO_VERIFY : VERIFY,
3672736722 cm, resp->pendingCAs);
3672836723 if (ret < 0) {
3672936724 WOLFSSL_MSG("\tOCSP Responder certificate parsing failed");
0 commit comments