| 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_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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 X509Certificate(OSCertHandle cert_handle, | 488 X509Certificate(OSCertHandle cert_handle, |
| 489 const OSCertHandles& intermediates); | 489 const OSCertHandles& intermediates); |
| 490 | 490 |
| 491 ~X509Certificate(); | 491 ~X509Certificate(); |
| 492 | 492 |
| 493 // Common object initialization code. Called by the constructors only. | 493 // Common object initialization code. Called by the constructors only. |
| 494 void Initialize(); | 494 void Initialize(); |
| 495 | 495 |
| 496 #if defined(OS_WIN) | 496 #if defined(OS_WIN) |
| 497 bool CheckEV(PCCERT_CHAIN_CONTEXT chain_context, | 497 bool CheckEV(PCCERT_CHAIN_CONTEXT chain_context, |
| 498 int flags, | 498 bool rev_checking_enabled, |
| 499 const char* policy_oid) const; | 499 const char* policy_oid) const; |
| 500 static bool IsIssuedByKnownRoot(PCCERT_CHAIN_CONTEXT chain_context); | 500 static bool IsIssuedByKnownRoot(PCCERT_CHAIN_CONTEXT chain_context); |
| 501 #endif | 501 #endif |
| 502 #if defined(OS_MACOSX) | 502 #if defined(OS_MACOSX) |
| 503 static bool IsIssuedByKnownRoot(CFArrayRef chain); | 503 static bool IsIssuedByKnownRoot(CFArrayRef chain); |
| 504 #endif | 504 #endif |
| 505 #if defined(USE_NSS) | 505 #if defined(USE_NSS) |
| 506 bool VerifyEV(int flags, CRLSet* crl_set) const; | 506 bool VerifyEV(int flags, CRLSet* crl_set) const; |
| 507 #endif | 507 #endif |
| 508 #if defined(USE_OPENSSL) | 508 #if defined(USE_OPENSSL) |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // (Marked mutable because it's used in a const method.) | 603 // (Marked mutable because it's used in a const method.) |
| 604 mutable base::Lock verification_lock_; | 604 mutable base::Lock verification_lock_; |
| 605 #endif | 605 #endif |
| 606 | 606 |
| 607 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 607 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
| 608 }; | 608 }; |
| 609 | 609 |
| 610 } // namespace net | 610 } // namespace net |
| 611 | 611 |
| 612 #endif // NET_BASE_X509_CERTIFICATE_H_ | 612 #endif // NET_BASE_X509_CERTIFICATE_H_ |
| OLD | NEW |