Skip to content

Commit 042d19c

Browse files
committed
Stub out SSL_client_hello_get0_ciphers
1 parent 21c3aa5 commit 042d19c

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

MATRIX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
| `SSL_check_private_key` | | | | :white_check_mark: |
276276
| `SSL_clear` | | | | |
277277
| `SSL_clear_options` | | :white_check_mark: | | :white_check_mark: |
278-
| `SSL_client_hello_get0_ciphers` | | | :white_check_mark: | |
278+
| `SSL_client_hello_get0_ciphers` | | | :white_check_mark: | :exclamation: [^stub] |
279279
| `SSL_client_hello_get0_compression_methods` | | | | |
280280
| `SSL_client_hello_get0_ext` | | | :white_check_mark: | :exclamation: [^stub] |
281281
| `SSL_client_hello_get0_legacy_version` | | | | |

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const ENTRYPOINTS: &[&str] = &[
6161
"SSL_CIPHER_get_version",
6262
"SSL_CIPHER_standard_name",
6363
"SSL_clear_options",
64+
"SSL_client_hello_get0_ciphers",
6465
"SSL_client_hello_get0_ext",
6566
"SSL_COMP_get_compression_methods",
6667
"SSL_CONF_cmd",

src/entry.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,8 @@ entry_stub! {
23262326
) -> c_long;
23272327
}
23282328

2329-
// No access to individual certificate extensions
2329+
// No access to individual clienthello extensions and no
2330+
// SSL_CTX_set_client_hello_cb support
23302331

23312332
entry_stub! {
23322333
pub fn _SSL_client_hello_get0_ext(
@@ -2337,6 +2338,10 @@ entry_stub! {
23372338
) -> c_int;
23382339
}
23392340

2341+
entry_stub! {
2342+
pub fn _SSL_client_hello_get0_ciphers(_ssl: *mut SSL, _out: *mut *const c_uchar) -> usize;
2343+
}
2344+
23402345
// No custom extension support
23412346
// (used by nginx to implement quic)
23422347

0 commit comments

Comments
 (0)