Index: net/cert/client_cert_verifier.h |
diff --git a/net/cert/client_cert_verifier.h b/net/cert/client_cert_verifier.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1f97cbbf718e8dfe0fc29bac392bbe4fdf8d1a39 |
--- /dev/null |
+++ b/net/cert/client_cert_verifier.h |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NET_CERT_CLIENT_CERT_VERIFIER_H_ |
+#define NET_CERT_CLIENT_CERT_VERIFIER_H_ |
+ |
+namespace net { |
+ |
+class BoundNetLog; |
Ryan Sleevi
2015/12/17 03:47:35
Unused?
ryanchung
2015/12/18 00:00:55
Done.
|
+class X509Certificate; |
+ |
+// ClientCertVerifier represents a service for verifying certificates. |
+class ClientCertVerifier { |
+ public: |
+ virtual ~ClientCertVerifier() {} |
+ |
+ // Verifies the given certificate as a client certificate. |
+ // Returns OK if successful or an error code upon failure. |
+ 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
|
+}; |
+ |
+} // namespace net |
+ |
+#endif // NET_CERT_CLIENT_CERT_VERIFIER_H_ |