Skip to content

Commit a7a931a

Browse files
committed
Added support for Cryptex (RFC 9335)
This is final part of Cryptex (RFC 9335) implementation for pion/webrtc. Public API is based on WebRTC Extensions specification (W3C Editor's Draft from 19 December 2025).
1 parent 0425062 commit a7a931a

16 files changed

Lines changed: 959 additions & 25 deletions

configuration.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@ type Configuration struct {
5252
// SDPSemantics controls the type of SDP offers accepted by and
5353
// SDP answers generated by the PeerConnection.
5454
SDPSemantics SDPSemantics `json:"sdpSemantics,omitempty"`
55+
56+
// RtpHeaderEncryptionPolicy affects whether RTP header extension encryption
57+
// (RFC 9335 Cryptex) is negotiated.
58+
RtpHeaderEncryptionPolicy RtpHeaderEncryptionPolicy `json:"rtpHeaderEncryptionPolicy,omitempty"`
5559
}

configuration_js.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@ type Configuration struct {
3737
// ICECandidatePoolSize describes the size of the prefetched ICE pool.
3838
ICECandidatePoolSize uint8
3939

40+
// RtpHeaderEncryptionPolicy affects whether RTP header extension encryption
41+
// (RFC 9335 Cryptex) is negotiated.
42+
RtpHeaderEncryptionPolicy RtpHeaderEncryptionPolicy
43+
4044
Certificates []Certificate `json:"certificates,omitempty"`
4145
}

0 commit comments

Comments
 (0)