diff options
| author | Steven Fackler <[email protected]> | 2017-11-10 17:12:16 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-11-10 17:12:16 -0800 |
| commit | 2b3dda12a497ec67fd621ef069e0ad97105513d5 (patch) | |
| tree | ac7fc87f39f98b905fa8c388b498749f28b18413 /openssl/src/ec.rs | |
| parent | Merge pull request #757 from bvinc/master (diff) | |
| parent | Added a macro that wraps foreign type, and impl Send and Sync for both, (diff) | |
| download | rust-openssl-2b3dda12a497ec67fd621ef069e0ad97105513d5.tar.xz rust-openssl-2b3dda12a497ec67fd621ef069e0ad97105513d5.zip | |
Merge pull request #773 from gbip/master
Impl Send and Sync for all types which are created by `foreign_type` !
Diffstat (limited to 'openssl/src/ec.rs')
| -rw-r--r-- | openssl/src/ec.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openssl/src/ec.rs b/openssl/src/ec.rs index ddf8c029..97b095d0 100644 --- a/openssl/src/ec.rs +++ b/openssl/src/ec.rs @@ -98,7 +98,7 @@ pub struct PointConversionForm(ffi::point_conversion_form_t); #[derive(Copy, Clone)] pub struct Asn1Flag(c_int); -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::EC_GROUP; fn drop = ffi::EC_GROUP_free; @@ -233,7 +233,7 @@ impl EcGroupRef { } } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::EC_POINT; fn drop = ffi::EC_POINT_free; @@ -498,7 +498,7 @@ impl EcPoint { } } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::EC_KEY; fn drop = ffi::EC_KEY_free; @@ -646,7 +646,7 @@ impl EcKey { } -foreign_type! { +foreign_type_and_impl_send_sync! { type CType = ffi::EC_KEY; fn drop = ffi::EC_KEY_free; |