| OLD | NEW |
| 1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
| 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 * | 3 * |
| 4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
| 5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
| 7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
| 8 * | 8 * |
| 9 * Software distributed under the License is distributed on an "AS IS" basis, | 9 * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 extern SECOidTag ms_ntds_replication; | 74 extern SECOidTag ms_ntds_replication; |
| 75 | 75 |
| 76 void RegisterDynamicOids(); | 76 void RegisterDynamicOids(); |
| 77 | 77 |
| 78 // Format a SECItem as a space separated string, with 16 bytes on each line. | 78 // Format a SECItem as a space separated string, with 16 bytes on each line. |
| 79 std::string ProcessRawBytes(SECItem* data); | 79 std::string ProcessRawBytes(SECItem* data); |
| 80 | 80 |
| 81 // For fields which have the length specified in bits, rather than bytes. | 81 // For fields which have the length specified in bits, rather than bytes. |
| 82 std::string ProcessRawBits(SECItem* data); | 82 std::string ProcessRawBits(SECItem* data); |
| 83 | 83 |
| 84 // For host values, if they contain IDN Punycode-encoded A-labels, this will |
| 85 // return a string suitable for display that contains both the original and the |
| 86 // decoded U-label form. Otherwise, the string will be returned as is. |
| 87 std::string ProcessIDN(const std::string& input); |
| 88 |
| 84 std::string DumpOidString(SECItem* oid); | 89 std::string DumpOidString(SECItem* oid); |
| 85 std::string GetOIDText(SECItem* oid); | 90 std::string GetOIDText(SECItem* oid); |
| 86 | 91 |
| 87 std::string ProcessRDN(CERTRDN* rdn); | 92 std::string ProcessRDN(CERTRDN* rdn); |
| 88 std::string ProcessName(CERTName* name); | 93 std::string ProcessName(CERTName* name); |
| 89 std::string ProcessBasicConstraints(SECItem* extension_data); | 94 std::string ProcessBasicConstraints(SECItem* extension_data); |
| 90 std::string ProcessGeneralName(PRArenaPool* arena, | 95 std::string ProcessGeneralName(PRArenaPool* arena, |
| 91 CERTGeneralName* current); | 96 CERTGeneralName* current); |
| 92 std::string ProcessGeneralNames(PRArenaPool* arena, | 97 std::string ProcessGeneralNames(PRArenaPool* arena, |
| 93 CERTGeneralName* name_list); | 98 CERTGeneralName* name_list); |
| 94 std::string ProcessAltName(SECItem* extension_data); | 99 std::string ProcessAltName(SECItem* extension_data); |
| 95 std::string ProcessSubjectKeyId(SECItem* extension_data); | 100 std::string ProcessSubjectKeyId(SECItem* extension_data); |
| 96 std::string ProcessAuthKeyId(SECItem* extension_data); | 101 std::string ProcessAuthKeyId(SECItem* extension_data); |
| 97 std::string ProcessCrlDistPoints(SECItem* extension_data); | 102 std::string ProcessCrlDistPoints(SECItem* extension_data); |
| 98 std::string ProcessAuthInfoAccess(SECItem* extension_data); | 103 std::string ProcessAuthInfoAccess(SECItem* extension_data); |
| 99 std::string ProcessIA5String(SECItem* extension_data); | 104 std::string ProcessIA5String(SECItem* extension_data); |
| 100 std::string ProcessBMPString(SECItem* extension_data); | 105 std::string ProcessBMPString(SECItem* extension_data); |
| 101 std::string ProcessNSCertTypeExtension(SECItem* extension_data); | 106 std::string ProcessNSCertTypeExtension(SECItem* extension_data); |
| 102 std::string ProcessKeyUsageBitString(SECItem* bitstring, char sep); | 107 std::string ProcessKeyUsageBitString(SECItem* bitstring, char sep); |
| 103 std::string ProcessKeyUsageExtension(SECItem* extension_data); | 108 std::string ProcessKeyUsageExtension(SECItem* extension_data); |
| 104 std::string ProcessExtKeyUsage(SECItem* extension_data); | 109 std::string ProcessExtKeyUsage(SECItem* extension_data); |
| 105 std::string ProcessExtensionData(SECOidTag oid_tag, SECItem* extension_data); | 110 std::string ProcessExtensionData(SECOidTag oid_tag, SECItem* extension_data); |
| 106 std::string ProcessSubjectPublicKeyInfo(CERTSubjectPublicKeyInfo* spki); | 111 std::string ProcessSubjectPublicKeyInfo(CERTSubjectPublicKeyInfo* spki); |
| 107 | 112 |
| 108 CertType GetCertType(CERTCertificate *cert); | 113 CertType GetCertType(CERTCertificate *cert); |
| 109 | 114 |
| 110 } // namespace mozilla_security_manager | 115 } // namespace mozilla_security_manager |
| 111 | 116 |
| 112 #endif // CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTHELPER_H_ | 117 #endif // CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTHELPER_H_ |
| OLD | NEW |