Skip to content

Commit

Permalink
Ignore calls to SSL_CTX_set_session_id_context
Browse files Browse the repository at this point in the history
Later commits will implement this, and session resumption more
generally.
  • Loading branch information
ctz committed Apr 23, 2024
1 parent cb97dfb commit d20cce0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rustls-libssl/MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
| `SSL_CTX_set_recv_max_early_data` | | | |
| `SSL_CTX_set_security_callback` | | | |
| `SSL_CTX_set_security_level` | | | |
| `SSL_CTX_set_session_id_context` | | :white_check_mark: | :exclamation: [^stub] |
| `SSL_CTX_set_session_id_context` | | :white_check_mark: | :white_check_mark: |
| `SSL_CTX_set_session_ticket_cb` | | | |
| `SSL_CTX_set_srp_cb_arg` [^deprecatedin_3_0] [^srp] | | | |
| `SSL_CTX_set_srp_client_pwd_callback` [^deprecatedin_3_0] [^srp] | | | |
Expand Down
20 changes: 11 additions & 9 deletions rustls-libssl/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,17 @@ entry! {
}
}

entry! {
pub fn _SSL_CTX_set_session_id_context(
_ctx: *mut SSL_CTX,
_sid_ctx: *const c_uchar,
_sid_ctx_len: c_uint,
) -> c_int {
log::warn!("SSL_CTX_set_session_id_context not yet implemented");
C_INT_SUCCESS
}
}

impl Castable for SSL_CTX {
type Ownership = OwnershipArc;
type RustType = NotThreadSafe<SSL_CTX>;
Expand Down Expand Up @@ -1556,15 +1567,6 @@ pub type SSL_CTX_sess_remove_cb =
Option<unsafe extern "C" fn(ctx: *mut SSL_CTX, sess: *mut SSL_SESSION)>;

entry_stub! {
pub fn _SSL_CTX_set_session_id_context(
_ctx: *mut SSL_CTX,
_sid_ctx: *const c_uchar,
_sid_ctx_len: c_uint,
) -> c_int;
}

entry_stub! {

pub fn _SSL_set_session_id_context(
_ssl: *mut SSL,
_sid_ctx: *const c_uchar,
Expand Down

0 comments on commit d20cce0

Please sign in to comment.