Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for SRTP_NULL_HMAC_SHA1_80 cipher #2819

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

sirzooro
Copy link
Contributor

Added support for SRTP_NULL_HMAC_SHA1_80 protection profile (cipher). It is disabled by default. You need to use SettingEngine and set list of allowed SRTP protection profiles using its SetSRTPProtectionProfiles function called with dtls.SRTP_NULL_HMAC_SHA1_80 as a parameter. You need to do this for both pion peers. For non-pion ones you may need to enable it somewhere too, as NULL cipher is usually disabled for security reasons.

Reference issue

Fixes #2273

Added support for SRTP_NULL_HMAC_SHA1_80 protection profile (cipher).
It is disabled by default. You need to use SettingEngine and set list
of allowed SRTP protection profiles using its SetSRTPProtectionProfiles
function called with dtls.SRTP_NULL_HMAC_SHA1_80 as a parameter. You
need to do this for both pion peers. For non-pion ones you may need to
enable it somewhere too, as NULL cipher is usually disabled for security
reasons.
Copy link

codecov bot commented Jul 20, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.09%. Comparing base (064006d) to head (d60eb17).

Files Patch % Lines
dtlstransport.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2819      +/-   ##
==========================================
- Coverage   79.21%   79.09%   -0.12%     
==========================================
  Files          89       89              
  Lines        8270     8272       +2     
==========================================
- Hits         6551     6543       -8     
- Misses       1253     1260       +7     
- Partials      466      469       +3     
Flag Coverage Δ
go 80.71% <0.00%> (-0.13%) ⬇️
wasm 64.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Sean-Der Sean-Der left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thank you so much @sirzooro this was a lot of work I appreciate it

@Sean-Der Sean-Der merged commit 19d0224 into pion:master Jul 20, 2024
16 of 17 checks passed
@sirzooro sirzooro deleted the add_null_srtp_cipher branch July 21, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add interface to disable DTLS SRTP
2 participants