diff options
| author | Steven Fackler <[email protected]> | 2014-03-09 22:20:36 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-03-09 22:20:36 -0700 |
| commit | 548cd1e72615afc6c49f49889ddea790d3bcefe3 (patch) | |
| tree | 197d4d727accd254bf13cdbe60b4d5bdab41e892 /ssl | |
| parent | Properly propogate errors (diff) | |
| download | rust-openssl-548cd1e72615afc6c49f49889ddea790d3bcefe3.tar.xz rust-openssl-548cd1e72615afc6c49f49889ddea790d3bcefe3.zip | |
Add a configure option for SSLv2 support
Diffstat (limited to 'ssl')
| -rw-r--r-- | ssl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,8 +13,6 @@ mod ffi; #[cfg(test)] mod tests; -static mut INIT: Once = ONCE_INIT; - static mut VERIFY_IDX: c_int = -1; static mut MUTEXES: *mut ~[NativeMutex] = 0 as *mut ~[NativeMutex]; @@ -28,6 +26,8 @@ macro_rules! try_ssl( ) fn init() { + static mut INIT: Once = ONCE_INIT; + unsafe { INIT.doit(|| { ffi::SSL_library_init(); |