1 --- libjingle-0.6.14/configure.ac.orig 2021-03-02 21:47:58.773423197 +0100
2 +++ libjingle-0.6.14/configure.ac 2021-03-02 22:12:18.325516125 +0100
7 +PKG_CHECK_MODULES(LIBSRTP, libsrtp2 >= 2, [enable_srtp=yes
8 +AC_DEFINE([HAVE_SRTP2], [1], [SRTP is SRTP2])], [
9 PKG_CHECK_MODULES(LIBSRTP, libsrtp >= 1.4.4, enable_srtp=yes, enable_srtp=no)
11 if test x$enable_srtp = xno ; then
14 --- libjingle-0.6.14/talk/session/phone/srtpfilter.cc.orig 2012-02-28 16:22:42.000000000 +0100
15 +++ libjingle-0.6.14/talk/session/phone/srtpfilter.cc 2021-03-03 06:46:37.868335637 +0100
22 #include "talk/session/phone/srtpfilter.h"
28 -#ifdef SRTP_RELATIVE_PATH
29 -#include "srtp.h" // NOLINT
31 +#include <srtp2/srtp.h>
32 +#define err_status_ok srtp_err_status_ok
33 +#define err_status_auth_fail srtp_err_status_auth_fail
34 +#define err_status_replay_fail srtp_err_status_replay_fail
35 +#define err_status_replay_old srtp_err_status_replay_old
36 +#define crypto_policy_set_aes_cm_128_hmac_sha1_32 srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32
37 +#define crypto_policy_set_aes_cm_128_hmac_sha1_80 srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80
38 +#define ssrc_type_t srtp_ssrc_type_t
40 -#include "third_party/libsrtp/include/srtp.h"
41 -#endif // SRTP_RELATIVE_PATH
45 extern "C" debug_module_t mod_srtp;
46 extern "C" debug_module_t mod_auth;
47 --- libjingle-0.6.14/pkgconfig/jinglesessionphone.pc.in.orig 2021-03-02 22:14:51.918017377 +0100
48 +++ libjingle-0.6.14/pkgconfig/jinglesessionphone.pc.in 2021-03-02 22:31:17.589344203 +0100
50 Description: Jingle Session Phone Library
53 -Libs: -L${libdir} -lpthread -ljinglesessionphone -lsrtp
54 +Libs: -L${libdir} -lpthread -ljinglesessionphone @LIBSRTP_LIBS@
55 Cflags: -I${includedir}/libjingle-@LIBJINGLE_MAJORMINOR@ -DPOSIX
57 --- libjingle-0.6.14/talk/session/phone/srtpfilter.h.orig 2012-02-28 16:22:42.000000000 +0100
58 +++ libjingle-0.6.14/talk/session/phone/srtpfilter.h 2021-03-03 19:25:24.358364152 +0100
61 // Forward declaration to avoid pulling in libsrtp headers here
62 struct srtp_event_data_t;
64 -typedef srtp_ctx_t* srtp_t;
66 +typedef srtp_ctx_t_* srtp_t;