Home
last modified time | relevance | path

Searched refs:ErrorStack (Results 1 – 10 of 10) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/
Dctx.rs27 use crate::util::c_openssl::error::ErrorStack;
50 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
116 pub(crate) fn set_min_proto_version(&mut self, version: SslVersion) -> Result<(), ErrorStack> { in set_min_proto_version() argument
130 pub(crate) fn set_max_proto_version(&mut self, version: SslVersion) -> Result<(), ErrorStack> { in set_max_proto_version() argument
148 pub(crate) fn set_ca_file<P>(&mut self, file: P) -> Result<(), ErrorStack> in set_ca_file()
154 None => return Err(ErrorStack::get()), in set_ca_file()
158 Err(_) => return Err(ErrorStack::get()), in set_ca_file()
169 pub(crate) fn set_cipher_list(&mut self, list: &str) -> Result<(), ErrorStack> { in set_cipher_list() argument
172 Err(_) => return Err(ErrorStack::get()), in set_cipher_list()
[all …]
Dssl_base.rs33 use crate::util::c_openssl::error::ErrorStack;
46 pub(crate) fn new(ctx: &SslContext) -> Result<Ssl, ErrorStack> { in new() argument
113 pub(crate) fn set_host_name_in_sni(&mut self, name: &str) -> Result<(), ErrorStack> { in set_host_name_in_sni() argument
116 Err(_) => return Err(ErrorStack::get()), in set_host_name_in_sni()
128 pub(crate) fn set_verify_hostname(&mut self, host_name: &str) -> Result<(), ErrorStack> { in set_verify_hostname() argument
Derror.rs21 use crate::c_openssl::error::ErrorStack;
32 Ssl(ErrorStack),
141 SetupFailure(ErrorStack),
146 impl<S> From<ErrorStack> for HandshakeError<S> {
147 fn from(e: ErrorStack) -> HandshakeError<S> { in from()
Dstream.rs24 use crate::c_openssl::error::ErrorStack;
42 let e = ErrorStack::get(); in get_error()
46 let error = ErrorStack::get(); in get_error()
133 pub(crate) fn new_base(ssl: Ssl, stream: S) -> Result<Self, ErrorStack> { in new_base() argument
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
Dmod.rs33 use error::ErrorStack;
43 pub(crate) fn check_ptr<T>(ptr: *mut T) -> Result<*mut T, ErrorStack> { in check_ptr() argument
45 Err(ErrorStack::get()) in check_ptr()
52 pub(crate) fn check_ret(r: c_int) -> Result<c_int, ErrorStack> { in check_ret() argument
54 Err(ErrorStack::get()) in check_ret()
Dx509.rs20 use super::error::{error_get_lib, error_get_reason, ErrorStack};
44 pub(crate) fn from_pem(pem: &[u8]) -> Result<X509, ErrorStack> { in from_pem() argument
53 pub(crate) fn from_der(der: &[u8]) -> Result<X509, ErrorStack> { in from_der() argument
62 pub(crate) fn stack_from_pem(pem: &[u8]) -> Result<Vec<X509>, ErrorStack> { in stack_from_pem() argument
79 return Err(ErrorStack::get()); in stack_from_pem()
134 pub(crate) fn new() -> Result<X509Store, ErrorStack> { in new()
141 pub(crate) fn add_cert(&mut self, cert: X509) -> Result<(), ErrorStack> { in add_cert() argument
162 pub(crate) fn set_host(&mut self, host: &str) -> Result<(), ErrorStack> { in set_host() argument
169 pub(crate) fn set_ip(&mut self, ip_addr: IpAddr) -> Result<(), ErrorStack> { in set_ip() argument
Derror.rs205 pub struct ErrorStack(Vec<StackError>); struct
207 impl fmt::Display for ErrorStack { implementation
220 impl Error for ErrorStack {} implementation
222 impl ErrorStack { impl
223 pub(crate) fn get() -> ErrorStack { in get()
228 ErrorStack(vec) in get()
Dbio.rs23 use super::error::ErrorStack;
47 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
Dadapter.rs18 use crate::util::c_openssl::error::ErrorStack;
41 inner: Result<SslContextBuilder, ErrorStack>,
418 pub(crate) fn ssl_new(&self, domain: &str) -> Result<TlsSsl, ErrorStack> { in ssl_new() argument
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ssl_stream/
Dc_ssl_stream.rs20 use crate::util::c_openssl::error::ErrorStack;
56 pub(crate) fn new(ssl: Ssl, stream: S) -> Result<Self, ErrorStack> { in new() argument