Home
last modified time | relevance | path

Searched refs:ssl (Results 1 - 14 of 14) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/
H A Dstream.rs26 use crate::c_openssl::ffi::ssl::{SSL_connect, SSL_set_bio, SSL_shutdown};
32 use crate::util::c_openssl::ffi::ssl::SSL;
38 pub(crate) ssl: ManuallyDrop<Ssl>,
47 let code = self.ssl.get_error(err);
70 if let Some(err) = unsafe { get_panic::<S>(self.ssl.get_raw_bio()) } { in check_panic()
76 unsafe { get_error::<S>(self.ssl.get_raw_bio()) } in get_bio_error()
81 let bio = self.ssl.get_raw_bio();
88 let bio = self.ssl.get_raw_bio();
93 pub(crate) fn ssl(&self) -> &SslRef {
94 &self.ssl
[all...]
H A Dssl_base.rs30 use crate::c_openssl::ffi::ssl::{
40 use crate::util::c_openssl::ffi::ssl::{SSL_free, SSL_get0_alpn_selected, SSL_new, SSL};
72 use crate::c_openssl::ffi::ssl::SSL_connect;
75 let ret = unsafe { SSL_connect(stream.ssl.as_ptr()) };
183 use crate::c_openssl::ffi::ssl::SSL_ctrl; in ssl_set_tlsext_host_name()
185 use crate::c_openssl::ffi::ssl::SSL_set_tlsext_host_name; in ssl_set_tlsext_host_name()
H A Dctx.rs23 use crate::c_openssl::ffi::ssl::{
29 use crate::util::c_openssl::ffi::ssl::SSL_CTX_ctrl;
30 use crate::util::c_openssl::ffi::ssl::{
36 use crate::util::c_openssl::ffi::ssl::{
H A Dmethod.rs14 use crate::util::c_openssl::ffi::ssl::{TLS_client_method, SSL_METHOD};
H A Derror.rs188 use crate::util::c_openssl::ssl::{InternalError, SslError, SslErrorCode};
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ssl_stream/
H A Dc_ssl_stream.rs22 use crate::util::c_openssl::ssl::{self, ShutdownResult, Ssl, SslErrorCode};
24 /// An asynchronous version of [`openssl::ssl::SslStream`].
26 pub struct AsyncSslStream<S>(ssl::SslStream<Wrapper<S>>);
31 F: FnOnce(&mut ssl::SslStream<Wrapper<S>>) -> R, in with_context()
51 self.0.ssl().negotiated_alpn_protocol()
59 /// Like [`SslStream::new`](ssl::SslStream::new).
61 ssl: Ssl,
66 ssl::SslStream::new_base(
67 ssl,
77 /// Like [`SslStream::connect`](ssl
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/quic/
H A Dmod.rs29 use crate::c_openssl::ssl::verify_server_cert;
31 use crate::util::c_openssl::ssl::Ssl;
124 ssl: &mut Ssl,
149 if verify_server_cert(ssl.get_raw_ptr(), key.as_str()).is_ok() {
291 ssl: *mut c_void,
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dadapter.rs20 use crate::util::c_openssl::ssl::{
289 builder.set_verify(crate::util::c_openssl::ssl::SSL_VERIFY_NONE); in danger_accept_invalid_certs()
440 let mut ssl = Ssl::new(ctx)?; variables
444 ssl.set_host_name_in_sni(domain)?;
449 ssl.set_verify_hostname(domain)?;
451 Ok(TlsSsl(ssl))
816 /// UT test cases for `TlsConfig::ssl`.
835 /// UT test cases for `TlsConfig::ssl` and `SslRef::set_verify_hostname`.
858 let ssl = config in ut_tls_ssl_verify_hostname()
863 let mut tls_stream = ssl in ut_tls_ssl_verify_hostname()
[all...]
H A Dmod.rs24 pub(crate) mod ssl;
/commonlibrary/rust/ylong_http/ylong_http_client/tests/common/
H A Dmod.rs181 let mut acceptor = openssl::ssl::SslAcceptor::mozilla_intermediate(openssl::ssl::SslMethod::tls())
187 .set_private_key_file("tests/file/key.pem", openssl::ssl::SslFiletype::PEM)
194 openssl::ssl::select_next_proto(b"\x08http/1.1", client).ok_or(openssl::ssl::AlpnError::NOACK)
200 let ssl = openssl::ssl::Ssl::new(acceptor.context()).expect("Ssl Error");
201 let mut stream = tokio_openssl::SslStream::new(ssl, stream).expect("SslStream Error");
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ffi/
H A Dmod.rs21 pub mod ssl; // todo modules
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dssl_stream.rs17 use crate::util::c_openssl::ssl::SslStream;
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/
H A Dpinning.rs24 use crate::util::c_openssl::ssl::{InternalError, SslError, SslErrorCode};
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/connector/
H A Dmod.rs385 .and_then(|ssl| AsyncSslStream::new(ssl.into_inner(), tcp, pinned_key))

Completed in 7 milliseconds