Cleanup
This commit is contained in:
parent
167008d247
commit
3a0e64dca5
|
|
@ -315,7 +315,7 @@ extern fn raw_verify_with_data<T>(preverify_ok: c_int,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern fn raw_sni(ssl: *mut ffi::SSL, ad: &mut c_int, arg: *mut c_void)
|
extern fn raw_sni(ssl: *mut ffi::SSL, ad: &mut c_int, _arg: *mut c_void)
|
||||||
-> c_int {
|
-> c_int {
|
||||||
unsafe {
|
unsafe {
|
||||||
let ssl_ctx = ffi::SSL_get_SSL_CTX(ssl);
|
let ssl_ctx = ffi::SSL_get_SSL_CTX(ssl);
|
||||||
|
|
@ -982,9 +982,11 @@ impl Ssl {
|
||||||
|
|
||||||
/// obtain the context corresponding to the current connection
|
/// obtain the context corresponding to the current connection
|
||||||
pub fn get_ssl_context(&self) -> SslContext {
|
pub fn get_ssl_context(&self) -> SslContext {
|
||||||
let ssl_ctx = unsafe { ffi::SSL_get_SSL_CTX(self.ssl) };
|
unsafe {
|
||||||
let count = unsafe { ffi_extras::SSL_CTX_increment_refcount(ssl_ctx) };
|
let ssl_ctx = ffi::SSL_get_SSL_CTX(self.ssl);
|
||||||
SslContext { ctx: ssl_ctx }
|
ffi_extras::SSL_CTX_increment_refcount(ssl_ctx);
|
||||||
|
SslContext { ctx: ssl_ctx }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue