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

Side by Side Diff: chrome/browser/chromeos/policy/policy_cert_verifier.h

Issue 13035003: Added a PolicyCertVerifier that uses the trust anchors from the ONC policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed non-chromeos builds Created 7 years, 9 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "net/base/cert_verifier.h"
10
11 namespace net {
12 class CertTrustAnchorProvider;
13 }
14
15 namespace policy {
16
17 class PolicyCertVerifier : public net::CertVerifier {
18 public:
19 PolicyCertVerifier(void* profile,
20 net::CertTrustAnchorProvider* trust_anchor_provider);
21 virtual ~PolicyCertVerifier();
22
23 // CertVerifier:
24 virtual int Verify(net::X509Certificate* cert,
pneubeck (no reviews) 2013/03/26 11:04:50 mention that |callback| may be null, in contrast t
Joao da Silva 2013/03/31 19:22:14 Done.
25 const std::string& hostname,
26 int flags,
27 net::CRLSet* crl_set,
28 net::CertVerifyResult* verify_result,
29 const net::CompletionCallback& callback,
30 RequestHandle* out_req,
31 const net::BoundNetLog& net_log) OVERRIDE;
32
33 virtual void CancelRequest(RequestHandle req) OVERRIDE;
34
35 private:
36 void* profile_;
37 scoped_ptr<CertVerifier> delegate_;
38 };
39
40 } // namespace policy
41
42 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698