summaryrefslogtreecommitdiffstats
path: root/net/ssl
diff options
context:
space:
mode:
authordavidben <davidben@chromium.org>2014-12-11 18:46:32 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-12 02:46:51 +0000
commitb94dd3f02fbfbc01ca657463cc73b4f58a12f1ff (patch)
tree5140d72bb47d95ea7a7cd7534295c68ff70a4fc5 /net/ssl
parent3dd05ace0ab81578fb5a11525501879d054b4370 (diff)
downloadchromium_src-b94dd3f02fbfbc01ca657463cc73b4f58a12f1ff.zip
chromium_src-b94dd3f02fbfbc01ca657463cc73b4f58a12f1ff.tar.gz
chromium_src-b94dd3f02fbfbc01ca657463cc73b4f58a12f1ff.tar.bz2
Document ClientCertStore interface.
Make it clear there are many of them floating around. Follow-up to comment in https://codereview.chromium.org/795773002/ BUG=none Review URL: https://codereview.chromium.org/802563002 Cr-Commit-Position: refs/heads/master@{#308035}
Diffstat (limited to 'net/ssl')
-rw-r--r--net/ssl/client_cert_store.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/ssl/client_cert_store.h b/net/ssl/client_cert_store.h
index fe050e5..b1172de 100644
--- a/net/ssl/client_cert_store.h
+++ b/net/ssl/client_cert_store.h
@@ -14,8 +14,10 @@ namespace net {
class SSLCertRequestInfo;
-// The caller is expected to keep the ClientCertStore alive until the callback
-// supplied to GetClientCerts has been run.
+// A handle to a client certificate store to query matching certificates when a
+// server requests client auth. Note that there may be multiple ClientCertStore
+// objects corresponding to the same platform certificate store; each request
+// gets its own uniquely owned handle.
class NET_EXPORT ClientCertStore {
public:
virtual ~ClientCertStore() {}
@@ -23,8 +25,8 @@ class NET_EXPORT ClientCertStore {
// Get client certs matching the |cert_request_info|. On completion, the
// results will be stored in |selected_certs| and the |callback| will be run.
// The |callback| may be called sychronously. The caller must ensure the
- // ClientCertStore and the |selected_certs| object remain alive until the
- // callback has been run.
+ // ClientCertStore, |cert_request_info|, and |selected_certs| remain alive
+ // until the callback has been run.
virtual void GetClientCerts(const SSLCertRequestInfo& cert_request_info,
CertificateList* selected_certs,
const base::Closure& callback) = 0;