Struct sasl2_sys::saslplug::sasl_utils

source ·
#[repr(C)]
pub struct sasl_utils {
Show 49 fields pub version: c_int, pub conn: *mut sasl_conn_t, pub rpool: *mut sasl_rand_t, pub getopt_context: *mut c_void, pub getopt: sasl_getopt_t, pub malloc: sasl_malloc_t, pub calloc: sasl_calloc_t, pub realloc: sasl_realloc_t, pub free: sasl_free_t, pub mutex_alloc: sasl_mutex_alloc_t, pub mutex_lock: sasl_mutex_lock_t, pub mutex_unlock: sasl_mutex_unlock_t, pub mutex_free: sasl_mutex_free_t, pub MD5Init: Option<unsafe extern "C" fn(arg1: *mut MD5_CTX)>, pub MD5Update: Option<unsafe extern "C" fn(arg1: *mut MD5_CTX, text: *const c_uchar, len: c_uint)>, pub MD5Final: Option<unsafe extern "C" fn(arg1: *mut c_uchar, arg2: *mut MD5_CTX)>, pub hmac_md5: Option<unsafe extern "C" fn(text: *const c_uchar, text_len: c_int, key: *const c_uchar, key_len: c_int, arg1: *mut c_uchar)>, pub hmac_md5_init: Option<unsafe extern "C" fn(arg1: *mut HMAC_MD5_CTX, key: *const c_uchar, len: c_int)>, pub hmac_md5_final: Option<unsafe extern "C" fn(arg1: *mut c_uchar, arg2: *mut HMAC_MD5_CTX)>, pub hmac_md5_precalc: Option<unsafe extern "C" fn(arg1: *mut HMAC_MD5_STATE, key: *const c_uchar, len: c_int)>, pub hmac_md5_import: Option<unsafe extern "C" fn(arg1: *mut HMAC_MD5_CTX, arg2: *mut HMAC_MD5_STATE)>, pub mkchal: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, buf: *mut c_char, maxlen: c_uint, hostflag: c_uint) -> c_int>, pub utf8verify: Option<unsafe extern "C" fn(str: *const c_char, len: c_uint) -> c_int>, pub rand: Option<unsafe extern "C" fn(rpool: *mut sasl_rand_t, buf: *mut c_char, len: c_uint)>, pub churn: Option<unsafe extern "C" fn(rpool: *mut sasl_rand_t, data: *const c_char, len: c_uint)>, pub checkpass: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, user: *const c_char, userlen: c_uint, pass: *const c_char, passlen: c_uint) -> c_int>, pub decode64: Option<unsafe extern "C" fn(in_: *const c_char, inlen: c_uint, out: *mut c_char, outmax: c_uint, outlen: *mut c_uint) -> c_int>, pub encode64: Option<unsafe extern "C" fn(in_: *const c_char, inlen: c_uint, out: *mut c_char, outmax: c_uint, outlen: *mut c_uint) -> c_int>, pub erasebuffer: Option<unsafe extern "C" fn(buf: *mut c_char, len: c_uint)>, pub getprop: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, propnum: c_int, pvalue: *mut *const c_void) -> c_int>, pub setprop: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, propnum: c_int, value: *const c_void) -> c_int>, pub getcallback: sasl_getcallback_t, pub log: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, level: c_int, fmt: *const c_char, ...)>, pub seterror: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, flags: c_uint, fmt: *const c_char, ...)>, pub spare_fptr: Option<unsafe extern "C" fn() -> *mut c_int>, pub prop_new: Option<unsafe extern "C" fn(estimate: c_uint) -> *mut propctx>, pub prop_dup: Option<unsafe extern "C" fn(src_ctx: *mut propctx, dst_ctx: *mut *mut propctx) -> c_int>, pub prop_request: Option<unsafe extern "C" fn(ctx: *mut propctx, names: *mut *const c_char) -> c_int>, pub prop_get: Option<unsafe extern "C" fn(ctx: *mut propctx) -> *const propval>, pub prop_getnames: Option<unsafe extern "C" fn(ctx: *mut propctx, names: *mut *const c_char, vals: *mut propval) -> c_int>, pub prop_clear: Option<unsafe extern "C" fn(ctx: *mut propctx, requests: c_int)>, pub prop_dispose: Option<unsafe extern "C" fn(ctx: *mut *mut propctx)>, pub prop_format: Option<unsafe extern "C" fn(ctx: *mut propctx, sep: *const c_char, seplen: c_int, outbuf: *mut c_char, outmax: c_uint, outlen: *mut c_uint) -> c_int>, pub prop_set: Option<unsafe extern "C" fn(ctx: *mut propctx, name: *const c_char, value: *const c_char, vallen: c_int) -> c_int>, pub prop_setvals: Option<unsafe extern "C" fn(ctx: *mut propctx, name: *const c_char, values: *mut *const c_char) -> c_int>, pub prop_erase: Option<unsafe extern "C" fn(ctx: *mut propctx, name: *const c_char)>, pub auxprop_store: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, ctx: *mut propctx, user: *const c_char) -> c_int>, pub spare_fptr1: Option<unsafe extern "C" fn() -> c_int>, pub spare_fptr2: Option<unsafe extern "C" fn() -> c_int>,
}

