From 22231d7547465eefc8a1bbb3ed439af24bb6970e Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 15 Sep 2018 13:29:18 -0700 Subject: Support the client hello callback --- openssl/src/ssl/error.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openssl/src/ssl/error.rs') diff --git a/openssl/src/ssl/error.rs b/openssl/src/ssl/error.rs index b7e29c15..8a7b2537 100644 --- a/openssl/src/ssl/error.rs +++ b/openssl/src/ssl/error.rs @@ -40,6 +40,12 @@ impl ErrorCode { /// An error occurred in the SSL library. pub const SSL: ErrorCode = ErrorCode(ffi::SSL_ERROR_SSL); + + /// The client hello callback indicated that it needed to be retried. + /// + /// Requires OpenSSL 1.1.1 or newer. + #[cfg(ossl111)] + pub const WANT_CLIENT_HELLO_CB: ErrorCode = ErrorCode(ffi::SSL_ERROR_WANT_CLIENT_HELLO_CB); } #[derive(Debug)] @@ -131,6 +137,7 @@ impl error::Error for Error { } /// An error or intermediate state after a TLS handshake attempt. +// FIXME overhaul #[derive(Debug)] pub enum HandshakeError { /// Setup failed. -- cgit v1.2.3