Searched refs:from_pem (Results 1 – 5 of 5) sorted by relevance
116 pub fn from_pem(pem_str: &str) -> Result<Self> { in from_pem() method141 dtls::crypto::Certificate::from_pem(&pem_blocks.collect::<Vec<&str>>().join("\n\n"))?; in from_pem()287 let loaded_cert = RTCCertificate::from_pem(&pem)?; in test_certificate_serialize_pem_and_from_pem()
12 * Add `RTCCertificate::from_pem` and `RTCCertificate::serialize_pem` (only work with `pem` feature …
98 let key_pair = KeyPair::from_pem(s.as_str()).expect("key pair in file"); in load_key()
64 pub fn from_pem(pem_str: &str) -> Result<Self> { in from_pem() method529 let loaded_cert = Certificate::from_pem(&pem)?; in test_certificate_serialize_pem_and_from_pem()
87 * Removed 2nd argument from `RTCCertificate::from_pem` and guard it with `pem` feature [#333]