Trait ublox_short_range::wifi::tls::TLS[][src]

pub trait TLS {
    fn import_certificate(
        &mut self,
        name: &str,
        certificate: &[u8]
    ) -> Result<(), Error>;
fn import_root_ca(
        &mut self,
        name: &str,
        root_ca: &[u8]
    ) -> Result<(), Error>;
fn import_private_key(
        &mut self,
        name: &str,
        private_key: &[u8],
        password: Option<&str>
    ) -> Result<(), Error>;
fn enable_tls(
        &self,
        socket: SocketHandle,
        ca_cert_name: Option<&str>,
        client_cert_name: Option<&str>,
        priv_key_name: Option<&str>
    ) -> Result<(), Error>; }

Required methods

fn import_certificate(
    &mut self,
    name: &str,
    certificate: &[u8]
) -> Result<(), Error>
[src]

fn import_root_ca(&mut self, name: &str, root_ca: &[u8]) -> Result<(), Error>[src]

fn import_private_key(
    &mut self,
    name: &str,
    private_key: &[u8],
    password: Option<&str>
) -> Result<(), Error>
[src]

fn enable_tls(
    &self,
    socket: SocketHandle,
    ca_cert_name: Option<&str>,
    client_cert_name: Option<&str>,
    priv_key_name: Option<&str>
) -> Result<(), Error>
[src]

Loading content...

Implementors

impl<C, N, L> TLS for UbloxClient<C, N, L> where
    C: AtatClient,
    N: ArrayLength<Option<SocketSetItem<L>>>,
    L: ArrayLength<u8>, 
[src]

fn import_certificate(
    &mut self,
    name: &str,
    certificate: &[u8]
) -> Result<(), Error>
[src]

Importing credentials enabeles their use for all further TCP connections

fn import_root_ca(&mut self, name: &str, root_ca: &[u8]) -> Result<(), Error>[src]

Importing credentials enabeles their use for all further TCP connections

fn import_private_key(
    &mut self,
    name: &str,
    private_key: &[u8],
    password: Option<&str>
) -> Result<(), Error>
[src]

Importing credentials enabeles their use for all further TCP connections

Loading content...