diff options
| author | Steven Fackler <[email protected]> | 2014-10-12 02:20:51 -0400 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-10-12 02:20:51 -0400 |
| commit | 12b7427e0d01cb92810db2f0f51972b34947128e (patch) | |
| tree | 4ea8770a90ca801e48e65032f756dccef069b5c5 /src/ssl/mod.rs | |
| parent | Merge pull request #62 from vhbit/feature-matrix (diff) | |
| parent | Refactor init and error handling code (diff) | |
| download | rust-openssl-12b7427e0d01cb92810db2f0f51972b34947128e.tar.xz rust-openssl-12b7427e0d01cb92810db2f0f51972b34947128e.zip | |
Merge pull request #79 from jroesch/init-cleanup
Refactor code around initialization and error strings.
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); |