| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 // Adds all available SSL client identity certs to the given vector. | 208 // Adds all available SSL client identity certs to the given vector. |
| 209 // |server_domain| is a hint for which domain the cert is to be sent to | 209 // |server_domain| is a hint for which domain the cert is to be sent to |
| 210 // (a cert previously specified as the default for that domain will be given | 210 // (a cert previously specified as the default for that domain will be given |
| 211 // precedence and returned first in the output vector.) | 211 // precedence and returned first in the output vector.) |
| 212 // If valid_issuers is non-empty, only certs that were transitively issued by | 212 // If valid_issuers is non-empty, only certs that were transitively issued by |
| 213 // one of the given names will be included in the list. | 213 // one of the given names will be included in the list. |
| 214 static bool GetSSLClientCertificates( | 214 static bool GetSSLClientCertificates( |
| 215 const std::string& server_domain, | 215 const std::string& server_domain, |
| 216 const std::vector<CertPrincipal>& valid_issuers, | 216 const std::vector<CertPrincipal>& valid_issuers, |
| 217 std::vector<scoped_refptr<X509Certificate> >* certs); | 217 CertificateList* certs); |
| 218 | 218 |
| 219 // Creates the chain of certs to use for this client identity cert. | 219 // Creates the chain of certs to use for this client identity cert. |
| 220 CFArrayRef CreateClientCertificateChain() const; | 220 CFArrayRef CreateClientCertificateChain() const; |
| 221 #endif | 221 #endif |
| 222 | 222 |
| 223 #if defined(OS_WIN) | 223 #if defined(OS_WIN) |
| 224 // Returns a handle to a global, in-memory certificate store. We use it for | 224 // Returns a handle to a global, in-memory certificate store. We use it for |
| 225 // two purposes: | 225 // two purposes: |
| 226 // 1. Import server certificates into this store so that we can verify and | 226 // 1. Import server certificates into this store so that we can verify and |
| 227 // display the certificates using CryptoAPI. | 227 // display the certificates using CryptoAPI. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 // Where the certificate comes from. | 327 // Where the certificate comes from. |
| 328 Source source_; | 328 Source source_; |
| 329 | 329 |
| 330 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 330 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 } // namespace net | 333 } // namespace net |
| 334 | 334 |
| 335 #endif // NET_BASE_X509_CERTIFICATE_H_ | 335 #endif // NET_BASE_X509_CERTIFICATE_H_ |
| OLD | NEW |