Skip to content

Commit af1dbba

Browse files
committed
Stub out SSL_get_client_random
1 parent 77989df commit af1dbba

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

MATRIX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
| `SSL_get_ciphers` | | | | :exclamation: [^stub] |
328328
| `SSL_get_client_CA_list` | | | | :exclamation: [^stub] |
329329
| `SSL_get_client_ciphers` | | | | |
330-
| `SSL_get_client_random` | | | :white_check_mark: | |
330+
| `SSL_get_client_random` | | | :white_check_mark: | :exclamation: [^stub] |
331331
| `SSL_get_current_cipher` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
332332
| `SSL_get_current_compression` | | | | :white_check_mark: |
333333
| `SSL_get_current_expansion` | | | | |

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ const ENTRYPOINTS: &[&str] = &[
158158
"SSL_get_changed_async_fds",
159159
"SSL_get_ciphers",
160160
"SSL_get_client_CA_list",
161+
"SSL_get_client_random",
161162
"SSL_get_current_cipher",
162163
"SSL_get_current_compression",
163164
"SSL_get_error",

src/entry.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,6 +2447,12 @@ entry_stub! {
24472447
) -> c_int;
24482448
}
24492449

2450+
// Unsafe low-level accessors. OpenSSL docs say "you probably shouldn't use these functions."
2451+
2452+
entry_stub! {
2453+
pub fn _SSL_get_client_random(_ssl: *const SSL, _out: *mut c_uchar, _outlen: usize) -> usize;
2454+
}
2455+
24502456
// ---------------------
24512457

24522458
#[cfg(test)]

0 commit comments

Comments
 (0)