Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: net/cert/cert_verify_proc_mac.cc

Issue 1081913003: Route OCSP stapling through CertVerifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@boringnss
Patch Set: yet another CrOS-only Verify call Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/cert/cert_verify_proc_mac.h ('k') | net/cert/cert_verify_proc_nss.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/cert/cert_verify_proc_mac.h ('k') | net/cert/cert_verify_proc_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698