Home
last modified time | relevance | path

Searched defs:ErrorStack (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dx509.rs65 pub(crate) fn from_pem(pem: &[u8]) -> Result<X509, ErrorStack> { in from_pem() argument
74 pub(crate) fn from_der(der: &[u8]) -> Result<X509, ErrorStack> { in from_der() argument
83 pub(crate) fn stack_from_pem(pem: &[u8]) -> Result<Vec<X509>, ErrorStack> { in stack_from_pem() argument
115 pub(crate) fn get_cert_name(&self) -> Result<X509Name, ErrorStack> { in get_cert_name() argument
121 pub(crate) fn get_issuer_name(&self) -> Result<X509Name, ErrorStack> { in get_issuer_name() argument
127 pub(crate) fn get_cert(&self) -> Result<EvpPkey, ErrorStack> { in get_cert() argument
216 pub(crate) fn add_cert(&mut self, cert: X509) -> Result<(), ErrorStack> { in add_cert() argument
221 pub(crate) fn add_path(&mut self, path: String) -> Result<(), ErrorStack> { in add_path() argument
248 pub(crate) fn set_host(&mut self, host: &str) -> Result<(), ErrorStack> { in set_host() argument
257 pub(crate) fn set_ip(&mut self, ip_addr: IpAddr) -> Result<(), ErrorStack> { in set_ip() argument
[all …]
H A Dmod.rs47 pub(crate) fn check_ptr<T>(ptr: *mut T) -> Result<*mut T, ErrorStack> { in check_ptr() argument
56 pub(crate) fn check_ret(r: c_int) -> Result<c_int, ErrorStack> { in check_ret() argument
H A Derror.rs205 pub struct ErrorStack(Vec<StackError>); struct
207 impl fmt::Display for ErrorStack { implementation
220 impl Error for ErrorStack {} implementation
222 impl ErrorStack { implementation
H A Dbio.rs47 pub(crate) fn from_byte(buf: &'a [u8]) -> Result<BioSlice<'a>, ErrorStack> { in from_byte() argument
84 fn new<S: Read + Write>() -> Result<BioMethodInner, ErrorStack> { in new() argument
118 fn new<S: Read + Write>() -> Result<BioMethod, ErrorStack> { in new() argument
157 pub(crate) fn new<S: Read + Write>(stream: S) -> Result<(*mut BIO, BioMethod), ErrorStack> { in new() argument
H A Dadapter.rs469 pub(crate) fn ssl_new(&self, domain: &str) -> Result<TlsSsl, ErrorStack> { in ssl_new() argument
/ohos5.0/base/security/code_signature/services/key_enable/src/
H A Dcert_chain_utils.rs49 fn pem_to_x509(&self, pem: &str) -> Result<X509, openssl::error::ErrorStack> { in pem_to_x509()
53 pub fn to_x509(&self) -> Result<Vec<X509>, openssl::error::ErrorStack> { in to_x509()
60 pub fn to_x509_store(&self) -> Result<X509Store, openssl::error::ErrorStack> { in to_x509_store()
71 pub fn to_der(&self) -> Result<Vec<Vec<u8>>, openssl::error::ErrorStack> { in to_der()
H A Dkey_enable.rs68 fn print_openssl_error_stack(error_stack: ErrorStack) { in print_openssl_error_stack()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/
H A Dctx.rs50 pub(crate) fn builder(method: SslMethod) -> Result<SslContextBuilder, ErrorStack> { in builder() argument
86 pub(crate) fn new(method: SslMethod) -> Result<Self, ErrorStack> { in new() argument
117 pub(crate) fn set_min_proto_version(&mut self, version: SslVersion) -> Result<(), ErrorStack> { in set_min_proto_version() argument
131 pub(crate) fn set_max_proto_version(&mut self, version: SslVersion) -> Result<(), ErrorStack> { in set_max_proto_version() argument
162 pub(crate) fn set_cipher_list(&mut self, list: &str) -> Result<(), ErrorStack> { in set_cipher_list() argument
173 pub(crate) fn set_cipher_suites(&mut self, list: &str) -> Result<(), ErrorStack> { in set_cipher_suites() argument
236 pub(crate) fn set_alpn_protos(&mut self, protocols: &[u8]) -> Result<(), ErrorStack> { in set_alpn_protos() argument
272 pub(crate) fn set_sigalgs_list(&mut self) -> Result<(), ErrorStack> { in set_sigalgs_list() argument
H A Dssl_base.rs52 pub(crate) fn new(ctx: &SslContext) -> Result<Ssl, ErrorStack> { in new() argument
122 pub(crate) fn set_host_name_in_sni(&mut self, name: &str) -> Result<(), ErrorStack> { in set_host_name_in_sni() argument
137 pub(crate) fn set_verify_hostname(&mut self, host_name: &str) -> Result<(), ErrorStack> { in set_verify_hostname() argument
H A Dstream.rs145 ) -> Result<Self, ErrorStack> { in new_base() argument
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ssl_stream/
H A Dc_ssl_stream.rs64 ) -> Result<Self, ErrorStack> { in new() argument