Skip to content

Commit e4b257d

Browse files
authored
Add MasterKeyIdentifier to use_srtp ext in flight3 (#835)
1 parent fd27a52 commit e4b257d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

flight3handler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ func flight3Generate(
307307

308308
if len(cfg.localSRTPProtectionProfiles) > 0 {
309309
extensions = append(extensions, &extension.UseSRTP{
310-
ProtectionProfiles: cfg.localSRTPProtectionProfiles,
310+
ProtectionProfiles: cfg.localSRTPProtectionProfiles,
311+
MasterKeyIdentifier: cfg.localSRTPMasterKeyIdentifier,
311312
})
312313
}
313314

pkg/protocol/extension/use_srtp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const (
1515
// UseSRTP allows a Client/Server to negotiate what SRTPProtectionProfiles
1616
// they both support
1717
//
18-
// https://tools.ietf.org/html/rfc8422
18+
// https://datatracker.ietf.org/doc/html/rfc5764
1919
type UseSRTP struct {
2020
ProtectionProfiles []SRTPProtectionProfile
2121
MasterKeyIdentifier []byte

0 commit comments

Comments
 (0)