- Timestamp:
- Dec 31, 2021 7:52:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/x509-certpaths.cpp
r91982 r93111 1127 1127 PRTCRX509ATTRIBUTETYPEANDVALUE pAttrib = pRdn->papItems[j]; 1128 1128 1129 const char *pszType = pAttrib->Type.szObjId; 1130 if ( !strncmp(pAttrib->Type.szObjId, "2.5.4.", 6) 1131 && (pAttrib->Type.szObjId[8] == '\0' || pAttrib->Type.szObjId[9] == '\0')) 1132 { 1133 switch (RTStrToUInt8(&pAttrib->Type.szObjId[6])) 1134 { 1135 case 3: pszType = "cn"; break; 1136 case 4: pszType = "sn"; break; 1137 case 5: pszType = "serialNumber"; break; 1138 case 6: pszType = "c"; break; 1139 case 7: pszType = "l"; break; 1140 case 8: pszType = "st"; break; 1141 case 9: pszType = "street"; break; 1142 case 10: pszType = "o"; break; 1143 case 11: pszType = "ou"; break; 1144 case 13: pszType = "description"; break; 1145 case 15: pszType = "businessCategory"; break; 1146 case 16: pszType = "postalAddress"; break; 1147 case 17: pszType = "postalCode"; break; 1148 case 18: pszType = "postOfficeBox"; break; 1149 case 20: pszType = "telephoneNumber"; break; 1150 case 26: pszType = "registeredAddress"; break; 1151 case 31: pszType = "member"; break; 1152 case 41: pszType = "name"; break; 1153 case 42: pszType = "givenName"; break; 1154 case 43: pszType = "initials"; break; 1155 case 45: pszType = "x500UniqueIdentifier"; break; 1156 case 50: pszType = "uniqueMember"; break; 1157 } 1158 } 1129 const char *pszType = RTCrX509Name_GetShortRdn(&pAttrib->Type); 1130 if (!pszType) 1131 pszType = pAttrib->Type.szObjId; 1159 1132 rtDumpPrintf(pfnPrintfV, pvUser, "/%s=", pszType); 1160 1133 if (pAttrib->Value.enmType == RTASN1TYPE_STRING)
Note:
See TracChangeset
for help on using the changeset viewer.