Skip to content

Commit

Permalink
Add bindings for SSL_CB_ACCEPT_EXIT and SSL_CB_CONNECT_EXIT
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse authored and rushilmehra committed Nov 20, 2024
1 parent 7bb3647 commit c113ec5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boring/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c113ec5

Please sign in to comment.