aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/mod.rs
diff options
context:
space:
mode:
authorChristopher Vittal <[email protected]>2017-10-04 00:36:32 -0400
committerChristopher Vittal <[email protected]>2017-10-04 00:53:09 -0400
commit1308cb2b526355c66854ee22ea03de93bae326c1 (patch)
treec74f4571d41a79410bd5b754730f53d93cd0a7b2 /openssl/src/ssl/mod.rs
parentUpdate CI to use LibreSSL 2.6.2 (diff)
downloadrust-openssl-1308cb2b526355c66854ee22ea03de93bae326c1.tar.xz
rust-openssl-1308cb2b526355c66854ee22ea03de93bae326c1.zip
Fix cfgs for libressl262
Diffstat (limited to 'openssl/src/ssl/mod.rs')
-rw-r--r--openssl/src/ssl/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 762118a5..0506668c 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -652,7 +652,7 @@ impl SslContextBuilder {
/// Set the protocols to be used during Next Protocol Negotiation (the protocols
/// supported by the application).
- #[cfg(not(libressl261))]
+ #[cfg(not(any(libressl261, libressl262)))]
pub fn set_npn_protocols(&mut self, protocols: &[&[u8]]) -> Result<(), ErrorStack> {
// Firstly, convert the list of protocols to a byte-array that can be passed to OpenSSL
// APIs -- a list of length-prefixed strings.
@@ -1311,7 +1311,7 @@ impl SslRef {
///
/// The protocol's name is returned is an opaque sequence of bytes. It is up to the client
/// to interpret it.
- #[cfg(not(libressl261))]
+ #[cfg(not(any(libressl261, libressl262)))]
pub fn selected_npn_protocol(&self) -> Option<&[u8]> {
unsafe {
let mut data: *const c_uchar = ptr::null();