Merge pull request #329 from bheart/send-sync-pkey
Mark PKey as `Send` and `Sync`
This commit is contained in:
commit
83ef18922f
|
|
@ -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