Skip to content

Commit 157a292

Browse files
committed
enable AlpnError for boringssl
1 parent 1b734e2 commit 157a292

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openssl/src/ssl/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,16 +657,16 @@ impl SslAlert {
657657
/// An error returned from an ALPN selection callback.
658658
///
659659
/// Requires OpenSSL 1.0.2 or LibreSSL 2.6.1 or newer.
660-
#[cfg(any(ossl102, libressl261))]
660+
#[cfg(any(ossl102, libressl261, boringssl))]
661661
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
662662
pub struct AlpnError(c_int);
663663

664-
#[cfg(any(ossl102, libressl261))]
664+
#[cfg(any(ossl102, libressl261, boringssl))]
665665
impl AlpnError {
666666
/// Terminate the handshake with a fatal alert.
667667
///
668668
/// Requires OpenSSL 1.1.0 or newer.
669-
#[cfg(ossl110)]
669+
#[cfg(any(ossl110, boringssl))]
670670
pub const ALERT_FATAL: AlpnError = AlpnError(ffi::SSL_TLSEXT_ERR_ALERT_FATAL);
671671

672672
/// Do not select a protocol, but continue the handshake.

0 commit comments

Comments
 (0)