提交 fa0edd81 authored 作者: Brian West's avatar Brian West

Merge pull request #1304 in FS/freeswitch from…

Merge pull request #1304 in FS/freeswitch from ~TREVORA/freeswitch:bugfix/FS-10370-enable-padding-for-srtp-keys to master

* commit '09174819':
  FS-10370: Enable SRTP Key Padding
......@@ -1173,10 +1173,12 @@ static switch_status_t switch_core_media_build_crypto(switch_media_handle_t *smh
#endif
switch_b64_encode(key, SUITES[ctype].keylen, b64_key, sizeof(b64_key));
p = strrchr((char *) b64_key, '=');
if (!switch_channel_var_true(channel, "rtp_pad_srtp_keys")) {
p = strrchr((char *) b64_key, '=');
while (p && *p && *p == '=') {
*p-- = '\0';
while (p && *p && *p == '=') {
*p-- = '\0';
}
}
if (index == SWITCH_NO_CRYPTO_TAG) index = ctype + 1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论