Move SSL_CTX_set_read_ahead to -sys

This commit is contained in:
Steven Fackler 2016-08-04 22:40:01 -07:00
parent 77dbab2cad
commit 7fb7f4671d
2 changed files with 5 additions and 1 deletions

View File

@ -531,6 +531,10 @@ pub unsafe fn SSL_CTX_get_options(ctx: *mut SSL_CTX) -> c_long {
SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, 0, ptr::null_mut()) SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, 0, ptr::null_mut())
} }
pub unsafe fn SSL_CTX_set_read_ahead(ctx: *mut SSL_CTX, m: c_long) -> c_long {
SSL_CTX_ctrl(ctx, SSL_CTRL_SET_READ_AHEAD, m, ptr::null_mut())
}
pub unsafe fn SSL_CTX_set_tlsext_servername_callback(ctx: *mut SSL_CTX, pub unsafe fn SSL_CTX_set_tlsext_servername_callback(ctx: *mut SSL_CTX,
cb: Option<extern "C" fn()>) cb: Option<extern "C" fn()>)
-> c_long { -> c_long {

View File

@ -507,7 +507,7 @@ impl SslContext {
pub fn set_read_ahead(&mut self, m: u32) { pub fn set_read_ahead(&mut self, m: u32) {
unsafe { unsafe {
ffi_extras::SSL_CTX_set_read_ahead(self.ctx, m as c_long); ffi::SSL_CTX_set_read_ahead(self.ctx, m as c_long);
} }
} }