FS-5937: i need to build a test rig for this, go go gadget iphone commit

This commit is contained in:
Brian West
2014-02-24 23:44:35 -06:00
parent 7aff64b2d2
commit 463f32c4e3
3 changed files with 14 additions and 14 deletions

View File

@@ -3060,21 +3060,21 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_crypto_key(switch_rtp_t *rtp_sess
}
break;
case AES_GCM_256_8:
case AEAD_AES_256_GCM_8:
crypto_policy_set_aes_gcm_256_8_auth(&policy->rtp);
crypto_policy_set_aes_gcm_256_8_auth(&policy->rtcp);
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
switch_channel_set_variable(channel, "rtp_has_crypto", "AES_GCM_256_8");
switch_channel_set_variable(channel, "rtp_has_crypto", "AEAD_AES_256_GCM_8");
}
break;
case AES_GCM_128_8:
case AEAD_AES_128_GCM_8:
crypto_policy_set_aes_gcm_128_8_auth(&policy->rtp);
crypto_policy_set_aes_gcm_128_8_auth(&policy->rtcp);
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
switch_channel_set_variable(channel, "rtp_has_crypto", "AES_GCM_128_8");
switch_channel_set_variable(channel, "rtp_has_crypto", "AEAD_AES_128_GCM_8");
}
break;