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

Side by Side Diff: chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc

Issue 330213002: *wip* NSS: handle chromeos system slot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/net/nss_context_chromeos.cc » ('j') | chromeos/cert_loader.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" 5 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h"
6 6
7 #include "net/cert/test_root_certs.h" 7 #include "net/cert/test_root_certs.h"
8 #include "net/cert/x509_certificate.h" 8 #include "net/cert/x509_certificate.h"
9 9
10 // NSS doesn't currently define CERT_LIST_TAIL. 10 // NSS doesn't currently define CERT_LIST_TAIL.
(...skipping 11 matching lines...) Expand all
22 CertVerifyProcChromeOS* cert_verify_proc; 22 CertVerifyProcChromeOS* cert_verify_proc;
23 const net::CertificateList& additional_trust_anchors; 23 const net::CertificateList& additional_trust_anchors;
24 }; 24 };
25 25
26 } // namespace 26 } // namespace
27 27
28 CertVerifyProcChromeOS::CertVerifyProcChromeOS() {} 28 CertVerifyProcChromeOS::CertVerifyProcChromeOS() {}
29 29
30 CertVerifyProcChromeOS::CertVerifyProcChromeOS( 30 CertVerifyProcChromeOS::CertVerifyProcChromeOS(
31 crypto::ScopedPK11Slot public_slot) { 31 crypto::ScopedPK11Slot public_slot) {
32 profile_filter_.Init(public_slot.Pass(), crypto::ScopedPK11Slot()); 32 profile_filter_.Init(
33 public_slot.Pass(), crypto::ScopedPK11Slot(), crypto::ScopedPK11Slot());
pneubeck (no reviews) 2014/06/13 12:40:42 Needs an explanation about the choice of arguments
mattm 2014/06/24 03:16:45 Done.
33 } 34 }
34 35
35 CertVerifyProcChromeOS::~CertVerifyProcChromeOS() {} 36 CertVerifyProcChromeOS::~CertVerifyProcChromeOS() {}
36 37
37 int CertVerifyProcChromeOS::VerifyInternal( 38 int CertVerifyProcChromeOS::VerifyInternal(
38 net::X509Certificate* cert, 39 net::X509Certificate* cert,
39 const std::string& hostname, 40 const std::string& hostname,
40 int flags, 41 int flags,
41 net::CRLSet* crl_set, 42 net::CRLSet* crl_set,
42 const net::CertificateList& additional_trust_anchors, 43 const net::CertificateList& additional_trust_anchors,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // properly when the same cert is in multiple slots, this would also need 95 // properly when the same cert is in multiple slots, this would also need
95 // updating to check the per-slot trust values. 96 // updating to check the per-slot trust values.
96 *chain_ok = args->cert_verify_proc->profile_filter_.IsCertAllowed(cert) 97 *chain_ok = args->cert_verify_proc->profile_filter_.IsCertAllowed(cert)
97 ? PR_TRUE 98 ? PR_TRUE
98 : PR_FALSE; 99 : PR_FALSE;
99 DVLOG(3) << cert->subjectName << " is " << (*chain_ok ? "ok" : "not ok"); 100 DVLOG(3) << cert->subjectName << " is " << (*chain_ok ? "ok" : "not ok");
100 return SECSuccess; 101 return SECSuccess;
101 } 102 }
102 103
103 } // namespace chromeos 104 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/nss_context_chromeos.cc » ('j') | chromeos/cert_loader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698