diff options
| author | Jared Roesch <[email protected]> | 2014-10-11 01:50:34 -0700 |
|---|---|---|
| committer | Jared Roesch <[email protected]> | 2014-10-11 01:57:33 -0700 |
| commit | 5f017cd549b4c76849bfd5c33e6f6962acd89535 (patch) | |
| tree | 4ea8770a90ca801e48e65032f756dccef069b5c5 /src/ssl/mod.rs | |
| parent | Merge pull request #62 from vhbit/feature-matrix (diff) | |
| download | rust-openssl-5f017cd549b4c76849bfd5c33e6f6962acd89535.tar.xz rust-openssl-5f017cd549b4c76849bfd5c33e6f6962acd89535.zip | |
Refactor init and error handling code
Move common ffi initialization code to 'ffi::init()' and the initialization of error handling to a
a shared location.
Diffstat (limited to 'src/ssl/mod.rs')
| -rw-r--r-- | src/ssl/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs index 31307a03..33112f7a 100644 --- a/src/ssl/mod.rs +++ b/src/ssl/mod.rs @@ -23,9 +23,8 @@ fn init() { unsafe { INIT.doit(|| { - ffi::SSL_library_init(); - ffi::SSL_load_error_strings(); - ffi::ERR_load_crypto_strings(); + ffi::init(); + let verify_idx = ffi::SSL_CTX_get_ex_new_index(0, ptr::null(), None, None, None); assert!(verify_idx >= 0); |