aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-01-06 21:51:39 -0800
committerSteven Fackler <[email protected]>2016-01-06 21:51:39 -0800
commit83ef18922f2534c6c57e72a34233a3a3d4ae3aa3 (patch)
tree6ce461b6d9caccca113c0b5b2eb64e7a8e271538 /openssl/src
parentUpdate README doc link (diff)
parentMark PKey as `Send` and `Sync` (diff)
downloadrust-openssl-83ef18922f2534c6c57e72a34233a3a3d4ae3aa3.tar.xz
rust-openssl-83ef18922f2534c6c57e72a34233a3a3d4ae3aa3.zip
Merge pull request #329 from bheart/send-sync-pkey
Mark PKey as `Send` and `Sync`
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/crypto/pkey.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl/src/crypto/pkey.rs b/openssl/src/crypto/pkey.rs
index 10891224..e7aa4c8c 100644
--- a/openssl/src/crypto/pkey.rs
+++ b/openssl/src/crypto/pkey.rs
@@ -57,6 +57,9 @@ pub struct PKey {
parts: Parts,
}
+unsafe impl Send for PKey {}
+unsafe impl Sync for PKey {}
+
/// Represents a public key, optionally with a private key attached.
impl PKey {
pub fn new() -> PKey {