OLD | NEW |
---|---|
(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 namespace net { | |
9 | |
10 class BoundNetLog; | |
Ryan Sleevi
2015/12/17 03:47:35
Unused?
ryanchung
2015/12/18 00:00:55
Done.
| |
11 class X509Certificate; | |
12 | |
13 // ClientCertVerifier represents a service for verifying certificates. | |
14 class ClientCertVerifier { | |
15 public: | |
16 virtual ~ClientCertVerifier() {} | |
17 | |
18 // Verifies the given certificate as a client certificate. | |
19 // Returns OK if successful or an error code upon failure. | |
20 virtual int Verify(X509Certificate* cert) = 0; | |
Ryan Sleevi
2015/12/17 03:47:35
DESIGN: Why isn't this interface asynchronous? I t
ryanchung
2015/12/18 00:00:55
I believe OpenSSL only supports synchronous client
Ryan Sleevi
2015/12/18 00:07:09
But the Chrome interface should be designed for as
davidben
2015/12/19 00:24:24
Teaching BoringSSL to be asynchronous with certifi
ryanchung
2016/01/14 00:16:40
I updated the interface. For now, verification wil
| |
21 }; | |
22 | |
23 } // namespace net | |
24 | |
25 #endif // NET_CERT_CLIENT_CERT_VERIFIER_H_ | |
OLD | NEW |