1 | use super::super::*; |
2 | use libc::*; |
3 | |
4 | extern "C" { |
5 | pub fn SSL_get_servername(ssl: *const SSL, name_type: c_int) -> *const c_char; |
6 | |
7 | pub fn SSL_export_keying_material( |
8 | s: *mut SSL, |
9 | out: *mut c_uchar, |
10 | olen: size_t, |
11 | label: *const c_char, |
12 | llen: size_t, |
13 | context: *const c_uchar, |
14 | contextlen: size_t, |
15 | use_context: c_int, |
16 | ) -> c_int; |
17 | |
18 | #[cfg (ossl111)] |
19 | pub fn SSL_export_keying_material_early( |
20 | s: *mut SSL, |
21 | out: *mut c_uchar, |
22 | olen: size_t, |
23 | label: *const c_char, |
24 | llen: size_t, |
25 | context: *const c_uchar, |
26 | contextlen: size_t, |
27 | ) -> c_int; |
28 | } |
29 | |