diff options
| author | Steven Fackler <[email protected]> | 2015-07-26 14:06:25 -0400 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-07-26 14:06:25 -0400 |
| commit | 322c784510c8eeab43635751e967622ee7624ea5 (patch) | |
| tree | 9c277614f0724376dcc8a28c94640afcd51d7800 | |
| parent | Merge pull request #244 from andrew-d/andrew-save-pubkey (diff) | |
| parent | Expose ssl::init (diff) | |
| download | rust-openssl-322c784510c8eeab43635751e967622ee7624ea5.tar.xz rust-openssl-322c784510c8eeab43635751e967622ee7624ea5.zip | |
Merge pull request #247 from panicbit/pub-init
Expose ssl::init
| -rw-r--r-- | openssl/src/ssl/mod.rs | 4 |
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 { |