Home
last modified time | relevance | path

Searched refs:from_pem (Results 1 - 5 of 5) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dadapter.rs537 /// let cert = Cert::from_pem(pem);
562 /// let cert = Cert::from_pem(pem);
565 pub fn from_pem(pem: &[u8]) -> Result<Self, HttpClientError> { in from_pem() functions
566 Ok(Self(X509::from_pem(pem).map_err(|e| { in from_pem()
600 /// You can use `from_pem` to parse a `&[u8]` into a list of certificates.
607 /// fn from_pem(pem: &[u8]) {
608 /// let certs = Certificate::from_pem(pem);
624 pub fn from_pem(pem: &[u8]) -> Result<Self, HttpClientError> { in from_pem() functions
746 let certificate = Certificate::from_pem(include_bytes!("../../../tests/file/root-ca.pem")) in ut_add_root_certificates()
760 /// 1. Creates a `Certificate` by calling `Certificate::from_pem`
[all...]
H A Dx509.rs65 pub(crate) fn from_pem(pem: &[u8]) -> Result<X509, ErrorStack> {
315 /// 1. Creates a `X509` by calling `X509::from_pem`.
324 let x509 = X509::from_pem(pem).unwrap(); in ut_x509_clone()
/commonlibrary/rust/ylong_http/ylong_http_client/tests/
H A Dsdv_async_client_build.rs37 .add_root_certificate(Certificate::from_pem(b"cert").unwrap()) in sdv_client_tls_builder()
/commonlibrary/rust/ylong_http/ylong_http_client/examples/
H A Dsync_https_outside.rs33 let cert = Certificate::from_pem(v)?; in req()
H A Dasync_https_outside.rs39 let cert = Certificate::from_pem(v)?;

Completed in 2 milliseconds