aboutsummaryrefslogtreecommitdiff
path: root/src/ssl/mod.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-10-12 02:20:51 -0400
committerSteven Fackler <[email protected]>2014-10-12 02:20:51 -0400
commit12b7427e0d01cb92810db2f0f51972b34947128e (patch)
tree4ea8770a90ca801e48e65032f756dccef069b5c5 /src/ssl/mod.rs
parentMerge pull request #62 from vhbit/feature-matrix (diff)
parentRefactor init and error handling code (diff)
downloadrust-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.rs5
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);