aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2018-05-20 12:52:49 -0700
committerSteven Fackler <[email protected]>2018-05-20 12:52:49 -0700
commit4c1fdf1d81e20ee2130e883bb9065af0d1d4de2a (patch)
tree8d3f01193654f99bb132514577c8447a8fdb15a1 /openssl-sys
parentMerge pull request #923 from sfackler/libressl-hostname (diff)
downloadrust-openssl-4c1fdf1d81e20ee2130e883bb9065af0d1d4de2a.tar.xz
rust-openssl-4c1fdf1d81e20ee2130e883bb9065af0d1d4de2a.zip
Support ALPN on libressl
Closes #690
Diffstat (limited to 'openssl-sys')
-rw-r--r--openssl-sys/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 0f6a4483..04a50855 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -2614,14 +2614,14 @@ extern "C" {
) -> *mut SSL_SESSION;
pub fn i2d_SSL_SESSION(s: *mut SSL_SESSION, pp: *mut *mut c_uchar) -> c_int;
- #[cfg(ossl102)]
+ #[cfg(any(ossl102, libressl261))]
pub fn SSL_CTX_set_alpn_protos(s: *mut SSL_CTX, data: *const c_uchar, len: c_uint) -> c_int;
- #[cfg(ossl102)]
+ #[cfg(any(ossl102, libressl261))]
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(ossl102)]
+ #[cfg(any(ossl102, libressl261))]
pub fn SSL_CTX_set_alpn_select_cb(
ssl: *mut SSL_CTX,
cb: extern "C" fn(
@@ -2634,7 +2634,7 @@ extern "C" {
) -> c_int,
arg: *mut c_void,
);
- #[cfg(ossl102)]
+ #[cfg(any(ossl102, libressl261))]
pub fn SSL_get0_alpn_selected(s: *const SSL, data: *mut *const c_uchar, len: *mut c_uint);
pub fn X509_add_ext(x: *mut X509, ext: *mut X509_EXTENSION, loc: c_int) -> c_int;