FS-10853: remove extern that is no longer needed
This commit is contained in:
parent
f5090ae96b
commit
e58ff3392f
|
@ -71,8 +71,6 @@ typedef struct switch_srtp_crypto_suite_s {
|
||||||
int salt_len;
|
int salt_len;
|
||||||
} switch_srtp_crypto_suite_t;
|
} switch_srtp_crypto_suite_t;
|
||||||
|
|
||||||
extern switch_srtp_crypto_suite_t SUITES[CRYPTO_INVALID];
|
|
||||||
|
|
||||||
struct switch_rtp_crypto_key {
|
struct switch_rtp_crypto_key {
|
||||||
uint32_t index;
|
uint32_t index;
|
||||||
switch_rtp_crypto_key_type_t type;
|
switch_rtp_crypto_key_type_t type;
|
||||||
|
|
|
@ -3853,7 +3853,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_crypto_key(switch_rtp_t *rtp_sess
|
||||||
srtp_master_key_t *mki = NULL;
|
srtp_master_key_t *mki = NULL;
|
||||||
int mki_idx = 0;
|
int mki_idx = 0;
|
||||||
|
|
||||||
keysalt_len = SUITES[ssec->crypto_type].keysalt_len;
|
keysalt_len = switch_core_media_crypto_keysalt_len(ssec->crypto_type);
|
||||||
|
|
||||||
if (direction >= SWITCH_RTP_CRYPTO_MAX || keysalt_len > SWITCH_RTP_MAX_CRYPTO_LEN) {
|
if (direction >= SWITCH_RTP_CRYPTO_MAX || keysalt_len > SWITCH_RTP_MAX_CRYPTO_LEN) {
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue