-
Notifications
You must be signed in to change notification settings - Fork 52
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
Make ProtectionProfile methods public #260
Make ProtectionProfile methods public #260
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #260 +/- ##
==========================================
- Coverage 78.83% 78.32% -0.51%
==========================================
Files 17 17
Lines 992 992
==========================================
- Hits 782 777 -5
- Misses 118 124 +6
+ Partials 92 91 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comment on naming.
The changes look good to me!
srtp_cipher.go
Outdated
RtpAuthTagLen() (int, error) | ||
RtcpAuthTagLen() (int, error) | ||
// aeadAuthTagLen returns AEAD auth key length of the cipher. | ||
// See the note below. | ||
aeadAuthTagLen() (int, error) | ||
AeadAuthTagLen() (int, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acronyms are all capitals in Go's naming convention. So RTPAuth*
, RTCPAuth*
, AEADAuth*
would be preferred
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
I have changed names as requested and added comments to make linter happy. Please take a look on test pipeline, it failed with following error: |
@sirzooro Great! Can you squash those commits into one. Use your description on GitHub as the commit message. I added you to the GitHub org so the tests should run (without our intervention). When it goes green we can merge :) |
aadc5e4
to
3fff0dd
Compare
Done :) |
3fff0dd
to
4ce5dff
Compare
Perfect! Thank you so much @sirzooro Feel free to push a tag if you need one. |
4ce5dff
to
0308887
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This allows to get values like key length and use them with key management protocols like MIKEY, instead of creating own constants for this. Resolves pion#258
0308887
to
0c244b8
Compare
Description
Make ProtectionProfile methods public. This allows to get values like key length and use them with key management protocols like MIKEY, instead of creating own constants for this.
Reference issue
Fixes #258