Struct mbedtls::ssl::Config[][src]

#[repr(C)]
pub struct Config { /* fields omitted */ }

Implementations

impl Config[src]

pub fn new(e: Endpoint, t: Transport, p: Preset) -> Self[src]

pub fn set_endpoint(&mut self, e: Endpoint)[src]

pub fn set_transport(&mut self, t: Transport)[src]

pub fn set_authmode(&mut self, am: AuthMode)[src]

pub fn read_timeout(&self) -> u32[src]

pub fn set_read_timeout(&mut self, t: u32)[src]

pub fn set_ciphersuites(&mut self, list: Arc<Vec<c_int>>)[src]

pub fn set_ciphersuites_for_version(
    &mut self,
    list: Arc<Vec<c_int>>,
    major: c_int,
    minor: c_int
)
[src]

pub fn set_curves(&mut self, list: Arc<Vec<ecp_group_id>>)[src]

pub fn set_rng<T: RngCallback + 'static>(&mut self, rng: Arc<T>)[src]

pub fn set_min_version(&mut self, version: Version) -> Result<()>[src]

pub fn set_max_version(&mut self, version: Version) -> Result<()>[src]

pub fn set_cert_profile(&mut self, p: &'static Profile)[src]

pub fn set_dh_params(&mut self, dhm: Arc<Dhm>) -> Result<()>[src]

Takes both DER and PEM forms of FFDH parameters in DHParams format.

When calling on PEM-encoded data, params must be NULL-terminated

pub fn set_ca_list(
    &mut self,
    ca_cert: Arc<MbedtlsList<Certificate>>,
    crl: Option<Arc<Crl>>
)
[src]

pub fn push_cert(
    &mut self,
    own_cert: Arc<MbedtlsList<Certificate>>,
    own_pk: Arc<Pk>
) -> Result<()>
[src]

pub fn set_session_tickets_callback<T: TicketCallback + 'static>(
    &mut self,
    cb: Arc<T>
)
[src]

Server only: configure callback to use for generating/interpreting session tickets.

pub fn set_session_tickets(&mut self, u: UseSessionTickets)[src]

Client only: whether to remember and use session tickets

pub fn set_renegotiation(&mut self, u: Renegotiation)[src]

pub fn set_ffdh_min_bitlen(&mut self, bitlen: c_uint)[src]

Client only: minimal FFDH group size

pub fn set_sni_callback<F>(&mut self, cb: F) where
    F: SniCallback + 'static, 
[src]

pub fn set_verify_callback<F>(&mut self, cb: F) where
    F: VerifyCallback + 'static, 
[src]

pub fn set_ca_callback<F>(&mut self, cb: F) where
    F: CaCallback + 'static, 
[src]

pub fn set_dbg_callback<F>(&mut self, cb: F) where
    F: DbgCallback + 'static, 
[src]

Trait Implementations

impl Drop for Config[src]

impl<'a> Into<*const ssl_config> for &'a Config[src]

impl<'a> Into<*mut ssl_config> for &'a mut Config[src]

impl Send for Config[src]

impl Sync for Config[src]

Auto Trait Implementations

impl !RefUnwindSafe for Config

impl Unpin for Config

impl !UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.