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_BASE_X509_UTIL_IOS_H_ |
9 #define NET_BASE_X509_UTIL_IOS_H_ | 9 #define NET_BASE_X509_UTIL_IOS_H_ |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 }; | 54 }; |
55 | 55 |
56 // A wrapper class that loads a certificate and all of its intermediates into | 56 // A wrapper class that loads a certificate and all of its intermediates into |
57 // NSS. This is necessary for libpkix path building to be able to locate | 57 // NSS. This is necessary for libpkix path building to be able to locate |
58 // needed intermediates. | 58 // needed intermediates. |
59 class NSSCertChain { | 59 class NSSCertChain { |
60 public: | 60 public: |
61 explicit NSSCertChain(X509Certificate* certificate); | 61 explicit NSSCertChain(X509Certificate* certificate); |
62 ~NSSCertChain(); | 62 ~NSSCertChain(); |
63 CERTCertificate* cert_handle() const; | 63 CERTCertificate* cert_handle() const; |
| 64 const std::vector<CERTCertificate*>& cert_chain() const; |
64 private: | 65 private: |
65 std::vector<CERTCertificate*> certs_; | 66 std::vector<CERTCertificate*> certs_; |
66 }; | 67 }; |
67 | 68 |
68 } // namespace x509_util_ios | 69 } // namespace x509_util_ios |
69 } // namespace net | 70 } // namespace net |
70 | 71 |
71 #endif // NET_BASE_X509_UTIL_IOS_H_ | 72 #endif // NET_BASE_X509_UTIL_IOS_H_ |
OLD | NEW |