Home
last modified time | relevance | path

Searched refs:from_pem (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dadapter.rs596 pub fn from_pem(pem: &[u8]) -> Result<Self, HttpClientError> { in from_pem() method
597 Ok(Self(X509::from_pem(pem).map_err(|e| { in from_pem()
656 pub fn from_pem(pem: &[u8]) -> Result<Self, HttpClientError> { in from_pem() method
792 let certificate = Certificate::from_pem(include_bytes!("../../../tests/file/root-ca.pem")) in ut_add_root_certificates()
816 let certificate = Certificate::from_pem(pem).unwrap(); in ut_certificate_clone()
830 let cert = Cert::from_pem(pem).unwrap(); in ut_cert_clone()
933 let x509 = Cert::from_pem(pem.as_bytes()); in ut_x509_from_pem()
938 let x509 = Cert::from_pem(cert); in ut_x509_from_pem()
977 let certs = Certificate::from_pem(v); in ut_certificate_from_pem()
H A Dx509.rs65 pub(crate) fn from_pem(pem: &[u8]) -> Result<X509, ErrorStack> { in from_pem() method
313 let x509 = X509::from_pem(pem).unwrap(); in ut_x509_clone()
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/
H A Dconfig.rs361 pub fn from_pem(pem: &[u8]) -> Result<Certificate, HttpClientError> { in from_pem() method
382 let cert = reqwest::Certificate::from_pem(slice) in from_pem()
/ohos5.0/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()
/ohos5.0/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)?; in req()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/tls/verifier/
H A Dopenssl.rs128 let target_cert = X509::from_pem(target_pem) in cmp_pem_cert()
/ohos5.0/base/security/code_signature/services/key_enable/src/
H A Dcert_chain_utils.rs50 X509::from_pem(pem.as_bytes()) in pem_to_x509()
H A Dprofile_utils.rs190 let signed_pem = X509::from_pem(signed_cert.as_bytes())?; in get_cert_details()
/ohos5.0/base/request/request/services/src/manage/config/
H A Dcert_manager.rs71 match Certificate::from_pem(cert_slice) { in update_system_cert()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dclient.rs1098 .add_root_certificate(Certificate::from_pem(b"cert").unwrap()) in ut_client_build_tls()