aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/sign.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/sign.rs')
-rw-r--r--openssl/src/sign.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs
index a61d883b..8911a69a 100644
--- a/openssl/src/sign.rs
+++ b/openssl/src/sign.rs
@@ -85,6 +85,9 @@ pub struct Signer<'a> {
_p: PhantomData<&'a ()>,
}
+unsafe impl<'a> Sync for Signer<'a> {}
+unsafe impl<'a> Send for Signer<'a> {}
+
impl<'a> Drop for Signer<'a> {
fn drop(&mut self) {
// pkey_ctx is owned by the md_ctx, so no need to explicitly free it.
@@ -244,6 +247,9 @@ pub struct Verifier<'a> {
pkey_pd: PhantomData<&'a ()>,
}
+unsafe impl<'a> Sync for Verifier<'a> {}
+unsafe impl<'a> Send for Verifier<'a> {}
+
impl<'a> Drop for Verifier<'a> {
fn drop(&mut self) {
// pkey_ctx is owned by the md_ctx, so no need to explicitly free it.