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 // This file contains functions for iOS to glue NSS and Security.framework | 5 // This file contains functions for iOS to glue NSS and Security.framework |
6 // together. | 6 // together. |
7 | 7 |
8 #ifndef NET_BASE_X509_UTIL_IOS_H_ | 8 #ifndef NET_CERT_X509_UTIL_IOS_H_ |
9 #define NET_BASE_X509_UTIL_IOS_H_ | 9 #define NET_CERT_X509_UTIL_IOS_H_ |
10 | 10 |
11 #include <Security/Security.h> | 11 #include <Security/Security.h> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "net/base/x509_cert_types.h" | 14 #include "net/cert/x509_cert_types.h" |
15 | 15 |
16 // Forward declaration; real one in <cert.h> | 16 // Forward declaration; real one in <cert.h> |
17 typedef struct CERTCertificateStr CERTCertificate; | 17 typedef struct CERTCertificateStr CERTCertificate; |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 class X509Certificate; | 21 class X509Certificate; |
22 | 22 |
23 namespace x509_util_ios { | 23 namespace x509_util_ios { |
24 | 24 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 ~NSSCertChain(); | 62 ~NSSCertChain(); |
63 CERTCertificate* cert_handle() const; | 63 CERTCertificate* cert_handle() const; |
64 const std::vector<CERTCertificate*>& cert_chain() const; | 64 const std::vector<CERTCertificate*>& cert_chain() const; |
65 private: | 65 private: |
66 std::vector<CERTCertificate*> certs_; | 66 std::vector<CERTCertificate*> certs_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace x509_util_ios | 69 } // namespace x509_util_ios |
70 } // namespace net | 70 } // namespace net |
71 | 71 |
72 #endif // NET_BASE_X509_UTIL_IOS_H_ | 72 #endif // NET_CERT_X509_UTIL_IOS_H_ |
OLD | NEW |