diff options
| author | Rico Huijbers <[email protected]> | 2016-04-13 21:23:05 +0200 |
|---|---|---|
| committer | Rico Huijbers <[email protected]> | 2016-04-13 21:38:23 +0200 |
| commit | 00282de2a520c17fda9c3e194815fa3c6a00e7b3 (patch) | |
| tree | f10caf454a8a0bf806c8c1da4b5ee6f387691fae /openssl-sys/src | |
| parent | Merge pull request #376 from kcking/kcking-copy-pkey-using-der (diff) | |
| download | rust-openssl-00282de2a520c17fda9c3e194815fa3c6a00e7b3.tar.xz rust-openssl-00282de2a520c17fda9c3e194815fa3c6a00e7b3.zip | |
Add ability to set session ID context on an SSL context
This is necessary to make authentication with client certificates work
without session restarts.
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 85f434ae..36a736b9 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -675,6 +675,7 @@ extern "C" { pub fn SSL_CTX_set_ex_data(ctx: *mut SSL_CTX, idx: c_int, data: *mut c_void) -> c_int; pub fn SSL_CTX_get_ex_data(ctx: *mut SSL_CTX, idx: c_int) -> *mut c_void; + pub fn SSL_CTX_set_session_id_context(ssl: *mut SSL_CTX, sid_ctx: *const c_uchar, sid_ctx_len: c_uint) -> c_int; pub fn SSL_CTX_use_certificate_file(ctx: *mut SSL_CTX, cert_file: *const c_char, file_type: c_int) -> c_int; pub fn SSL_CTX_use_certificate_chain_file(ctx: *mut SSL_CTX, cert_chain_file: *const c_char, file_type: c_int) -> c_int; |