freeswitch/src
Piotr Gregor 6cd17fd556 FS-11052: Allow alias for crypto suites
For outgoing calls send AES crypto in offer using corrected names
for keys of length 192 and 256, i.e. names containing _192_CM_
and _256_CM_ instead of _CM_192_ and CM_256_. For incoming calls
accept both naming conventions, decaying to same entry in SUITES.

+ fix after SRTP failed for 256 keys:

Tests showed loop removing '=' from keys in switch_core_media_build_crypto

 1190     if (!switch_channel_var_true(channel, "rtp_pad_srtp_keys")) {
 1191         p = strrchr((char *) b64_key, '=');
 1192
 1193         while (p && *p && *p == '=') {
 1194             *p-- = '\0';
 1195         }
 1196     }

shouldn't be executed for AES_CM_256_HMAC_SHA1_32 and AES_CM_256_HMAC_SHA1_80
keys and it is meaningless for AES_CM_128_HMAC_SHA1_32 AES_CM_128_HMAC_SHA1_80
keys. Tested calling from Bria.

Introduced switch_channel_var_false and changed this to:
	if (switch_channel_var_false(channel, "rtp_pad_srtp_keys"))
to enter the loop if var is set to false (and not if it is _not_ set).
2018-08-13 20:57:50 +00:00
..
include FS-11052: Allow alias for crypto suites 2018-08-13 20:57:50 +00:00
mod FS-11321: [mod_conference] Don't set avatar when its not allowed anyway #resolve 2018-08-13 19:01:14 +00:00
.gitignore
CMakeLists.txt
Makefile.am
cJSON.c FS-10036: fix windows build issues. These patches need to go upstream 2017-03-15 16:13:40 -05:00
cJSON_Utils.c FS-10036: update cJSON code to pre 1.4.0 release of cJSON. this includes backports of all our fixes, and our build macros for windows and visibility. It also makes it easy to drop in a new version, and to in the future be able to switch to a system version of cJSON easily (after all these updates are in, probably around v2.0 timeframe. Note this new version adds a lot of extra error checking, fixes some buffer overruns, and improves parser and printer performance 2017-02-27 18:53:23 -06:00
fs_encode.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
g711.c
inet_pton.c
switch.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_apr.c FS-10876: [Build-System] Fix build in Visual Studio 2017 and Windows SDK 10. 2018-01-10 23:30:24 +03:00
switch_buffer.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_caller.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_channel.c FS-10387: [core] High memory usage with mod_sofia, osmo-nitb and DTX setting active #resolve 2017-06-22 15:48:20 -05:00
switch_config.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_console.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core.c FS-10189: [core] switch_core_add_state_handler runtime.state_handler_index may exceed SWITCH_MAX_STATE_HANDLERS #resolve 2017-06-05 18:31:56 -05:00
switch_core_asr.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_cert.c FS-9785: changes to support newer openssl 2017-06-26 14:53:39 -05:00
switch_core_codec.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_db.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_directory.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_event_hook.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_file.c Merge pull request #1564 in FS/freeswitch from fs-11310-switch-core-file-pre-close to master 2018-08-09 06:53:04 +00:00
switch_core_hash.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_io.c FS-11230: [core] Fix bad rtp timestamps triggered by cng/missed packet detection 2018-07-13 15:18:35 -04:00
switch_core_media.c FS-11052: Allow alias for crypto suites 2018-08-13 20:57:50 +00:00
switch_core_media_bug.c FS-10388: [core] fix crash on shutdown when using multiple meida bugs 2017-07-05 15:54:56 -05:00
switch_core_memory.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_port_allocator.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_rwlock.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_session.c FS-10867: [freeswitch-core] Prevent stack smash when queing multiple sound files without event-lock #resolve 2018-07-24 07:21:38 +00:00
switch_core_speech.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_sqldb.c FS-11202 Add sanity check 2018-07-24 07:21:54 +00:00
switch_core_state_machine.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_timer.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_core_video.c FS-11226: [freeswitch-core,mod_conference] Missing font files can lead to crash in conference #resolve 2018-07-24 07:21:56 +00:00
switch_cpp.cpp FS-11265 #resolve add detectSpeech and playAndDetectSpeech 2018-08-13 18:59:53 +00:00
switch_curl.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_dso.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_estimators.c FS-10876: [Build-System] Fix build in Visual Studio 2017 and Windows SDK 10. 2018-01-10 23:30:24 +03:00
switch_event.c FS-10989: [core] Fix CUSTOM_HASH hash table race in switch_event logic causing crashes during bind to events. 2018-07-24 07:21:42 +00:00
switch_hashtable.c FS-10601: [freeswitch-core] accomodate should be accommodate #resolve 2017-08-21 17:09:24 -05:00
switch_ivr.c FS-10867: [freeswitch-core] fix regression in stack smash protection 2018-07-24 07:21:50 +00:00
switch_ivr_async.c FS-11320 #resolve pass json string as param to ASR module 2018-08-13 19:00:39 +00:00
switch_ivr_bridge.c FS-11178: [core] return switch_status_t from switch_ivr_intercept_session 2018-07-24 07:21:53 +00:00
switch_ivr_menu.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_ivr_originate.c FS-10896: [freeswitch-core] Parse error on originate syntax with nested square brackets #resolve 2018-07-24 07:21:39 +00:00
switch_ivr_play_say.c FS-11237 #resolve speak text with colon 2018-07-24 07:21:58 +00:00
switch_ivr_say.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_jitterbuffer.c FS-11164: [freeswitch-core] Improve audio JB in bad conditions 2018-07-24 07:21:53 +00:00
switch_json.c FS-10036: update cJSON code to pre 1.4.0 release of cJSON. this includes backports of all our fixes, and our build macros for windows and visibility. It also makes it easy to drop in a new version, and to in the future be able to switch to a system version of cJSON easily (after all these updates are in, probably around v2.0 timeframe. Note this new version adds a lot of extra error checking, fixes some buffer overruns, and improves parser and printer performance 2017-02-27 18:53:23 -06:00
switch_limit.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_loadable_module.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_log.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_mprintf.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_msrp.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_nat.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_odbc.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_pcm.c FS-10529: [mod_native_file] mod_native_file: remove "opus" extension -- fix regression 2017-08-17 16:08:40 -05:00
switch_pgsql.c FS-11074: [Core, Build-System] Add PostgreSQL to the Freeswitch Core on Windows. 2018-07-24 07:21:43 +00:00
switch_profile.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_regex.c FS-11061: [core] fix build with newer pcre 2018-03-29 11:18:20 -04:00
switch_resample.c FS-9922: [mod_conference] Auto Energy Level 2017-05-03 15:25:04 -05:00
switch_rtp.c FS-11052: Allow alias for crypto suites 2018-08-13 20:57:50 +00:00
switch_scheduler.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_sdp.c
switch_speex.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_stun.c FS-10394: [freeswitch-core] FS Crash while linphone sends ICE packets 2017-06-28 11:32:24 -05:00
switch_swig.c FS-10608: Change 60 second timeout value to a global #define SWITCH_DEFAULT_TIMEOUT 2017-08-29 13:54:34 -04:00
switch_swig.i
switch_time.c FS-10126: [freeswitch-core] General Video Improvements #resolve 2017-03-15 15:24:01 -05:00
switch_utf8.c
switch_utils.c FS-11183 improve strip to save out buffer size 2018-07-24 07:21:56 +00:00
switch_vad.c FS-11014 fix fvad_free and validate vad_mode 2018-07-24 07:21:58 +00:00
switch_version.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
switch_vpx.c FS-11189 make rtp-slice-size and key-frame-min-freq configurable 2018-07-24 07:21:57 +00:00
switch_xml.c FS-10946: [core] Duplicate code in switch_xml.c #resolve 2018-07-24 07:21:48 +00:00
switch_xml_config.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00
tone2wav.c FS-9924: Removed extra space in source files 2017-02-09 23:59:49 -05:00