aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2017-12-27 16:04:19 -0700
committerSteven Fackler <[email protected]>2017-12-27 16:24:01 -0700
commit7fbda616098e3ab489b61735fa27651b34cac67c (patch)
tree4ae5545289c2730f161aee630a0f20adbcda63c1 /openssl-sys/src
parentMerge pull request #802 from sfackler/ssl-error (diff)
downloadrust-openssl-7fbda616098e3ab489b61735fa27651b34cac67c.tar.xz
rust-openssl-7fbda616098e3ab489b61735fa27651b34cac67c.zip
Overhaul ALPN
There was previously a lot of behind the scenes magic. We now bind much more directly to the relevant functions. Also remove APN support. That protocol is supersceded by ALPN - let's see if anyone actually needs to use it.
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index eafda590..e855216a 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -2495,6 +2495,7 @@ extern "C" {
#[cfg(not(ossl101))]
pub fn SSL_set_alpn_protos(s: *mut SSL, data: *const c_uchar, len: c_uint) -> c_int;
+ // FIXME should take an Option<unsafe extern "C" fn>
#[cfg(not(ossl101))]
pub fn SSL_CTX_set_alpn_select_cb(
ssl: *mut SSL_CTX,