pub struct SslConfig { /* private fields */ }
Expand description
A TLS private / public key pair and certificate.
Implementations§
Source§impl SslConfig
impl SslConfig
Sourcepub fn create() -> Result<SslConfig, ErrorStack>
pub fn create() -> Result<SslConfig, ErrorStack>
Generates an anonymous private / public key pair and self-signed certificate.
The certificate can be self-signed because the trust in the webrtc-unreliable
server comes
form the certificate fingerprint embedded in the session response. If the session response
descriptor is deliviered over a trusted channel (such as HTTPS with a valid server
certificate), the client will verify that the self-signed certificate matches
the fingerprint, and so the resulting DTLS connection will have the same level of
authentication.
Client connections are assumed to be anonymous and are unverified, authentication can be handled through the resulting WebRTC data channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SslConfig
impl RefUnwindSafe for SslConfig
impl Send for SslConfig
impl Sync for SslConfig
impl Unpin for SslConfig
impl UnwindSafe for SslConfig
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