forked from wolfSSL/wolfssl
fix nid2oid/oid2nid for oidCertAuthInfoType
This commit is contained in:
@@ -50716,9 +50716,9 @@ word32 nid2oid(int nid, int grp)
|
|||||||
/* oidCertAuthInfoType */
|
/* oidCertAuthInfoType */
|
||||||
case oidCertAuthInfoType:
|
case oidCertAuthInfoType:
|
||||||
switch (nid) {
|
switch (nid) {
|
||||||
case AIA_OCSP_OID:
|
case NID_ad_OCSP:
|
||||||
return AIA_OCSP_OID;
|
return AIA_OCSP_OID;
|
||||||
case AIA_CA_ISSUER_OID:
|
case NID_ad_ca_issuers:
|
||||||
return AIA_CA_ISSUER_OID;
|
return AIA_CA_ISSUER_OID;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -51069,9 +51069,9 @@ int oid2nid(word32 oid, int grp)
|
|||||||
case oidCertAuthInfoType:
|
case oidCertAuthInfoType:
|
||||||
switch (oid) {
|
switch (oid) {
|
||||||
case AIA_OCSP_OID:
|
case AIA_OCSP_OID:
|
||||||
return AIA_OCSP_OID;
|
return NID_ad_OCSP;
|
||||||
case AIA_CA_ISSUER_OID:
|
case AIA_CA_ISSUER_OID:
|
||||||
return AIA_CA_ISSUER_OID;
|
return NID_ad_ca_issuers;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -43795,7 +43795,7 @@ static void test_wolfSSL_X509V3_EXT(void) {
|
|||||||
#endif
|
#endif
|
||||||
AssertNotNull(adObj = ad->method);
|
AssertNotNull(adObj = ad->method);
|
||||||
/* Make sure nid is OCSP */
|
/* Make sure nid is OCSP */
|
||||||
AssertIntEQ(wolfSSL_OBJ_obj2nid(adObj), AIA_OCSP_OID);
|
AssertIntEQ(wolfSSL_OBJ_obj2nid(adObj), NID_ad_OCSP);
|
||||||
|
|
||||||
/* GENERAL_NAME stores URI as an ASN1_STRING */
|
/* GENERAL_NAME stores URI as an ASN1_STRING */
|
||||||
AssertNotNull(gn = ad->location);
|
AssertNotNull(gn = ad->location);
|
||||||
|
@@ -14732,7 +14732,7 @@ static int DecodeAuthInfo(const byte* input, int sz, DecodedCert* cert)
|
|||||||
{
|
{
|
||||||
cert->extAuthInfoSz = length;
|
cert->extAuthInfoSz = length;
|
||||||
cert->extAuthInfo = input + idx;
|
cert->extAuthInfo = input + idx;
|
||||||
#if defined(OPENSSL_ALL) && defined(WOLFSSL_QT)
|
#if defined(OPENSSL_ALL) || defined(WOLFSSL_QT)
|
||||||
count++;
|
count++;
|
||||||
#else
|
#else
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user