webrtc-rs / webrtc

A pure Rust implementation of WebRTC
https://webrtc.rs
Apache License 2.0
3.95k stars 347 forks source link

make helper methods on ProtectionProfile pub #582

Closed bbaldino closed 2 weeks ago

bbaldino commented 1 month ago

I was looking at using the srtp code here in some code I'm playing with, but it's slightly awkward to use on its own (without the dtls code from webrtc-rs as well)--Is there any harm in making these methods public? It would make it easier to consume webrtc-rs/srtp as a standalone lib. Specifically, I'd like to access them to write code for extracting keys from keying material.

EDIT: Making the SessionKeys type pub would also be useful.