]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10853: remove extern that is no longer needed
authorMike Jerris <mike@jerris.com>
Tue, 27 Mar 2018 17:20:08 +0000 (12:20 -0500)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:42 +0000 (07:21 +0000)
src/include/switch_rtp.h
src/switch_rtp.c

index bed82a5b212de050e5826b76506c11361d38552c..41e863768397be8d952fd7f6a4590b5711d1a2db 100644 (file)
@@ -71,8 +71,6 @@ typedef struct switch_srtp_crypto_suite_s {
        int salt_len;
 } switch_srtp_crypto_suite_t;
 
-extern switch_srtp_crypto_suite_t SUITES[CRYPTO_INVALID];
-
 struct switch_rtp_crypto_key {
        uint32_t index;
        switch_rtp_crypto_key_type_t type;
index 74e147c8c2ccaa670c12c35b5719fd937384623b..a45a0a66c52fd938a9357bf64a6db02931a15a26 100644 (file)
@@ -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;
        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) {
                return SWITCH_STATUS_FALSE;