Skip to main content

OpenSSL

Struct OpenSSL 

Source
pub struct OpenSSL {
Show 36 fields pub version_num: c_ulong, pub BIO_meth_new: unsafe extern "C" fn(type_: c_int, name: *const c_char) -> *mut BIO_METHOD, pub BIO_meth_free: unsafe extern "C" fn(biom: *mut BIO_METHOD), pub BIO_meth_set_write: unsafe extern "C" fn(biom: *mut BIO_METHOD, write: Option<unsafe extern "C" fn(*mut BIO, *const c_char, c_int) -> c_int>) -> c_int, pub BIO_meth_set_read: unsafe extern "C" fn(biom: *mut BIO_METHOD, read: Option<unsafe extern "C" fn(*mut BIO, *mut c_char, c_int) -> c_int>) -> c_int, pub BIO_meth_set_puts: unsafe extern "C" fn(biom: *mut BIO_METHOD, puts: Option<unsafe extern "C" fn(*mut BIO, *const c_char) -> c_int>) -> c_int, pub BIO_meth_set_ctrl: unsafe extern "C" fn(biom: *mut BIO_METHOD, ctrl: Option<unsafe extern "C" fn(*mut BIO, c_int, c_long, *mut c_void) -> c_long>) -> c_int, pub BIO_meth_set_create: unsafe extern "C" fn(biom: *mut BIO_METHOD, create: Option<unsafe extern "C" fn(*mut BIO) -> c_int>) -> c_int, pub BIO_meth_set_destroy: unsafe extern "C" fn(biom: *mut BIO_METHOD, destroy: Option<unsafe extern "C" fn(*mut BIO) -> c_int>) -> c_int, pub BIO_new: unsafe extern "C" fn(type_: *const BIO_METHOD) -> *mut BIO, pub BIO_get_data: unsafe extern "C" fn(b: *mut BIO) -> *mut c_void, pub BIO_set_data: unsafe extern "C" fn(b: *mut BIO, data: *mut c_void), pub BIO_set_init: unsafe extern "C" fn(b: *mut BIO, init: c_int), pub BIO_set_flags: unsafe extern "C" fn(b: *mut BIO, flags: c_int), pub BIO_clear_flags: unsafe extern "C" fn(b: *mut BIO, flags: c_int), pub SSL_new: unsafe extern "C" fn(ctx: *mut SSL_CTX) -> *mut SSL, pub SSL_free: unsafe extern "C" fn(ssl: *mut SSL), pub SSL_connect: unsafe extern "C" fn(ssl: *mut SSL) -> i32, pub SSL_accept: unsafe extern "C" fn(ssl: *mut SSL) -> c_int, pub SSL_ctrl: unsafe extern "C" fn(ssl: *mut SSL, cmd: c_int, larg: c_long, parg: *mut c_void) -> c_long, pub SSL_do_handshake: unsafe extern "C" fn(ssl: *mut SSL) -> c_int, pub SSL_set_bio: unsafe extern "C" fn(ssl: *mut SSL, rbio: *mut BIO, wbio: *mut BIO), pub SSL_get_rbio: unsafe extern "C" fn(ssl: *mut SSL) -> *mut BIO, pub SSL_get_error: unsafe extern "C" fn(ssl: *mut SSL, ret: c_int) -> c_int, pub SSL_read_ex: unsafe extern "C" fn(ssl: *mut SSL, buf: *mut c_void, num: usize, readbytes: *mut usize) -> c_int, pub SSL_write_ex: unsafe extern "C" fn(ssl: *mut SSL, buf: *const c_void, num: usize, written: *mut usize) -> c_int, pub SSL_get0_alpn_selected: unsafe extern "C" fn(s: *const SSL, data: *mut *const c_uchar, len: *mut c_uint), pub SSL_get0_param: unsafe extern "C" fn(ssl: *mut SSL) -> *mut X509_VERIFY_PARAM, pub SSL_shutdown: unsafe extern "C" fn(*mut SSL) -> c_int, pub X509_VERIFY_PARAM_set1_host: unsafe extern "C" fn(param: *mut X509_VERIFY_PARAM, name: *const c_char, namelen: isize) -> c_int, pub X509_VERIFY_PARAM_set1_ip: unsafe extern "C" fn(param: *mut X509_VERIFY_PARAM, ip: *const c_uchar, iplen: isize) -> c_int, pub ERR_get_error_all: Option<unsafe extern "C" fn(file: *mut *const c_char, line: *mut c_int, func: *mut *const c_char, data: *mut *const c_char, flags: *mut c_int) -> c_ulong>, pub ERR_get_error_line_data: Option<unsafe extern "C" fn(file: *mut *const c_char, line: *mut c_int, data: *mut *const c_char, flags: *mut c_int) -> c_ulong>, pub ERR_func_error_string: Option<unsafe extern "C" fn(err: c_ulong) -> *const c_char>, pub ERR_lib_error_string: unsafe extern "C" fn(err: c_ulong) -> *const c_char, pub ERR_reason_error_string: unsafe extern "C" fn(err: c_ulong) -> *const c_char, /* private fields */
}

Fields§

