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

Side by Side Diff: net/cert/client_cert_verifier.h

Issue 1474983003: Support for client certs in ssl_server_socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 4 years, 10 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_result.h ('k') | net/cert/mock_client_cert_verifier.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015 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 NET_CERT_CLIENT_CERT_VERIFIER_H_
6 #define NET_CERT_CLIENT_CERT_VERIFIER_H_
7
8 #include "base/macros.h"
9 #include "net/base/completion_callback.h"
10 #include "net/base/net_export.h"
11
12 namespace net {
13
14 class X509Certificate;
15
16 // ClientCertVerifier represents a service for verifying certificates.
17 class NET_EXPORT ClientCertVerifier {
18 public:
19 class Request {
20 public:
21 Request() {}
22
23 // Destruction of the Request cancels it.
24 virtual ~Request() {}
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(Request);
28 };
29
30 virtual ~ClientCertVerifier() {}
31
32 // Verifies the given certificate as a client certificate.
33 // Returns OK if successful or an error code upon failure.
34 virtual int Verify(X509Certificate* cert,
35 const CompletionCallback& callback,
36 scoped_ptr<Request>* out_req) = 0;
37 };
38
39 } // namespace net
40
41 #endif // NET_CERT_CLIENT_CERT_VERIFIER_H_
OLDNEW
« no previous file with comments | « net/cert/cert_verify_result.h ('k') | net/cert/mock_client_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698