aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl
diff options
context:
space:
mode:
authorpanicbit <[email protected]>2015-07-26 18:28:25 +0200
committerpanicbit <[email protected]>2015-07-26 18:28:25 +0200
commitc7eded31a76fad3b746420f502132c8b71377808 (patch)
tree9c277614f0724376dcc8a28c94640afcd51d7800 /openssl/src/ssl
parentMerge pull request #244 from andrew-d/andrew-save-pubkey (diff)
downloadrust-openssl-c7eded31a76fad3b746420f502132c8b71377808.tar.xz
rust-openssl-c7eded31a76fad3b746420f502132c8b71377808.zip
Expose ssl::init
Diffstat (limited to 'openssl/src/ssl')
-rw-r--r--openssl/src/ssl/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 1338b1cb..4d7b7ab8 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 {