webrtc/dtls_transport/
dtls_fingerprint.rs

1use serde::{Deserialize, Serialize};
2
3/// DTLSFingerprint specifies the hash function algorithm and certificate
4/// fingerprint as described in [RFC 4572].
5///
6/// ## Specifications
7///
8/// * [W3C]
9///
10/// [W3C]: https://w3c.github.io/webrtc-pc/#rtcdtlsfingerprint
11/// [RFC 4572]: https://tools.ietf.org/html/rfc4572
12#[derive(Default, Debug, Clone, Serialize, Deserialize)]
13pub struct RTCDtlsFingerprint {
14    /// Algorithm specifies one of the the hash function algorithms defined in
15    /// the 'Hash function Textual Names' registry.
16    pub algorithm: String,
17
18    /// Value specifies the value of the certificate fingerprint in lowercase
19    /// hex string as expressed utilizing the syntax of 'fingerprint' in
20    /// <https://tools.ietf.org/html/rfc4572#section-5>.
21    pub value: String,
22}