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