OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_X509_CERTIFICATE_H_ | 5 #ifndef NET_BASE_X509_CERTIFICATE_H_ |
6 #define NET_BASE_X509_CERTIFICATE_H_ | 6 #define NET_BASE_X509_CERTIFICATE_H_ |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Predicate functor used in maps when X509Certificate is used as the key. | 85 // Predicate functor used in maps when X509Certificate is used as the key. |
86 class NET_EXPORT LessThan { | 86 class NET_EXPORT LessThan { |
87 public: | 87 public: |
88 bool operator() (X509Certificate* lhs, X509Certificate* rhs) const; | 88 bool operator() (X509Certificate* lhs, X509Certificate* rhs) const; |
89 }; | 89 }; |
90 | 90 |
91 enum VerifyFlags { | 91 enum VerifyFlags { |
92 VERIFY_REV_CHECKING_ENABLED = 1 << 0, | 92 VERIFY_REV_CHECKING_ENABLED = 1 << 0, |
93 VERIFY_EV_CERT = 1 << 1, | 93 VERIFY_EV_CERT = 1 << 1, |
94 VERIFY_CERT_IO_ENABLED = 1 << 2, | 94 VERIFY_CERT_IO_ENABLED = 1 << 2, |
| 95 VERIFY_REV_CHECKING_ENABLED_EV_ONLY = 1 << 3, |
95 }; | 96 }; |
96 | 97 |
97 enum Format { | 98 enum Format { |
98 // The data contains a single DER-encoded certificate, or a PEM-encoded | 99 // The data contains a single DER-encoded certificate, or a PEM-encoded |
99 // DER certificate with the PEM encoding block name of "CERTIFICATE". | 100 // DER certificate with the PEM encoding block name of "CERTIFICATE". |
100 // Any subsequent blocks will be ignored. | 101 // Any subsequent blocks will be ignored. |
101 FORMAT_SINGLE_CERTIFICATE = 1 << 0, | 102 FORMAT_SINGLE_CERTIFICATE = 1 << 0, |
102 | 103 |
103 // The data contains a sequence of one or more PEM-encoded, DER | 104 // The data contains a sequence of one or more PEM-encoded, DER |
104 // certificates, with the PEM encoding block name of "CERTIFICATE". | 105 // certificates, with the PEM encoding block name of "CERTIFICATE". |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 // based on the type of the certificate. | 518 // based on the type of the certificate. |
518 std::string default_nickname_; | 519 std::string default_nickname_; |
519 #endif | 520 #endif |
520 | 521 |
521 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 522 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
522 }; | 523 }; |
523 | 524 |
524 } // namespace net | 525 } // namespace net |
525 | 526 |
526 #endif // NET_BASE_X509_CERTIFICATE_H_ | 527 #endif // NET_BASE_X509_CERTIFICATE_H_ |
OLD | NEW |