diff options
| author | Steven Fackler <[email protected]> | 2018-08-31 21:32:36 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-08-31 21:32:36 -0700 |
| commit | aa5cfbe23972894364418d6653530ff1dcdc90a0 (patch) | |
| tree | 7b6fcfdc2372e3bf1c936bbb2762434122489e2d /openssl-sys/src | |
| parent | Bump Appveyor test versions (diff) | |
| parent | Fix lookup errors with SNI callback. (diff) | |
| download | rust-openssl-aa5cfbe23972894364418d6653530ff1dcdc90a0.tar.xz rust-openssl-aa5cfbe23972894364418d6653530ff1dcdc90a0.zip | |
Merge pull request #982 from sfackler/fix-sni-callback
Fix lookup errors with SNI callback.
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 2433e624..f061df26 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1564,6 +1564,10 @@ pub unsafe fn SSL_CTX_set_tlsext_servername_callback( SSL_CTX_callback_ctrl(ctx, SSL_CTRL_SET_TLSEXT_SERVERNAME_CB, cb) } +pub unsafe fn SSL_CTX_set_tlsext_servername_arg(ctx: *mut SSL_CTX, arg: *mut c_void) -> c_long { + SSL_CTX_ctrl(ctx, SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG, 0, arg) +} + pub unsafe fn SSL_set_tlsext_host_name(s: *mut SSL, name: *mut c_char) -> c_long { SSL_ctrl( s, |