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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 extern SECOidTag ms_ntds_replication; | 64 extern SECOidTag ms_ntds_replication; |
65 | 65 |
66 void RegisterDynamicOids(); | 66 void RegisterDynamicOids(); |
67 | 67 |
68 // Format a SECItem as a space separated string, with 16 bytes on each line. | 68 // Format a SECItem as a space separated string, with 16 bytes on each line. |
69 std::string ProcessRawBytes(SECItem* data); | 69 std::string ProcessRawBytes(SECItem* data); |
70 | 70 |
71 // For fields which have the length specified in bits, rather than bytes. | 71 // For fields which have the length specified in bits, rather than bytes. |
72 std::string ProcessRawBits(SECItem* data); | 72 std::string ProcessRawBits(SECItem* data); |
73 | 73 |
74 // For host values, if they contain IDN Punycode-encoded A-labels, this will | |
75 // return a string suitable for display that contains both the original and the | |
76 // decoded U-label form. Otherwise, the string will be returned as is. | |
77 std::string ProcessIDN(const std::string& input); | |
78 | |
79 std::string DumpOidString(SECItem* oid); | 74 std::string DumpOidString(SECItem* oid); |
80 std::string GetOIDText(SECItem* oid); | 75 std::string GetOIDText(SECItem* oid); |
81 | 76 |
82 std::string ProcessRDN(CERTRDN* rdn); | 77 std::string ProcessRDN(CERTRDN* rdn); |
83 std::string ProcessName(CERTName* name); | 78 std::string ProcessName(CERTName* name); |
84 std::string ProcessBasicConstraints(SECItem* extension_data); | 79 std::string ProcessBasicConstraints(SECItem* extension_data); |
85 std::string ProcessGeneralName(PRArenaPool* arena, | 80 std::string ProcessGeneralName(PRArenaPool* arena, |
86 CERTGeneralName* current); | 81 CERTGeneralName* current); |
87 std::string ProcessGeneralNames(PRArenaPool* arena, | 82 std::string ProcessGeneralNames(PRArenaPool* arena, |
88 CERTGeneralName* name_list); | 83 CERTGeneralName* name_list); |
89 std::string ProcessAltName(SECItem* extension_data); | 84 std::string ProcessAltName(SECItem* extension_data); |
90 std::string ProcessSubjectKeyId(SECItem* extension_data); | 85 std::string ProcessSubjectKeyId(SECItem* extension_data); |
91 std::string ProcessAuthKeyId(SECItem* extension_data); | 86 std::string ProcessAuthKeyId(SECItem* extension_data); |
92 std::string ProcessCrlDistPoints(SECItem* extension_data); | 87 std::string ProcessCrlDistPoints(SECItem* extension_data); |
93 std::string ProcessAuthInfoAccess(SECItem* extension_data); | 88 std::string ProcessAuthInfoAccess(SECItem* extension_data); |
94 std::string ProcessIA5String(SECItem* extension_data); | 89 std::string ProcessIA5String(SECItem* extension_data); |
95 std::string ProcessBMPString(SECItem* extension_data); | 90 std::string ProcessBMPString(SECItem* extension_data); |
96 std::string ProcessNSCertTypeExtension(SECItem* extension_data); | 91 std::string ProcessNSCertTypeExtension(SECItem* extension_data); |
97 std::string ProcessKeyUsageBitString(SECItem* bitstring, char sep); | 92 std::string ProcessKeyUsageBitString(SECItem* bitstring, char sep); |
98 std::string ProcessKeyUsageExtension(SECItem* extension_data); | 93 std::string ProcessKeyUsageExtension(SECItem* extension_data); |
99 std::string ProcessExtKeyUsage(SECItem* extension_data); | 94 std::string ProcessExtKeyUsage(SECItem* extension_data); |
100 std::string ProcessExtensionData(SECOidTag oid_tag, SECItem* extension_data); | 95 std::string ProcessExtensionData(SECOidTag oid_tag, SECItem* extension_data); |
101 std::string ProcessSubjectPublicKeyInfo(CERTSubjectPublicKeyInfo* spki); | 96 std::string ProcessSubjectPublicKeyInfo(CERTSubjectPublicKeyInfo* spki); |
102 | 97 |
103 net::CertType GetCertType(CERTCertificate *cert); | 98 net::CertType GetCertType(CERTCertificate *cert); |
104 | 99 |
105 } // namespace mozilla_security_manager | 100 } // namespace mozilla_security_manager |
106 | 101 |
107 #endif // CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTHELPER_H_ | 102 #endif // CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTHELPER_H_ |
OLD | NEW |