/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/ |
H A D | ctx.rs | 27 use crate::util::c_openssl::error::ErrorStack; 86 pub(crate) fn new(method: SslMethod) -> Result<Self, ErrorStack> { in new() argument 165 Err(_) => return Err(ErrorStack::get()), in set_cipher_list() 176 Err(_) => return Err(ErrorStack::get()), in set_cipher_suites() 193 ) -> Result<(), ErrorStack> in set_certificate_file() 220 pub(crate) fn get_c_file<P>(file: P) -> Result<CString, ErrorStack> in get_c_file() 226 None => return Err(ErrorStack::get()), in get_c_file() 230 Err(_) => Err(ErrorStack::get()), in get_c_file() 243 _ => Err(ErrorStack::get()), in set_alpn_protos() 272 pub(crate) fn set_sigalgs_list(&mut self) -> Result<(), ErrorStack> { in set_sigalgs_list() argument [all …]
|
H A D | error.rs | 21 use crate::c_openssl::error::ErrorStack; 33 Ssl(ErrorStack), 144 SetupFailure(ErrorStack), 151 impl<S> From<ErrorStack> for HandshakeError<S> { 152 fn from(e: ErrorStack) -> HandshakeError<S> { in from() 187 use crate::util::c_openssl::error::{ErrorStack, VerifyError}; 243 internal: Some(InternalError::Ssl(ErrorStack::get())), in ut_ssl_error_source() 305 let error_stack = ErrorStack::get(); in ut_ssl_error_fmt() 393 let internal_error = InternalError::Ssl(ErrorStack::get()); in ut_internal_error_debug()
|
H A D | ssl_base.rs | 39 use crate::util::c_openssl::error::ErrorStack; 52 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 125 Err(_) => return Err(ErrorStack::get()), in set_host_name_in_sni() 137 pub(crate) fn set_verify_hostname(&mut self, host_name: &str) -> Result<(), ErrorStack> { in set_verify_hostname() argument
|
H A D | stream.rs | 25 use crate::c_openssl::error::ErrorStack; 50 let e = ErrorStack::get(); in get_error() 54 let error = ErrorStack::get(); in get_error() 145 ) -> Result<Self, ErrorStack> { in new_base() argument 275 internal: Some(InternalError::Ssl(ErrorStack::get())), in verify_server_cert() 284 internal: Some(InternalError::Ssl(ErrorStack::get())), in verify_server_cert() 294 internal: Some(InternalError::Ssl(ErrorStack::get())), in verify_server_cert()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ |
H A D | x509.rs | 22 use super::error::{error_get_lib, error_get_reason, ErrorStack}; 65 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 100 return Err(ErrorStack::get()); in stack_from_pem() 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 209 pub(crate) fn new() -> Result<X509Store, ErrorStack> { in new() 225 Err(_) => return Err(ErrorStack::get()), in add_path() [all …]
|
H A D | mod.rs | 35 use error::ErrorStack; 47 pub(crate) fn check_ptr<T>(ptr: *mut T) -> Result<*mut T, ErrorStack> { in check_ptr() argument 49 Err(ErrorStack::get()) in check_ptr() 56 pub(crate) fn check_ret(r: c_int) -> Result<c_int, ErrorStack> { in check_ret() argument 58 Err(ErrorStack::get()) in check_ret()
|
H A D | error.rs | 205 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()
|
H A D | bio.rs | 23 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
|
H A D | adapter.rs | 19 use crate::util::c_openssl::error::ErrorStack; 43 inner: Result<SslContextBuilder, ErrorStack>, 469 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 D | cert_chain_utils.rs | 49 fn pem_to_x509(&self, pem: &str) -> Result<X509, openssl::error::ErrorStack> { in pem_to_x509() argument 53 pub fn to_x509(&self) -> Result<Vec<X509>, openssl::error::ErrorStack> { in to_x509() argument 60 pub fn to_x509_store(&self) -> Result<X509Store, openssl::error::ErrorStack> { in to_x509_store() argument 71 pub fn to_der(&self) -> Result<Vec<Vec<u8>>, openssl::error::ErrorStack> { in to_der() argument
|
H A D | key_enable.rs | 22 use openssl::error::ErrorStack; 68 fn print_openssl_error_stack(error_stack: ErrorStack) { in print_openssl_error_stack() argument
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/ |
H A D | pinning.rs | 19 use crate::util::c_openssl::error::ErrorStack; 181 internal: Some(InternalError::Ssl(ErrorStack::get())), in sha256_digest() 189 internal: Some(InternalError::Ssl(ErrorStack::get())), in sha256_digest()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ssl_stream/ |
H A D | c_ssl_stream.rs | 21 use crate::util::c_openssl::error::ErrorStack; 64 ) -> Result<Self, ErrorStack> { in new() argument
|