aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/bn.rs
diff options
context:
space:
mode:
authorPaul Florence <[email protected]>2017-11-10 10:05:52 -0500
committerPaul Florence <[email protected]>2017-11-10 10:05:52 -0500
commit0bae121e1268565eb29e90e68b8c5e98ab1fe979 (patch)
treeac7fc87f39f98b905fa8c388b498749f28b18413 /openssl/src/bn.rs
parentMerge pull request #757 from bvinc/master (diff)
downloadrust-openssl-0bae121e1268565eb29e90e68b8c5e98ab1fe979.tar.xz
rust-openssl-0bae121e1268565eb29e90e68b8c5e98ab1fe979.zip
Added a macro that wraps foreign type, and impl Send and Sync for both,
the borrowed type and the owned one. Replaced all invocation of `foreign_type` by `foreign_type_and_impl_send_sync`.
Diffstat (limited to 'openssl/src/bn.rs')
-rw-r--r--openssl/src/bn.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/bn.rs b/openssl/src/bn.rs
index 7743228b..fc6e0bb8 100644
--- a/openssl/src/bn.rs
+++ b/openssl/src/bn.rs
@@ -67,7 +67,7 @@ pub const MSB_ONE: MsbOption = MsbOption(0);
/// of bits in the original numbers.
pub const TWO_MSB_ONE: MsbOption = MsbOption(1);
-foreign_type! {
+foreign_type_and_impl_send_sync! {
type CType = ffi::BN_CTX;
fn drop = ffi::BN_CTX_free;
@@ -99,7 +99,7 @@ impl BigNumContext {
}
}
-foreign_type! {
+foreign_type_and_impl_send_sync! {
type CType = ffi::BIGNUM;
fn drop = ffi::BN_free;