-
Notifications
You must be signed in to change notification settings - Fork 486
Unencrypted SRTP fails with gstreamer gstsrtp #728
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
Comments
@dwmw2, thanks for reporting, I will do some investigation and get back to you. |
I have tried to look at both bits of code, and I see there is a miss match. The origin code in libSRTP was in correct as the cipher_key_len is also the size of the mast key and salt which is used to derive authentications keys, so the previous value of 16 is just incorrect. Exposing the NULL cipher and srtp_sec_serv_t in the public API is a bit of a double up and slightly confusing. |
I am facing the same/similar issue on maemo leste (which is devuan daedalus with packages on top) using telepathy-farstream. After some debugging I came to a conclusion that libsrtp does not like null crypto/null auth after 2542d68: basically it ignores policy being set to null auth and proceeds as if sha1-80 is used. I made a patch against 2.5.0 which makes it work, like, I am able to do SIP calls with android and with nokia n900 (running fremantle): https://git.maemo.org/leste-upstream-forks/libsrtp2/commit/cd285c8f4daa13ee4d2f5d131c6aacf18c8e11dc @pabuhler: Is that the proper way of fixing the issue? Shall I make a PR with the patch re-based to current master? |
@freemangordon , I looked quickly at your patch and I think it looks ok, so a PR is probably the best next step. |
yes, it does not make sense to set auth key len to anything but zero if there is no auth |
Since commit f1d1e57 using gstrtsp (in Pidgin, with the Pidgin-chime audio stream) fails.
https://github.com/GStreamer/gst-plugins-bad/blob/master/ext/srtp/gstsrtp.c
The text was updated successfully, but these errors were encountered: