Home
last modified time | relevance | path

Searched refs:X509 (Results 1 - 3 of 3) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dx509.rs40 pub(crate) struct X509;
64 impl X509 { impls
65 pub(crate) fn from_pem(pem: &[u8]) -> Result<X509, ErrorStack> {
71 Ok(X509::from_ptr(ptr))
74 pub(crate) fn from_der(der: &[u8]) -> Result<X509, ErrorStack> {
79 Ok(X509::from_ptr(ptr))
83 pub(crate) fn stack_from_pem(pem: &[u8]) -> Result<Vec<X509>, ErrorStack> {
101 certs.push(X509(r));
146 impl Stackof for X509 {
150 impl Clone for X509 {
[all...]
H A Dadapter.rs24 use crate::util::c_openssl::x509::{X509Store, X509};
530 /// `Cert` is based on `X509`, which indicates `X509` public
545 pub struct Cert(X509);
566 Ok(Self(X509::from_pem(pem).map_err(|e| { in from_pem()
583 Ok(Self(X509::from_der(der).map_err(|e| { in from_der()
590 Ok(X509::stack_from_pem(pem) in stack_from_pem()
598 /// Represents a server X509 certificates.
625 let cert_list = X509::stack_from_pem(pem) in from_pem()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/tls/verifier/
H A Dopenssl.rs18 use crate::util::c_openssl::x509::{X509StoreContextRef, X509};
20 /// ServerCerts is provided to fetch info from X509
128 let target_cert = X509::from_pem(target_pem) in cmp_pem_cert()

Completed in 3 milliseconds