From bddd1a1d7dd874fb23e39b5afe1cb8eb7cc0524a 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