From dbf7bb3f2f71ebe251bcbcdbaf98520f5f8eda33 Mon Sep 17 00:00:00 2001 From: Ivan Nejgebauer Date: Thu, 16 Jun 2016 14:13:54 +0200 Subject: [PATCH] Add Send impl for CertStore to make it usable in native-tls --- src/cert_store.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cert_store.rs b/src/cert_store.rs index e4a5715..393d5dd 100644 --- a/src/cert_store.rs +++ b/src/cert_store.rs @@ -10,6 +10,8 @@ use Inner; pub struct CertStore(winapi::HCERTSTORE); +unsafe impl Send for CertStore { } + impl Drop for CertStore { fn drop(&mut self) { unsafe { @@ -116,4 +118,4 @@ mod test { let mut store = CertStore::memory().unwrap(); store.add_der_certificate(&cert).unwrap(); } -} \ No newline at end of file +}