Fix [switch_core_media.c]: SRTP media crypto keys are not working

Comparing the user given cypto type string to both name and alias of the default crypto suites supported by the system.
This commit is contained in:
Ajay Sabat 2020-11-11 12:46:36 -08:00
parent 0f7ba14333
commit ea808c2cb8
1 changed files with 1 additions and 1 deletions

View File

@ -1761,7 +1761,7 @@ static void switch_core_session_parse_crypto_prefs(switch_core_session_t *sessio
int ok = 0; int ok = 0;
for (j = 0; j < CRYPTO_INVALID; j++) { for (j = 0; j < CRYPTO_INVALID; j++) {
if (!strcasecmp(fields[i], SUITES[j].name)) { if (!strcasecmp(fields[i], SUITES[j].name) || !strcasecmp(fields[i], SUITES[j].alias)) {
smh->crypto_suite_order[k++] = SUITES[j].type; smh->crypto_suite_order[k++] = SUITES[j].type;
ok++; ok++;
break; break;