From c7eded31a76fad3b746420f502132c8b71377808 Mon Sep 17 00:00:00 2001 From: panicbit Date: Sun, 26 Jul 2015 18:28:25 +0200 Subject: [PATCH] Expose ssl::init --- openssl/src/ssl/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 1338b1cb8..4d7b7ab8c 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -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 { -- GitLab