Loading openssl/src/lib.rs +3 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ extern crate rustc_serialize as serialize; #[cfg(test)] extern crate net2; #[doc(inline)] pub use ffi::init; use nid::Nid; mod macros; Loading openssl/src/ssl/mod.rs +2 −7 Original line number Diff line number Diff line Loading @@ -18,8 +18,9 @@ use libc::{c_uchar, c_uint}; #[cfg(any(feature = "npn", feature = "alpn"))] use std::slice; use std::marker::PhantomData; use ffi; use init; use dh::DH; use x509::{X509StoreContext, X509FileType, X509, X509Ref}; use crypto::pkey::PKey; Loading @@ -40,12 +41,6 @@ extern "C" { fn rust_SSL_CTX_clone(cxt: *mut ffi::SSL_CTX); } /// Manually initialize SSL. /// It is optional to call this function and safe to do so more than once. pub fn init() { ffi::init(); } bitflags! { pub flags SslContextOptions: c_long { const SSL_OP_MICROSOFT_SESS_ID_BUG = ffi::SSL_OP_MICROSOFT_SESS_ID_BUG, Loading Loading
openssl/src/lib.rs +3 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ extern crate rustc_serialize as serialize; #[cfg(test)] extern crate net2; #[doc(inline)] pub use ffi::init; use nid::Nid; mod macros; Loading
openssl/src/ssl/mod.rs +2 −7 Original line number Diff line number Diff line Loading @@ -18,8 +18,9 @@ use libc::{c_uchar, c_uint}; #[cfg(any(feature = "npn", feature = "alpn"))] use std::slice; use std::marker::PhantomData; use ffi; use init; use dh::DH; use x509::{X509StoreContext, X509FileType, X509, X509Ref}; use crypto::pkey::PKey; Loading @@ -40,12 +41,6 @@ extern "C" { fn rust_SSL_CTX_clone(cxt: *mut ffi::SSL_CTX); } /// Manually initialize SSL. /// It is optional to call this function and safe to do so more than once. pub fn init() { ffi::init(); } bitflags! { pub flags SslContextOptions: c_long { const SSL_OP_MICROSOFT_SESS_ID_BUG = ffi::SSL_OP_MICROSOFT_SESS_ID_BUG, Loading