diff options
| author | Steven Fackler <[email protected]> | 2016-04-25 22:26:46 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-04-30 08:09:12 -0700 |
| commit | 62a7dd10e588d7636c7720af6786efaa7015246b (patch) | |
| tree | 2b145b003727999eeaf30696487e90703182ab6d /openssl-sys/src | |
| parent | Cut out tests against beta (diff) | |
| download | rust-openssl-62a7dd10e588d7636c7720af6786efaa7015246b.tar.xz rust-openssl-62a7dd10e588d7636c7720af6786efaa7015246b.zip | |
Add Ssl::set_verify
It also uses a better, closure based API than the existing callback
methods.
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 1e7097b8..070ed6c6 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -700,6 +700,16 @@ extern "C" { pub fn SSL_get_version(ssl: *mut SSL) -> *const c_char; pub fn SSL_state_string(ssl: *mut SSL) -> *const c_char; pub fn SSL_state_string_long(ssl: *mut SSL) -> *const c_char; + pub fn SSL_set_verify(ssl: *mut SSL, + mode: c_int, + verify_callback: Option<extern fn(c_int, *mut X509_STORE_CTX) -> c_int>); + pub fn SSL_get_ex_new_index(argl: c_long, argp: *const c_void, + new_func: Option<CRYPTO_EX_new>, + dup_func: Option<CRYPTO_EX_dup>, + free_func: Option<CRYPTO_EX_free>) + -> c_int; + pub fn SSL_set_ex_data(ssl: *mut SSL, idx: c_int, data: *mut c_void) -> c_int; + pub fn SSL_get_ex_data(ssl: *mut SSL, idx: c_int) -> *mut c_void; pub fn SSL_get_servername(ssl: *const SSL, name_type: c_long) -> *const c_char; |