Mark PKey as `Send` and `Sync`

Provided that the locking function is set, the underlying `ffi::EVP_KEY`
type should be safe to use across threads.
This commit is contained in:
Will Tange 2016-01-07 06:28:20 +01:00
parent 84c1880ed5
commit 89e88727ff
1 changed files with 3 additions and 0 deletions

View File

@ -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 {