aboutsummaryrefslogtreecommitdiff
path: root/src/ssl
diff options
context:
space:
mode:
authorJared Roesch <[email protected]>2014-10-05 02:50:33 -0700
committerJared Roesch <[email protected]>2014-10-05 02:50:33 -0700
commita8cadc46ac9f125e74b729fdbd1cb75897cab575 (patch)
treecc33db889fdbfd7724130c176b549d4320c64db2 /src/ssl
parentFix error messages (diff)
downloadrust-openssl-a8cadc46ac9f125e74b729fdbd1cb75897cab575.tar.xz
rust-openssl-a8cadc46ac9f125e74b729fdbd1cb75897cab575.zip
Load crypto error strings
Diffstat (limited to 'src/ssl')
-rw-r--r--src/ssl/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs
index b5027e8f..c7c024ed 100644
--- a/src/ssl/mod.rs
+++ b/src/ssl/mod.rs
@@ -24,7 +24,8 @@ fn init() {
unsafe {
INIT.doit(|| {
ffi::SSL_library_init();
- ffi::SSL_load_error_strings(); // maybe add err_load_crypto_strings?
+ ffi::SSL_load_error_strings();
+ ffi::ERR_load_crypto_strings();
let verify_idx = ffi::SSL_CTX_get_ex_new_index(0, ptr::null(), None,
None, None);
assert!(verify_idx >= 0);