pub struct SrtpContext { /* private fields */ }
Expand description

SRTP context.

Implementations

Get an SRTP context builder.

Create a new SRTP context builder that will use a given private key, certificate and default parameters.

Create a new SRTP context with self signed certificate from a given key and use default parameters.

Create a new SRTP context from a given SSL context and use default parameters.

Panics

The method panics if the given context does not contain any private key or a certificate.

Get a certificate fingerprint.

Connect to a given SRTP “server” and check that the peer certificate matches a given fingerprint.

Connect to a given SRTCP “server” and check that the peer certificate matches a given fingerprint.

Connect to a given muxed SRTP-SRTCP “server” and check that the peer certificate matches a given fingerprint.

Accept connection from a given SRTP “client” and check that the peer certificate matches a given fingerprint.

Accept connection from a given SRTCP “client” and check that the peer certificate matches a given fingerprint.

Accept connection from a given muxed SRTP-SRTCP “client” and check that the peer certificate matches a given fingerprint.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.