diff options
| author | Steven Fackler <[email protected]> | 2016-01-06 21:51:39 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-01-06 21:51:39 -0800 |
| commit | 83ef18922f2534c6c57e72a34233a3a3d4ae3aa3 (patch) | |
| tree | 6ce461b6d9caccca113c0b5b2eb64e7a8e271538 /openssl/src | |
| parent | Update README doc link (diff) | |
| parent | Mark PKey as `Send` and `Sync` (diff) | |
| download | rust-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.rs | 3 |
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 { |