pub trait SSL {
fn import_certificate(
&mut self,
profile_id: SecurityProfileId,
name: &str,
certificate: &[u8]
) -> Result<(), Error>;
fn import_root_ca(
&mut self,
profile_id: SecurityProfileId,
name: &str,
root_ca: &[u8]
) -> Result<(), Error>;
fn import_private_key(
&mut self,
profile_id: SecurityProfileId,
name: &str,
private_key: &[u8],
password: Option<&str>
) -> Result<(), Error>;
fn enable_ssl(
&mut self,
profile_id: SecurityProfileId,
server_hostname: &str
) -> Result<(), Error>;
}
impl<'a, C, CLK, const N: usize, const L: usize> SSL for DataService<'a, C, CLK, N, L> where
C: AtatClient,
CLK: Clock,