| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 213 |
| 214 // Adds all available SSL client identity certs to the given vector. | 214 // Adds all available SSL client identity certs to the given vector. |
| 215 // |server_domain| is a hint for which domain the cert is to be sent to | 215 // |server_domain| is a hint for which domain the cert is to be sent to |
| 216 // (a cert previously specified as the default for that domain will be given | 216 // (a cert previously specified as the default for that domain will be given |
| 217 // precedence and returned first in the output vector.) | 217 // precedence and returned first in the output vector.) |
| 218 // If valid_issuers is non-empty, only certs that were transitively issued by | 218 // If valid_issuers is non-empty, only certs that were transitively issued by |
| 219 // one of the given names will be included in the list. | 219 // one of the given names will be included in the list. |
| 220 static bool GetSSLClientCertificates( | 220 static bool GetSSLClientCertificates( |
| 221 const std::string& server_domain, | 221 const std::string& server_domain, |
| 222 const std::vector<CertPrincipal>& valid_issuers, | 222 const std::vector<CertPrincipal>& valid_issuers, |
| 223 std::vector<scoped_refptr<X509Certificate> >* certs); | 223 CertificateList* certs); |
| 224 | 224 |
| 225 // Creates the chain of certs to use for this client identity cert. | 225 // Creates the chain of certs to use for this client identity cert. |
| 226 CFArrayRef CreateClientCertificateChain() const; | 226 CFArrayRef CreateClientCertificateChain() const; |
| 227 #endif | 227 #endif |
| 228 | 228 |
| 229 #if defined(OS_WIN) | 229 #if defined(OS_WIN) |
| 230 // Returns a handle to a global, in-memory certificate store. We use it for | 230 // Returns a handle to a global, in-memory certificate store. We use it for |
| 231 // two purposes: | 231 // two purposes: |
| 232 // 1. Import server certificates into this store so that we can verify and | 232 // 1. Import server certificates into this store so that we can verify and |
| 233 // display the certificates using CryptoAPI. | 233 // display the certificates using CryptoAPI. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 // Where the certificate comes from. | 337 // Where the certificate comes from. |
| 338 Source source_; | 338 Source source_; |
| 339 | 339 |
| 340 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 340 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 } // namespace net | 343 } // namespace net |
| 344 | 344 |
| 345 #endif // NET_BASE_X509_CERTIFICATE_H_ | 345 #endif // NET_BASE_X509_CERTIFICATE_H_ |
| OLD | NEW |