Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
67dbc4a
)
srtp: fix build on ubuntu-22.04
45/38345/2
author
Dave Wallace
<dwallacelf@gmail.com>
Thu, 23 Feb 2023 19:26:46 +0000
(14:26 -0500)
committer
Dave Wallace
<dwallacelf@gmail.com>
Thu, 23 Feb 2023 20:37:17 +0000
(20:37 +0000)
- The version of libsrtp2 (2.4.2) on ubuntu-22.04 changed
the 'ekt' field in srtp_policy_t to 'deprecated_ekt'.
Type: fix
Change-Id: Icb9d8f3b56c8305bcdac5066a5f8e3e5d17d37cf
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
src/plugins/srtp/srtp.c
patch
|
blob
|
history
diff --git
a/src/plugins/srtp/srtp.c
b/src/plugins/srtp/srtp.c
index
36f4628
..
aacadce
100644
(file)
--- a/
src/plugins/srtp/srtp.c
+++ b/
src/plugins/srtp/srtp.c
@@
-52,6
+52,7
@@
srtp_init_policy (srtp_tc_t *ctx, transport_endpt_cfg_srtp_t *cfg)
{
sp = &ctx->srtp_policy[i];
sp_cfg = &cfg->policies[i];
+ clib_memset (sp, 0, sizeof (*sp));
srtp_crypto_policy_set_rtp_default (&sp->rtp);
srtp_crypto_policy_set_rtcp_default (&sp->rtcp);
@@
-59,7
+60,6
@@
srtp_init_policy (srtp_tc_t *ctx, transport_endpt_cfg_srtp_t *cfg)
sp->ssrc.value = sp_cfg->ssrc_value;
sp->key = clib_mem_alloc (sp_cfg->key_len);
clib_memcpy (sp->key, sp_cfg->key, sp_cfg->key_len);
- sp->ekt = 0;
sp->next = i < 1 ? &ctx->srtp_policy[i + 1] : 0;
sp->window_size = sp_cfg->window_size;
sp->allow_repeat_tx = sp_cfg->allow_repeat_tx;