Skip to main content

OpenSSL

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 i8

Implementations§

§

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§

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.

§

impl<T> Instrument for T

§

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

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

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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