aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
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,