aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl/error.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2018-09-15 13:29:18 -0700
committerSteven Fackler <[email protected]>2018-09-15 13:29:18 -0700
commit22231d7547465eefc8a1bbb3ed439af24bb6970e (patch)
treef39cf232461c9cc708850c8df3d8300d595a53a0 /openssl/src/ssl/error.rs
parentRelease openssl 0.10.12 (diff)
downloadrust-openssl-22231d7547465eefc8a1bbb3ed439af24bb6970e.tar.xz
rust-openssl-22231d7547465eefc8a1bbb3ed439af24bb6970e.zip
Support the client hello callback
Diffstat (limited to 'openssl/src/ssl/error.rs')
-rw-r--r--openssl/src/ssl/error.rs7
1 files changed, 7 insertions, 0 deletions
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<S> {
/// Setup failed.