diff options
| author | Steven Fackler <[email protected]> | 2015-01-03 08:31:57 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-01-03 08:31:57 -0800 |
| commit | 2f24d8e771cfc140e53e6afe58994aafd455b701 (patch) | |
| tree | 2d44ec4c5167f99abc05e8d0df9f3528ad872f72 /src/ssl | |
| parent | Merge pull request #136 from vhbit/up-master (diff) | |
| download | rust-openssl-2f24d8e771cfc140e53e6afe58994aafd455b701.tar.xz rust-openssl-2f24d8e771cfc140e53e6afe58994aafd455b701.zip | |
Fix deprecation warnings
Diffstat (limited to 'src/ssl')
| -rw-r--r-- | src/ssl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs index 3a19f643..9b320c49 100644 --- a/src/ssl/mod.rs +++ b/src/ssl/mod.rs @@ -21,7 +21,7 @@ fn init() { static mut INIT: Once = ONCE_INIT; unsafe { - INIT.doit(|| { + INIT.call_once(|| { ffi::init(); let verify_idx = ffi::SSL_CTX_get_ex_new_index(0, ptr::null(), None, @@ -94,7 +94,7 @@ fn get_verify_data_idx<T>() -> c_int { } unsafe { - INIT.doit(|| { + INIT.call_once(|| { let f: ffi::CRYPTO_EX_free = free_data_box::<T>; let idx = ffi::SSL_CTX_get_ex_new_index(0, ptr::null(), None, None, Some(f)); |