diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-11 16:44:14 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-25 14:08:39 +0000 |
commit | dc707f0855a7b8a5c98456d4b8cd65d1a7ea3514 (patch) | |
tree | b36c91f37f3345f16168b3104d1b841f6a6b22ef /src/core/net/client_cert_override.h | |
parent | 678cb710bb07188454b19a70b5e5595b8ea41c2a (diff) |
Make client certificate store thread safe
If the users manipulate the API from the UI, we need to read from the
UI thread as well.
Change-Id: I8af787a357954cff4fbdd94bcf27b880fb6aecb4
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/net/client_cert_override.h')
-rw-r--r-- | src/core/net/client_cert_override.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/net/client_cert_override.h b/src/core/net/client_cert_override.h index 4f13c3116..04c3ce66d 100644 --- a/src/core/net/client_cert_override.h +++ b/src/core/net/client_cert_override.h @@ -59,6 +59,10 @@ public: const ClientCertListCallback &callback) override; private: static std::unique_ptr<net::ClientCertStore> createNativeStore(); + static net::ClientCertIdentityList GetClientCertsOnUIThread(const net::SSLCertRequestInfo &request); + void GetClientCertsReturn(const net::SSLCertRequestInfo &cert_request_info, + const ClientCertListCallback &callback, + net::ClientCertIdentityList &&result); std::unique_ptr<net::ClientCertStore> m_nativeStore; }; |