diff options
| author | Steven Fackler <[email protected]> | 2017-02-19 16:05:58 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-02-19 16:05:58 -0800 |
| commit | 268288337bc7b798ecc9a5f4f3fc3687d5dd5cd7 (patch) | |
| tree | 5bb58616ad178aa0edea738cd651024e351bafe6 /openssl-sys/src | |
| parent | Add a fixme to drop const prefixes (diff) | |
| download | rust-openssl-268288337bc7b798ecc9a5f4f3fc3687d5dd5cd7.tar.xz rust-openssl-268288337bc7b798ecc9a5f4f3fc3687d5dd5cd7.zip | |
Expose more error information
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 0073e69a..9f348b58 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -143,6 +143,9 @@ pub const BIO_FLAGS_SHOULD_RETRY: c_int = 0x08; pub const CRYPTO_LOCK: c_int = 1; +pub const ERR_TXT_MALLOCED: c_int = 0x01; +pub const ERR_TXT_STRING: c_int = 0x02; + pub const ERR_LIB_PEM: c_int = 9; pub const PEM_R_NO_START_LINE: c_int = 108; @@ -1542,6 +1545,7 @@ extern { pub fn ERR_peek_last_error() -> c_ulong; pub fn ERR_get_error() -> c_ulong; + pub fn ERR_get_error_line_data(file: *mut *const c_char, line: *mut c_int, data: *mut *const c_char, flags: *mut c_int) -> 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; |