| 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 #include "net/cert/cert_verify_proc_mac.h" | 5 #include "net/cert/cert_verify_proc_mac.h" |
| 6 | 6 |
| 7 #include <CommonCrypto/CommonDigest.h> | 7 #include <CommonCrypto/CommonDigest.h> |
| 8 #include <CoreServices/CoreServices.h> | 8 #include <CoreServices/CoreServices.h> |
| 9 #include <Security/Security.h> | 9 #include <Security/Security.h> |
| 10 | 10 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } // namespace | 469 } // namespace |
| 470 | 470 |
| 471 CertVerifyProcMac::CertVerifyProcMac() {} | 471 CertVerifyProcMac::CertVerifyProcMac() {} |
| 472 | 472 |
| 473 CertVerifyProcMac::~CertVerifyProcMac() {} | 473 CertVerifyProcMac::~CertVerifyProcMac() {} |
| 474 | 474 |
| 475 bool CertVerifyProcMac::SupportsAdditionalTrustAnchors() const { | 475 bool CertVerifyProcMac::SupportsAdditionalTrustAnchors() const { |
| 476 return false; | 476 return false; |
| 477 } | 477 } |
| 478 | 478 |
| 479 bool CertVerifyProcMac::SupportsOCSPStapling() const { |
| 480 // TODO(rsleevi): Plumb an OCSP response into the Mac system library. |
| 481 // https://crbug.com/430714 |
| 482 return false; |
| 483 } |
| 484 |
| 479 int CertVerifyProcMac::VerifyInternal( | 485 int CertVerifyProcMac::VerifyInternal( |
| 480 X509Certificate* cert, | 486 X509Certificate* cert, |
| 481 const std::string& hostname, | 487 const std::string& hostname, |
| 488 const std::string& ocsp_response, |
| 482 int flags, | 489 int flags, |
| 483 CRLSet* crl_set, | 490 CRLSet* crl_set, |
| 484 const CertificateList& additional_trust_anchors, | 491 const CertificateList& additional_trust_anchors, |
| 485 CertVerifyResult* verify_result) { | 492 CertVerifyResult* verify_result) { |
| 486 ScopedCFTypeRef<CFArrayRef> trust_policies; | 493 ScopedCFTypeRef<CFArrayRef> trust_policies; |
| 487 OSStatus status = CreateTrustPolicies(hostname, flags, &trust_policies); | 494 OSStatus status = CreateTrustPolicies(hostname, flags, &trust_policies); |
| 488 if (status) | 495 if (status) |
| 489 return NetErrorFromOSStatus(status); | 496 return NetErrorFromOSStatus(status); |
| 490 | 497 |
| 491 // Create and configure a SecTrustRef, which takes our certificate(s) | 498 // Create and configure a SecTrustRef, which takes our certificate(s) |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 } | 783 } |
| 777 } | 784 } |
| 778 } | 785 } |
| 779 } | 786 } |
| 780 } | 787 } |
| 781 | 788 |
| 782 return OK; | 789 return OK; |
| 783 } | 790 } |
| 784 | 791 |
| 785 } // namespace net | 792 } // namespace net |
| OLD | NEW |