Merge pull request #247 from panicbit/pub-init

Expose ssl::init
This commit is contained in:
Steven Fackler 2015-07-26 14:06:25 -04:00
commit 322c784510
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ mod tests;
static mut VERIFY_IDX: c_int = -1;
fn init() {
/// Manually initialize SSL.
/// It is optional to call this function and safe to do so more than once.
pub fn init() {
static mut INIT: Once = ONCE_INIT;
unsafe {