aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-12-09 21:43:02 -0800
committerSteven Fackler <[email protected]>2015-12-09 21:43:02 -0800
commit9ee6f1c5785bb170c04a825ef173d4e336c957b2 (patch)
treedc5af83adc869786753164c40fa54ba55ff48b89 /openssl-sys/src
parentCustom BIO infrastructure (diff)
downloadrust-openssl-9ee6f1c5785bb170c04a825ef173d4e336c957b2.tar.xz
rust-openssl-9ee6f1c5785bb170c04a825ef173d4e336c957b2.zip
IT LIVES
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index f19fa16c..03824e05 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -60,6 +60,9 @@ pub struct BIO_METHOD {
pub callback_ctrl: Option<unsafe extern "C" fn(*mut BIO, c_int, bio_info_cb) -> c_long>,
}
+// so we can create static BIO_METHODs
+unsafe impl Sync for BIO_METHOD {}
+
#[repr(C)]
pub struct BIO {
pub method: *mut BIO_METHOD,