-
Notifications
You must be signed in to change notification settings - Fork 46
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
base: master
Are you sure you want to change the base?
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 76.73% 76.73%
=======================================
Files 17 17
Lines 1255 1255
=======================================
Hits 963 963
Misses 200 200
Partials 92 92
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 :) |
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
3fff0dd
to
4ce5dff
Compare
Perfect! Thank you so much @sirzooro Feel free to push a tag if you need one. |
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