Skip to content

Commit 141d799

Browse files
committed
Ignore calls to SSL_CTX_set_session_id_context
Later commits will implement this, and session resumption more generally.
1 parent 0db75bd commit 141d799

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

rustls-libssl/MATRIX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
| `SSL_CTX_set_recv_max_early_data` | | | |
180180
| `SSL_CTX_set_security_callback` | | | |
181181
| `SSL_CTX_set_security_level` | | | |
182-
| `SSL_CTX_set_session_id_context` | | :white_check_mark: | :exclamation: [^stub] |
182+
| `SSL_CTX_set_session_id_context` | | :white_check_mark: | :white_check_mark: |
183183
| `SSL_CTX_set_session_ticket_cb` | | | |
184184
| `SSL_CTX_set_srp_cb_arg` [^deprecatedin_3_0] [^srp] | | | |
185185
| `SSL_CTX_set_srp_client_pwd_callback` [^deprecatedin_3_0] [^srp] | | | |

rustls-libssl/src/entry.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,17 @@ entry! {
627627
}
628628
}
629629

630+
entry! {
631+
pub fn _SSL_CTX_set_session_id_context(
632+
_ctx: *mut SSL_CTX,
633+
_sid_ctx: *const c_uchar,
634+
_sid_ctx_len: c_uint,
635+
) -> c_int {
636+
log::warn!("SSL_CTX_set_session_id_context not yet implemented");
637+
C_INT_SUCCESS
638+
}
639+
}
640+
630641
impl Castable for SSL_CTX {
631642
type Ownership = OwnershipArc;
632643
type RustType = NotThreadSafe<SSL_CTX>;
@@ -1543,15 +1554,6 @@ pub type SSL_CTX_sess_remove_cb =
15431554
Option<unsafe extern "C" fn(ctx: *mut SSL_CTX, sess: *mut SSL_SESSION)>;
15441555

15451556
entry_stub! {
1546-
pub fn _SSL_CTX_set_session_id_context(
1547-
_ctx: *mut SSL_CTX,
1548-
_sid_ctx: *const c_uchar,
1549-
_sid_ctx_len: c_uint,
1550-
) -> c_int;
1551-
}
1552-
1553-
entry_stub! {
1554-
15551557
pub fn _SSL_set_session_id_context(
15561558
_ssl: *mut SSL,
15571559
_sid_ctx: *const c_uchar,

0 commit comments

Comments
 (0)