pub struct TlsSocketOptions<'a> { /* private fields */ }
Expand description
TLS socket options.
This is used by TlsSocket
when used as a
EasySocket
.
Implementations§
Source§impl<'a> TlsSocketOptions<'a>
impl<'a> TlsSocketOptions<'a>
Sourcepub fn new_with_seed_from_time<S>(server_name: S) -> Self
pub fn new_with_seed_from_time<S>(server_name: S) -> Self
Create a new socket options with a seed based on the current time
§Returns
- A new socket options object
§Notes
Like TlsSocketOptions::new
, but the seed is based on the current time.
Uses sys::sceRtcGetCurrentTick
to get the current time.
Sourcepub fn disable_rsa_signatures(&mut self)
pub fn disable_rsa_signatures(&mut self)
Disable RSA signatures
By default, RSA signatures are enabled.
Sourcepub fn set_cert(&mut self, cert: Option<Certificate<'a>>)
pub fn set_cert(&mut self, cert: Option<Certificate<'a>>)
Sourcepub fn server_name(&self) -> &str
pub fn server_name(&self) -> &str
Get the server name
Sourcepub fn cert(&self) -> Option<&Certificate<'a>>
pub fn cert(&self) -> Option<&Certificate<'a>>
Get the certificate
Sourcepub fn rsa_signatures_enabled(&self) -> bool
pub fn rsa_signatures_enabled(&self) -> bool
Return whether RSA signatures are enabled
Sourcepub fn reset_max_fragment_length(&self) -> bool
pub fn reset_max_fragment_length(&self) -> bool
Return whether the max fragment length should be reset
Sourcepub fn set_reset_max_fragment_length(&mut self, reset_max_fragment_length: bool)
pub fn set_reset_max_fragment_length(&mut self, reset_max_fragment_length: bool)
Set whether the max fragment length should be reset
By default, the max fragment length is not reset.
Sourcepub fn ca(&self) -> Option<&Certificate<'a>>
pub fn ca(&self) -> Option<&Certificate<'a>>
Get the CA
Sourcepub fn set_ca(&mut self, ca: Option<Certificate<'a>>)
pub fn set_ca(&mut self, ca: Option<Certificate<'a>>)
Sourcepub fn set_enable_rsa_signatures(&mut self, enable_rsa_signatures: bool)
pub fn set_enable_rsa_signatures(&mut self, enable_rsa_signatures: bool)
Set whether RSA signatures should be enabled
§Arguments
enable_rsa_signatures
: Whether RSA signatures should be enabled
Sourcepub fn set_server_name<S>(&mut self, server_name: S)
pub fn set_server_name<S>(&mut self, server_name: S)
Trait Implementations§
Source§impl<'a> Clone for TlsSocketOptions<'a>
impl<'a> Clone for TlsSocketOptions<'a>
Source§fn clone(&self) -> TlsSocketOptions<'a>
fn clone(&self) -> TlsSocketOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for TlsSocketOptions<'a>
impl<'a> Debug for TlsSocketOptions<'a>
Source§impl<'a> Default for TlsSocketOptions<'a>
impl<'a> Default for TlsSocketOptions<'a>
Source§fn default() -> TlsSocketOptions<'a>
fn default() -> TlsSocketOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TlsSocketOptions<'a>
impl<'a> RefUnwindSafe for TlsSocketOptions<'a>
impl<'a> Send for TlsSocketOptions<'a>
impl<'a> Sync for TlsSocketOptions<'a>
impl<'a> Unpin for TlsSocketOptions<'a>
impl<'a> UnwindSafe for TlsSocketOptions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more