Chromium Code Reviews| 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 #ifndef NET_CERT_X509_CERTIFICATE_H_ | 5 #ifndef NET_CERT_X509_CERTIFICATE_H_ |
| 6 #define NET_CERT_X509_CERTIFICATE_H_ | 6 #define NET_CERT_X509_CERTIFICATE_H_ |
| 7 | 7 |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 272 // Ownership follows the "get" rule: it is the caller's responsibility to | 272 // Ownership follows the "get" rule: it is the caller's responsibility to |
| 273 // retain the elements of the result. | 273 // retain the elements of the result. |
| 274 const OSCertHandles& GetIntermediateCertificates() const { | 274 const OSCertHandles& GetIntermediateCertificates() const { |
| 275 return intermediate_ca_certs_; | 275 return intermediate_ca_certs_; |
| 276 } | 276 } |
| 277 | 277 |
| 278 #if defined(OS_MACOSX) | 278 #if defined(OS_MACOSX) |
| 279 // Does this certificate's usage allow SSL client authentication? | 279 // Does this certificate's usage allow SSL client authentication? |
| 280 bool SupportsSSLClientAuth() const; | 280 bool SupportsSSLClientAuth() const; |
| 281 | 281 |
| 282 // Creates the chain of certs to use for this client identity cert. | |
| 283 CFArrayRef CreateClientCertificateChain() const; | |
|
Ryan Sleevi
2013/04/16 02:32:50
Because this function is no longer used, I removed
| |
| 284 | |
| 285 // Returns a new CFArrayRef containing this certificate and its intermediate | 282 // Returns a new CFArrayRef containing this certificate and its intermediate |
| 286 // certificates in the form expected by Security.framework and Keychain | 283 // certificates in the form expected by Security.framework and Keychain |
| 287 // Services, or NULL on failure. | 284 // Services, or NULL on failure. |
| 288 // The first item in the array will be this certificate, followed by its | 285 // The first item in the array will be this certificate, followed by its |
| 289 // intermediates, if any. | 286 // intermediates, if any. |
| 290 CFArrayRef CreateOSCertChainForCert() const; | 287 CFArrayRef CreateOSCertChainForCert() const; |
| 291 #endif | 288 #endif |
| 292 | 289 |
| 293 // Do any of the given issuer names appear in this cert's chain of trust? | 290 // Do any of the given issuer names appear in this cert's chain of trust? |
| 294 // |valid_issuers| is a list of DER-encoded X.509 DistinguishedNames. | 291 // |valid_issuers| is a list of DER-encoded X.509 DistinguishedNames. |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 501 // based on the type of the certificate. | 498 // based on the type of the certificate. |
| 502 std::string default_nickname_; | 499 std::string default_nickname_; |
| 503 #endif | 500 #endif |
| 504 | 501 |
| 505 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 502 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
| 506 }; | 503 }; |
| 507 | 504 |
| 508 } // namespace net | 505 } // namespace net |
| 509 | 506 |
| 510 #endif // NET_CERT_X509_CERTIFICATE_H_ | 507 #endif // NET_CERT_X509_CERTIFICATE_H_ |
| OLD | NEW |