From c113ec5a0d7aa80b7394d57bc39c7f1647f3c04f Mon Sep 17 00:00:00 2001 From: Evan Rittenhouse Date: Wed, 20 Nov 2024 09:58:40 -0600 Subject: [PATCH] Add bindings for SSL_CB_ACCEPT_EXIT and SSL_CB_CONNECT_EXIT --- boring/src/ssl/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boring/src/ssl/mod.rs b/boring/src/ssl/mod.rs index 8ea6ede9..f0849589 100644 --- a/boring/src/ssl/mod.rs +++ b/boring/src/ssl/mod.rs @@ -850,6 +850,12 @@ impl SslInfoCallbackMode { /// Signaled when a handshake progresses to a new state. pub const ACCEPT_LOOP: Self = Self(ffi::SSL_CB_ACCEPT_LOOP); + + /// Signaled when the current iteration of the server-side handshake state machine completes. + pub const ACCEPT_EXIT: Self = Self(ffi::SSL_CB_ACCEPT_EXIT); + + /// Signaled when the current iteration of the client-side handshake state machine completes. + pub const CONNECT_EXIT: Self = Self(ffi::SSL_CB_CONNECT_EXIT); } /// The `value` argument to an info callback. The most-significant byte is the alert level, while