Skip to content

Commit 2b61a63

Browse files
committed
Stub out SSL_SESSION_get_max_early_data
This can theoretically be supported when `SSL_get_session` is supported for client SSLs, as rustls has a public API for it.
1 parent 3f22d0a commit 2b61a63

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

MATRIX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
| `SSL_SESSION_get_ex_data` | | | | |
229229
| `SSL_SESSION_get_id` | | :white_check_mark: | :white_check_mark: | :white_check_mark: |
230230
| `SSL_SESSION_get_master_key` | | | :white_check_mark: | :exclamation: [^stub] |
231-
| `SSL_SESSION_get_max_early_data` | | | :white_check_mark: | |
231+
| `SSL_SESSION_get_max_early_data` | | | :white_check_mark: | :exclamation: [^stub] |
232232
| `SSL_SESSION_get_max_fragment_length` | | | | |
233233
| `SSL_SESSION_get_protocol_version` | | | | |
234234
| `SSL_SESSION_get_ticket_lifetime_hint` | | | | |

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ const ENTRYPOINTS: &[&str] = &[
206206
"SSL_SESSION_get_compress_id",
207207
"SSL_SESSION_get_id",
208208
"SSL_SESSION_get_master_key",
209+
"SSL_SESSION_get_max_early_data",
209210
"SSL_SESSION_get_time",
210211
"SSL_SESSION_get_timeout",
211212
"SSL_session_reused",

src/entry.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,6 +2465,13 @@ entry_stub! {
24652465
) -> usize;
24662466
}
24672467

2468+
// This can be filled in when client SSL_SESSIONs are supported, via
2469+
// `Tls13ClientSessionValue::max_early_data_size()`.
2470+
2471+
entry_stub! {
2472+
pub fn _SSL_SESSION_get_max_early_data(_sess: *const SSL_SESSION) -> u32;
2473+
}
2474+
24682475
// ---------------------
24692476

24702477
#[cfg(test)]

0 commit comments

Comments
 (0)