We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27a037 commit 34b7e9cCopy full SHA for 34b7e9c
openssl/src/ssl/bio.rs
@@ -84,16 +84,6 @@ pub unsafe fn get_mut<'a, S: 'a>(bio: *mut BIO) -> &'a mut S {
84
&mut state(bio).stream
85
}
86
87
-pub unsafe fn set_dtls_mtu_size<S>(bio: *mut BIO, mtu_size: usize) {
88
- if mtu_size as u64 > c_long::max_value() as u64 {
89
- panic!(
90
- "Given MTU size {} can't be represented in a positive `c_long` range",
91
- mtu_size
92
- )
93
- }
94
- state::<S>(bio).dtls_mtu_size = mtu_size as c_long;
95
-}
96
-
97
unsafe fn state<'a, S: 'a>(bio: *mut BIO) -> &'a mut StreamState<S> {
98
&mut *(BIO_get_data(bio) as *mut _)
99
0 commit comments