diff options
| author | Jared Roesch <[email protected]> | 2014-09-30 14:34:34 -0700 |
|---|---|---|
| committer | Jared Roesch <[email protected]> | 2014-10-05 02:43:37 -0700 |
| commit | b3c80a76ddbd871c9ef64762d4e532c3a55b903f (patch) | |
| tree | 9d063515923c6ac0af789152846f9b1c506a581d /src/ffi.rs | |
| parent | Clean up warnings (diff) | |
| download | rust-openssl-b3c80a76ddbd871c9ef64762d4e532c3a55b903f.tar.xz rust-openssl-b3c80a76ddbd871c9ef64762d4e532c3a55b903f.zip | |
Make errors human readable
Change error messages from numeric codes to human readable strings. This makes debugging failures much easier.
Diffstat (limited to 'src/ffi.rs')
| -rw-r--r-- | src/ffi.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -272,6 +272,10 @@ extern "C" { pub fn ERR_get_error() -> c_ulong; + pub fn ERR_lib_error_string(err: c_ulong) -> *const c_char; + pub fn ERR_func_error_string(err: c_ulong) -> *const c_char; + pub fn ERR_reason_error_string(err: c_ulong) -> *const c_char; + pub fn EVP_md5() -> *const EVP_MD; pub fn EVP_ripemd160() -> *const EVP_MD; pub fn EVP_sha1() -> *const EVP_MD; @@ -345,6 +349,8 @@ extern "C" { pub fn SSL_library_init() -> c_int; + pub fn SSL_load_error_strings(); + #[cfg(feature = "sslv2")] pub fn SSLv2_method() -> *const SSL_METHOD; pub fn SSLv3_method() -> *const SSL_METHOD; |