@@ -74,7 +74,16 @@ pub unsafe fn SSL_CTX_set_tlsext_servername_callback__fixed_rust(
74
74
ctx : * mut SSL_CTX ,
75
75
cb : Option < unsafe extern "C" fn ( * mut SSL , * mut c_int , * mut c_void ) -> c_int > ,
76
76
) -> c_long {
77
- SSL_CTX_callback_ctrl__fixed_rust ( ctx, SSL_CTRL_SET_TLSEXT_SERVERNAME_CB , mem:: transmute ( cb) )
77
+ SSL_CTX_callback_ctrl__fixed_rust (
78
+ ctx,
79
+ SSL_CTRL_SET_TLSEXT_SERVERNAME_CB ,
80
+ mem:: transmute :: <
81
+ std:: option:: Option <
82
+ unsafe extern "C" fn ( * mut SSL , * mut c_int , * mut libc:: c_void ) -> i32 ,
83
+ > ,
84
+ std:: option:: Option < unsafe extern "C" fn ( ) > ,
85
+ > ( cb) ,
86
+ )
78
87
}
79
88
80
89
pub const SSL_TLSEXT_ERR_OK : c_int = 0 ;
@@ -90,7 +99,14 @@ pub unsafe fn SSL_CTX_set_tlsext_status_cb(
90
99
ctx : * mut SSL_CTX ,
91
100
cb : Option < unsafe extern "C" fn ( * mut SSL , * mut c_void ) -> c_int > ,
92
101
) -> c_long {
93
- SSL_CTX_callback_ctrl__fixed_rust ( ctx, SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB , mem:: transmute ( cb) )
102
+ SSL_CTX_callback_ctrl__fixed_rust (
103
+ ctx,
104
+ SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB ,
105
+ mem:: transmute :: <
106
+ std:: option:: Option < unsafe extern "C" fn ( * mut SSL , * mut c_void ) -> i32 > ,
107
+ std:: option:: Option < unsafe extern "C" fn ( ) > ,
108
+ > ( cb) ,
109
+ )
94
110
}
95
111
96
112
pub unsafe fn SSL_CTX_set_tlsext_status_arg ( ctx : * mut SSL_CTX , arg : * mut c_void ) -> c_long {
0 commit comments