§version_num: c_ulong§BIO_meth_new: unsafe extern "C" fn(type_: c_int, name: *const c_char) -> *mut BIO_METHOD§BIO_meth_free: unsafe extern "C" fn(biom: *mut BIO_METHOD)§BIO_meth_set_write: unsafe extern "C" fn(biom: *mut BIO_METHOD, write: Option<unsafe extern "C" fn(*mut BIO, *const c_char, c_int) -> c_int>) -> c_int§BIO_meth_set_read: unsafe extern "C" fn(biom: *mut BIO_METHOD, read: Option<unsafe extern "C" fn(*mut BIO, *mut c_char, c_int) -> c_int>) -> c_int§BIO_meth_set_puts: unsafe extern "C" fn(biom: *mut BIO_METHOD, puts: Option<unsafe extern "C" fn(*mut BIO, *const c_char) -> c_int>) -> c_int§BIO_meth_set_ctrl: unsafe extern "C" fn(biom: *mut BIO_METHOD, ctrl: Option<unsafe extern "C" fn(*mut BIO, c_int, c_long, *mut c_void) -> c_long>) -> c_int§BIO_meth_set_create: unsafe extern "C" fn(biom: *mut BIO_METHOD, create: Option<unsafe extern "C" fn(*mut BIO) -> c_int>) -> c_int§BIO_meth_set_destroy: unsafe extern "C" fn(biom: *mut BIO_METHOD, destroy: Option<unsafe extern "C" fn(*mut BIO) -> c_int>) -> c_int§BIO_new: unsafe extern "C" fn(type_: *const BIO_METHOD) -> *mut BIO§BIO_get_data: unsafe extern "C" fn(b: *mut BIO) -> *mut c_void§BIO_set_data: unsafe extern "C" fn(b: *mut BIO, data: *mut c_void)§BIO_set_init: unsafe extern "C" fn(b: *mut BIO, init: c_int)§BIO_set_flags: unsafe extern "C" fn(b: *mut BIO, flags: c_int)§BIO_clear_flags: unsafe extern "C" fn(b: *mut BIO, flags: c_int)§SSL_new: unsafe extern "C" fn(ctx: *mut SSL_CTX) -> *mut SSL§SSL_free: unsafe extern "C" fn(ssl: *mut SSL)§SSL_connect: unsafe extern "C" fn(ssl: *mut SSL) -> i32§SSL_accept: unsafe extern "C" fn(ssl: *mut SSL) -> c_int§SSL_ctrl: unsafe extern "C" fn(ssl: *mut SSL, cmd: c_int, larg: c_long, parg: *mut c_void) -> c_long§SSL_do_handshake: unsafe extern "C" fn(ssl: *mut SSL) -> c_int§SSL_set_bio: unsafe extern "C" fn(ssl: *mut SSL, rbio: *mut BIO, wbio: *mut BIO)§SSL_get_rbio: unsafe extern "C" fn(ssl: *mut SSL) -> *mut BIO§SSL_get_error: unsafe extern "C" fn(ssl: *mut SSL, ret: c_int) -> c_int§SSL_read_ex: unsafe extern "C" fn(ssl: *mut SSL, buf: *mut c_void, num: usize, readbytes: *mut usize) -> c_int§SSL_write_ex: unsafe extern "C" fn(ssl: *mut SSL, buf: *const c_void, num: usize, written: *mut usize) -> c_int§SSL_get0_alpn_selected: unsafe extern "C" fn(s: *const SSL, data: *mut *const c_uchar, len: *mut c_uint)§SSL_get0_param: unsafe extern "C" fn(ssl: *mut SSL) -> *mut X509_VERIFY_PARAM§SSL_shutdown: unsafe extern "C" fn(*mut SSL) -> c_int§X509_VERIFY_PARAM_set1_host: unsafe extern "C" fn(param: *mut X509_VERIFY_PARAM, name: *const c_char, namelen: isize) -> c_int§X509_VERIFY_PARAM_set1_ip: unsafe extern "C" fn(param: *mut X509_VERIFY_PARAM, ip: *const c_uchar, iplen: isize) -> c_int§ERR_get_error_all: Option<unsafe extern "C" fn(file: *mut *const c_char, line: *mut c_int, func: *mut *const c_char, data: *mut *const c_char, flags: *mut c_int) -> c_ulong>§ERR_get_error_line_data: Option<unsafe extern "C" fn(file: *mut *const c_char, line: *mut c_int, data: *mut *const c_char, flags: *mut c_int) -> c_ulong>§ERR_func_error_string: Option<unsafe extern "C" fn(err: c_ulong) -> *const c_char>§ERR_lib_error_string: unsafe extern "C" fn(err: c_ulong) -> *const c_char§ERR_reason_error_string: unsafe extern "C" fn(err: c_ulong) -> *const c_char

Implementations§

Source§

impl OpenSSL

Source

pub unsafe fn BIO_set_retry_read(&self, b: *mut BIO)

Source

pub unsafe fn BIO_set_retry_write(&self, b: *mut BIO)

Source

pub unsafe fn BIO_clear_retry_flags(&self, b: *mut BIO)

Source

pub unsafe fn SSL_set_tlsext_host_name( &self, s: *mut SSL, name: *mut c_char, ) -> c_long

Source

pub unsafe fn ERR_get_error_all( &self, file: *mut *const c_char, line: *mut c_int, func: *mut *const c_char, data: *mut *const c_char, flags: *mut c_int, ) -> c_ulong

Source

pub const fn ERR_SYSTEM_ERROR(&self, errcode: c_ulong) -> bool

Source

pub const fn ERR_GET_LIB(&self, errcode: c_ulong) -> c_int

Source

pub const fn ERR_GET_FUNC(&self, errcode: c_ulong) -> c_int

Source

pub const fn ERR_GET_REASON(&self, errcode: c_ulong) -> c_int

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Ungil for T
where T: Send,