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:
parent
84c1880ed5
commit
89e88727ff
|
|
@ -57,6 +57,9 @@ pub struct PKey {
|
||||||
parts: Parts,
|
parts: Parts,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl Send for PKey {}
|
||||||
|
unsafe impl Sync for PKey {}
|
||||||
|
|
||||||
/// Represents a public key, optionally with a private key attached.
|
/// Represents a public key, optionally with a private key attached.
|
||||||
impl PKey {
|
impl PKey {
|
||||||
pub fn new() -> PKey {
|
pub fn new() -> PKey {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue