SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
27
security/libsrtp/patches/patch-srtp_srtp_c
Normal file
27
security/libsrtp/patches/patch-srtp_srtp_c
Normal file
|
@ -0,0 +1,27 @@
|
|||
add srtp_add_or_update_stream used by telephony/linphone/mediastreamer2
|
||||
|
||||
https://gitlab.linphone.org/BC/public/external/srtp/-/commit/c48e27278e656dc4b883044ec85245fb3d22dc51.patch
|
||||
|
||||
Index: srtp/srtp.c
|
||||
--- srtp/srtp.c.orig
|
||||
+++ srtp/srtp.c
|
||||
@@ -2903,6 +2903,19 @@ srtp_err_status_t srtp_dealloc(srtp_t session)
|
||||
return srtp_err_status_ok;
|
||||
}
|
||||
|
||||
+srtp_err_status_t srtp_add_or_update_stream(srtp_t session, const srtp_policy_t *policy)
|
||||
+{
|
||||
+ srtp_err_status_t status;
|
||||
+ // Update streams if the session was already initialized
|
||||
+ if (session->stream_template) {
|
||||
+ status = srtp_update_stream(session, policy);
|
||||
+ } else {
|
||||
+ status = srtp_add_stream(session, policy);
|
||||
+ }
|
||||
+
|
||||
+ return status;
|
||||
+}
|
||||
+
|
||||
srtp_err_status_t srtp_add_stream(srtp_t session, const srtp_policy_t *policy)
|
||||
{
|
||||
srtp_err_status_t status;
|
Loading…
Add table
Add a link
Reference in a new issue