Struct OpenSSL
pub struct OpenSSL {Show 36 fields
pub version_num: u32,
pub BIO_meth_new: unsafe extern "C" fn(i32, *const i8) -> *mut BIO_METHOD,
pub BIO_meth_free: unsafe extern "C" fn(*mut BIO_METHOD),
pub BIO_meth_set_write: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, *const i8, i32) -> i32>) -> i32,
pub BIO_meth_set_read: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, *mut i8, i32) -> i32>) -> i32,
pub BIO_meth_set_puts: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, *const i8) -> i32>) -> i32,
pub BIO_meth_set_ctrl: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, i32, i32, *mut c_void) -> i32>) -> i32,
pub BIO_meth_set_create: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO) -> i32>) -> i32,
pub BIO_meth_set_destroy: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO) -> i32>) -> i32,
pub BIO_new: unsafe extern "C" fn(*const BIO_METHOD) -> *mut BIO,
pub BIO_get_data: unsafe extern "C" fn(*mut BIO) -> *mut c_void,
pub BIO_set_data: unsafe extern "C" fn(*mut BIO, *mut c_void),
pub BIO_set_init: unsafe extern "C" fn(*mut BIO, i32),
pub BIO_set_flags: unsafe extern "C" fn(*mut BIO, i32),
pub BIO_clear_flags: unsafe extern "C" fn(*mut BIO, i32),
pub SSL_new: unsafe extern "C" fn(*mut SSL_CTX) -> *mut SSL,
pub SSL_free: unsafe extern "C" fn(*mut SSL),
pub SSL_connect: unsafe extern "C" fn(*mut SSL) -> i32,
pub SSL_accept: unsafe extern "C" fn(*mut SSL) -> i32,
pub SSL_ctrl: unsafe extern "C" fn(*mut SSL, i32, i32, *mut c_void) -> i32,
pub SSL_do_handshake: unsafe extern "C" fn(*mut SSL) -> i32,
pub SSL_set_bio: unsafe extern "C" fn(*mut SSL, *mut BIO, *mut BIO),
pub SSL_get_rbio: unsafe extern "C" fn(*mut SSL) -> *mut BIO,
pub SSL_get_error: unsafe extern "C" fn(*mut SSL, i32) -> i32,
pub SSL_read_ex: unsafe extern "C" fn(*mut SSL, *mut c_void, usize, *mut usize) -> i32,
pub SSL_write_ex: unsafe extern "C" fn(*mut SSL, *const c_void, usize, *mut usize) -> i32,
pub SSL_get0_alpn_selected: unsafe extern "C" fn(*const SSL, *mut *const u8, *mut u32),
pub SSL_get0_param: unsafe extern "C" fn(*mut SSL) -> *mut X509_VERIFY_PARAM,
pub SSL_shutdown: unsafe extern "C" fn(*mut SSL) -> i32,
pub X509_VERIFY_PARAM_set1_host: unsafe extern "C" fn(*mut X509_VERIFY_PARAM, *const i8, isize) -> i32,
pub X509_VERIFY_PARAM_set1_ip: unsafe extern "C" fn(*mut X509_VERIFY_PARAM, *const u8, isize) -> i32,
pub ERR_get_error_all: Option<unsafe extern "C" fn(*mut *const i8, *mut i32, *mut *const i8, *mut *const i8, *mut i32) -> u32>,
pub ERR_get_error_line_data: Option<unsafe extern "C" fn(*mut *const i8, *mut i32, *mut *const i8, *mut i32) -> u32>,
pub ERR_func_error_string: Option<unsafe extern "C" fn(u32) -> *const i8>,
pub ERR_lib_error_string: unsafe extern "C" fn(u32) -> *const i8,
pub ERR_reason_error_string: unsafe extern "C" fn(u32) -> *const i8,
/* private fields */
}Available on crate feature
tls only.Fields§
§version_num: u32§BIO_meth_new: unsafe extern "C" fn(i32, *const i8) -> *mut BIO_METHOD§BIO_meth_free: unsafe extern "C" fn(*mut BIO_METHOD)§BIO_meth_set_write: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, *const i8, i32) -> i32>) -> i32§BIO_meth_set_read: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, *mut i8, i32) -> i32>) -> i32§BIO_meth_set_puts: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, *const i8) -> i32>) -> i32§BIO_meth_set_ctrl: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO, i32, i32, *mut c_void) -> i32>) -> i32§BIO_meth_set_create: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO) -> i32>) -> i32§BIO_meth_set_destroy: unsafe extern "C" fn(*mut BIO_METHOD, Option<unsafe extern "C" fn(*mut BIO) -> i32>) -> i32§BIO_new: unsafe extern "C" fn(*const BIO_METHOD) -> *mut BIO§BIO_get_data: unsafe extern "C" fn(*mut BIO) -> *mut c_void§BIO_set_data: unsafe extern "C" fn(*mut BIO, *mut c_void)§BIO_set_init: unsafe extern "C" fn(*mut BIO, i32)§BIO_set_flags: unsafe extern "C" fn(*mut BIO, i32)§BIO_clear_flags: unsafe extern "C" fn(*mut BIO, i32)§SSL_new: unsafe extern "C" fn(*mut SSL_CTX) -> *mut SSL§SSL_free: unsafe extern "C" fn(*mut SSL)§SSL_connect: unsafe extern "C" fn(*mut SSL) -> i32§SSL_accept: unsafe extern "C" fn(*mut SSL) -> i32§SSL_ctrl: unsafe extern "C" fn(*mut SSL, i32, i32, *mut c_void) -> i32§SSL_do_handshake: unsafe extern "C" fn(*mut SSL) -> i32§SSL_set_bio: unsafe extern "C" fn(*mut SSL, *mut BIO, *mut BIO)§SSL_get_rbio: unsafe extern "C" fn(*mut SSL) -> *mut BIO§SSL_get_error: unsafe extern "C" fn(*mut SSL, i32) -> i32§SSL_read_ex: unsafe extern "C" fn(*mut SSL, *mut c_void, usize, *mut usize) -> i32§SSL_write_ex: unsafe extern "C" fn(*mut SSL, *const c_void, usize, *mut usize) -> i32§SSL_get0_alpn_selected: unsafe extern "C" fn(*const SSL, *mut *const u8, *mut u32)§SSL_get0_param: unsafe extern "C" fn(*mut SSL) -> *mut X509_VERIFY_PARAM§SSL_shutdown: unsafe extern "C" fn(*mut SSL) -> i32§X509_VERIFY_PARAM_set1_host: unsafe extern "C" fn(*mut X509_VERIFY_PARAM, *const i8, isize) -> i32§X509_VERIFY_PARAM_set1_ip: unsafe extern "C" fn(*mut X509_VERIFY_PARAM, *const u8, isize) -> i32§ERR_get_error_all: Option<unsafe extern "C" fn(*mut *const i8, *mut i32, *mut *const i8, *mut *const i8, *mut i32) -> u32>§ERR_get_error_line_data: Option<unsafe extern "C" fn(*mut *const i8, *mut i32, *mut *const i8, *mut i32) -> u32>§ERR_func_error_string: Option<unsafe extern "C" fn(u32) -> *const i8>§ERR_lib_error_string: unsafe extern "C" fn(u32) -> *const i8§ERR_reason_error_string: unsafe extern "C" fn(u32) -> *const i8Implementations§
§impl OpenSSL
impl OpenSSL
pub unsafe fn BIO_set_retry_read(&self, b: *mut BIO)
pub unsafe fn BIO_set_retry_write(&self, b: *mut BIO)
pub unsafe fn BIO_clear_retry_flags(&self, b: *mut BIO)
pub unsafe fn SSL_set_tlsext_host_name(&self, s: *mut SSL, name: *mut i8) -> i32
pub unsafe fn ERR_get_error_all( &self, file: *mut *const i8, line: *mut i32, func: *mut *const i8, data: *mut *const i8, flags: *mut i32, ) -> u32
pub const fn ERR_SYSTEM_ERROR(&self, errcode: u32) -> bool
pub const fn ERR_GET_LIB(&self, errcode: u32) -> i32
pub const fn ERR_GET_FUNC(&self, errcode: u32) -> i32
pub const fn ERR_GET_REASON(&self, errcode: u32) -> i32
Auto Trait Implementations§
impl Freeze for OpenSSL
impl RefUnwindSafe for OpenSSL
impl Send for OpenSSL
impl Sync for OpenSSL
impl Unpin for OpenSSL
impl UnsafeUnpin for OpenSSL
impl UnwindSafe for OpenSSL
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more