Fields§

§version: c_int§conn: *mut sasl_conn_t§rpool: *mut sasl_rand_t§getopt_context: *mut c_void§getopt: sasl_getopt_t§malloc: sasl_malloc_t§calloc: sasl_calloc_t§realloc: sasl_realloc_t§free: sasl_free_t§mutex_alloc: sasl_mutex_alloc_t§mutex_lock: sasl_mutex_lock_t§mutex_unlock: sasl_mutex_unlock_t§mutex_free: sasl_mutex_free_t§MD5Init: Option<unsafe extern "C" fn(arg1: *mut MD5_CTX)>§MD5Update: Option<unsafe extern "C" fn(arg1: *mut MD5_CTX, text: *const c_uchar, len: c_uint)>§MD5Final: Option<unsafe extern "C" fn(arg1: *mut c_uchar, arg2: *mut MD5_CTX)>§hmac_md5: Option<unsafe extern "C" fn(text: *const c_uchar, text_len: c_int, key: *const c_uchar, key_len: c_int, arg1: *mut c_uchar)>§hmac_md5_init: Option<unsafe extern "C" fn(arg1: *mut HMAC_MD5_CTX, key: *const c_uchar, len: c_int)>§hmac_md5_final: Option<unsafe extern "C" fn(arg1: *mut c_uchar, arg2: *mut HMAC_MD5_CTX)>§hmac_md5_precalc: Option<unsafe extern "C" fn(arg1: *mut HMAC_MD5_STATE, key: *const c_uchar, len: c_int)>§hmac_md5_import: Option<unsafe extern "C" fn(arg1: *mut HMAC_MD5_CTX, arg2: *mut HMAC_MD5_STATE)>§mkchal: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, buf: *mut c_char, maxlen: c_uint, hostflag: c_uint) -> c_int>§utf8verify: Option<unsafe extern "C" fn(str: *const c_char, len: c_uint) -> c_int>§rand: Option<unsafe extern "C" fn(rpool: *mut sasl_rand_t, buf: *mut c_char, len: c_uint)>§churn: Option<unsafe extern "C" fn(rpool: *mut sasl_rand_t, data: *const c_char, len: c_uint)>§checkpass: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, user: *const c_char, userlen: c_uint, pass: *const c_char, passlen: c_uint) -> c_int>§decode64: Option<unsafe extern "C" fn(in_: *const c_char, inlen: c_uint, out: *mut c_char, outmax: c_uint, outlen: *mut c_uint) -> c_int>§encode64: Option<unsafe extern "C" fn(in_: *const c_char, inlen: c_uint, out: *mut c_char, outmax: c_uint, outlen: *mut c_uint) -> c_int>§erasebuffer: Option<unsafe extern "C" fn(buf: *mut c_char, len: c_uint)>§getprop: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, propnum: c_int, pvalue: *mut *const c_void) -> c_int>§setprop: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, propnum: c_int, value: *const c_void) -> c_int>§getcallback: sasl_getcallback_t§log: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, level: c_int, fmt: *const c_char, ...)>§seterror: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, flags: c_uint, fmt: *const c_char, ...)>§spare_fptr: Option<unsafe extern "C" fn() -> *mut c_int>§prop_new: Option<unsafe extern "C" fn(estimate: c_uint) -> *mut propctx>§prop_dup: Option<unsafe extern "C" fn(src_ctx: *mut propctx, dst_ctx: *mut *mut propctx) -> c_int>§prop_request: Option<unsafe extern "C" fn(ctx: *mut propctx, names: *mut *const c_char) -> c_int>§prop_get: Option<unsafe extern "C" fn(ctx: *mut propctx) -> *const propval>§prop_getnames: Option<unsafe extern "C" fn(ctx: *mut propctx, names: *mut *const c_char, vals: *mut propval) -> c_int>§prop_clear: Option<unsafe extern "C" fn(ctx: *mut propctx, requests: c_int)>§prop_dispose: Option<unsafe extern "C" fn(ctx: *mut *mut propctx)>§prop_format: Option<unsafe extern "C" fn(ctx: *mut propctx, sep: *const c_char, seplen: c_int, outbuf: *mut c_char, outmax: c_uint, outlen: *mut c_uint) -> c_int>§prop_set: Option<unsafe extern "C" fn(ctx: *mut propctx, name: *const c_char, value: *const c_char, vallen: c_int) -> c_int>§prop_setvals: Option<unsafe extern "C" fn(ctx: *mut propctx, name: *const c_char, values: *mut *const c_char) -> c_int>§prop_erase: Option<unsafe extern "C" fn(ctx: *mut propctx, name: *const c_char)>§auxprop_store: Option<unsafe extern "C" fn(conn: *mut sasl_conn_t, ctx: *mut propctx, user: *const c_char) -> c_int>§spare_fptr1: Option<unsafe extern "C" fn() -> c_int>§spare_fptr2: Option<unsafe extern "C" fn() -> c_int>

Trait Implementations§

source§

impl Clone for sasl_utils

source§

fn clone(&self) -> sasl_utils

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for sasl_utils

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for sasl_utils

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, 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.