OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UTIL_NSS_H_ | 5 #ifndef NET_CERT_X509_UTIL_NSS_H_ |
6 #define NET_BASE_X509_UTIL_NSS_H_ | 6 #define NET_CERT_X509_UTIL_NSS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "net/base/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
13 | 13 |
14 class PickleIterator; | 14 class PickleIterator; |
15 | 15 |
16 typedef struct CERTCertificateStr CERTCertificate; | 16 typedef struct CERTCertificateStr CERTCertificate; |
17 typedef struct CERTNameStr CERTName; | 17 typedef struct CERTNameStr CERTName; |
18 typedef struct PLArenaPool PLArenaPool; | 18 typedef struct PLArenaPool PLArenaPool; |
19 typedef struct SECKEYPrivateKeyStr SECKEYPrivateKey; | 19 typedef struct SECKEYPrivateKeyStr SECKEYPrivateKey; |
20 typedef struct SECItemStr SECItem; | 20 typedef struct SECItemStr SECItem; |
21 typedef struct SECKEYPublicKeyStr SECKEYPublicKey; | 21 typedef struct SECKEYPublicKeyStr SECKEYPublicKey; |
22 | 22 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // a DER-encoded X.509 Distinguished Name. | 91 // a DER-encoded X.509 Distinguished Name. |
92 bool IsCertificateIssuedBy(const std::vector<CERTCertificate*>& cert_chain, | 92 bool IsCertificateIssuedBy(const std::vector<CERTCertificate*>& cert_chain, |
93 const std::vector<CERTName*>& valid_issuers); | 93 const std::vector<CERTName*>& valid_issuers); |
94 | 94 |
95 #endif // defined(USE_NSS) || defined(OS_IOS) | 95 #endif // defined(USE_NSS) || defined(OS_IOS) |
96 | 96 |
97 } // namespace x509_util | 97 } // namespace x509_util |
98 | 98 |
99 } // namespace net | 99 } // namespace net |
100 | 100 |
101 #endif // NET_BASE_X509_UTIL_NSS_H_ | 101 #endif // NET_CERT_X509_UTIL_NSS_H_ |
OLD | NEW |