diff options
| author | Steven Fackler <[email protected]> | 2018-02-15 21:30:20 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2018-02-15 21:30:20 -0800 |
| commit | a9d8bea33c0e9417c388cbac0491d75cffd7babf (patch) | |
| tree | 268e956e2164f8410fa7741173ebfcd093304ae3 /openssl-sys/src/ossl110.rs | |
| parent | Merge pull request #839 from sfackler/openssl111 (diff) | |
| download | rust-openssl-a9d8bea33c0e9417c388cbac0491d75cffd7babf.tar.xz rust-openssl-a9d8bea33c0e9417c388cbac0491d75cffd7babf.zip | |
Add more session cache support
Diffstat (limited to 'openssl-sys/src/ossl110.rs')
| -rw-r--r-- | openssl-sys/src/ossl110.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openssl-sys/src/ossl110.rs b/openssl-sys/src/ossl110.rs index f8d944f0..86f9223f 100644 --- a/openssl-sys/src/ossl110.rs +++ b/openssl-sys/src/ossl110.rs @@ -206,6 +206,10 @@ extern "C" { pub fn SSL_CTX_get_options(ctx: *const ::SSL_CTX) -> c_ulong; pub fn SSL_CTX_set_options(ctx: *mut ::SSL_CTX, op: c_ulong) -> c_ulong; pub fn SSL_CTX_clear_options(ctx: *mut ::SSL_CTX, op: c_ulong) -> c_ulong; + pub fn SSL_CTX_sess_set_new_cb( + ctx: *mut ::SSL_CTX, + new_session_cb: Option<unsafe extern "C" fn(*mut ::SSL, *mut ::SSL_SESSION) -> c_int>, + ); pub fn X509_getm_notAfter(x: *const ::X509) -> *mut ::ASN1_TIME; pub fn X509_getm_notBefore(x: *const ::X509) -> *mut ::ASN1_TIME; pub fn X509_get0_signature( @@ -224,6 +228,7 @@ extern "C" { pub fn BIO_get_data(a: *mut ::BIO) -> *mut c_void; pub fn BIO_meth_new(type_: c_int, name: *const c_char) -> *mut ::BIO_METHOD; pub fn BIO_meth_free(biom: *mut ::BIO_METHOD); + // FIXME should wrap in Option pub fn BIO_meth_set_write( biom: *mut ::BIO_METHOD, write: unsafe extern "C" fn(*mut ::BIO, *const c_char, c_int) -> c_int, |