OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_CERT_INTERNAL_PARSE_NAME_H_ | 5 #ifndef NET_CERT_INTERNAL_PARSE_NAME_H_ |
6 #define NET_CERT_INTERNAL_PARSE_NAME_H_ | 6 #define NET_CERT_INTERNAL_PARSE_NAME_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 #include "net/der/input.h" | 11 #include "net/der/input.h" |
12 #include "net/der/parser.h" | 12 #include "net/der/parser.h" |
13 #include "net/der/tag.h" | 13 #include "net/der/tag.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 NET_EXPORT der::Input TypeCommonNameOid(); | 17 NET_EXPORT der::Input TypeCommonNameOid(); |
18 NET_EXPORT der::Input TypeSurnameOid(); | 18 NET_EXPORT der::Input TypeSurnameOid(); |
19 NET_EXPORT der::Input TypeSerialNumberOid(); | 19 NET_EXPORT der::Input TypeSerialNumberOid(); |
20 NET_EXPORT der::Input TypeCountryNameOid(); | 20 NET_EXPORT der::Input TypeCountryNameOid(); |
21 NET_EXPORT der::Input TypeLocalityNameOid(); | 21 NET_EXPORT der::Input TypeLocalityNameOid(); |
22 NET_EXPORT der::Input TypeStateOrProvinceNameOid(); | 22 NET_EXPORT der::Input TypeStateOrProvinceNameOid(); |
| 23 NET_EXPORT der::Input TypeStreetAddressOid(); |
23 NET_EXPORT der::Input TypeOrganizationNameOid(); | 24 NET_EXPORT der::Input TypeOrganizationNameOid(); |
24 NET_EXPORT der::Input TypeOrganizationUnitNameOid(); | 25 NET_EXPORT der::Input TypeOrganizationUnitNameOid(); |
25 NET_EXPORT der::Input TypeTitleOid(); | 26 NET_EXPORT der::Input TypeTitleOid(); |
26 NET_EXPORT der::Input TypeNameOid(); | 27 NET_EXPORT der::Input TypeNameOid(); |
27 NET_EXPORT der::Input TypeGivenNameOid(); | 28 NET_EXPORT der::Input TypeGivenNameOid(); |
28 NET_EXPORT der::Input TypeInitialsOid(); | 29 NET_EXPORT der::Input TypeInitialsOid(); |
29 NET_EXPORT der::Input TypeGenerationQualifierOid(); | 30 NET_EXPORT der::Input TypeGenerationQualifierOid(); |
| 31 NET_EXPORT der::Input TypeDomainComponentOid(); |
30 | 32 |
31 // X509NameAttribute contains a representation of a DER-encoded RFC 2253 | 33 // X509NameAttribute contains a representation of a DER-encoded RFC 2253 |
32 // "AttributeTypeAndValue". | 34 // "AttributeTypeAndValue". |
33 // | 35 // |
34 // AttributeTypeAndValue ::= SEQUENCE { | 36 // AttributeTypeAndValue ::= SEQUENCE { |
35 // type AttributeType, | 37 // type AttributeType, |
36 // value AttributeValue | 38 // value AttributeValue |
37 // } | 39 // } |
38 struct NET_EXPORT X509NameAttribute { | 40 struct NET_EXPORT X509NameAttribute { |
39 X509NameAttribute(der::Input in_type, | 41 X509NameAttribute(der::Input in_type, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 RDNSequence* out) WARN_UNUSED_RESULT; | 107 RDNSequence* out) WARN_UNUSED_RESULT; |
106 | 108 |
107 // Formats a RDNSequence |rdn_sequence| per RFC2253 as an ASCII string and | 109 // Formats a RDNSequence |rdn_sequence| per RFC2253 as an ASCII string and |
108 // stores the result into |out|, and returns whether the conversion was | 110 // stores the result into |out|, and returns whether the conversion was |
109 // successful. | 111 // successful. |
110 NET_EXPORT bool ConvertToRFC2253(const RDNSequence& rdn_sequence, | 112 NET_EXPORT bool ConvertToRFC2253(const RDNSequence& rdn_sequence, |
111 std::string* out) WARN_UNUSED_RESULT; | 113 std::string* out) WARN_UNUSED_RESULT; |
112 } // namespace net | 114 } // namespace net |
113 | 115 |
114 #endif // NET_CERT_INTERNAL_PARSE_NAME_H_ | 116 #endif // NET_CERT_INTERNAL_PARSE_NAME_H_ |
OLD | NEW |