From d76e017b6e528ac627bf83a7c4755daf0d5db360 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 10 Jun 2015 08:24:33 -0500 Subject: [PATCH] FS-7573 #resolve second part missing for 80bit support --- libs/libzrtp/src/zrtp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/libzrtp/src/zrtp.c b/libs/libzrtp/src/zrtp.c index 773e585c41..e8b7df0b78 100644 --- a/libs/libzrtp/src/zrtp.c +++ b/libs/libzrtp/src/zrtp.c @@ -800,7 +800,6 @@ void zrtp_profile_defaults(zrtp_profile_t* profile, zrtp_global_t* zrtp) profile->cipher_types[0] = ZRTP_CIPHER_AES256; profile->cipher_types[1] = ZRTP_CIPHER_AES128; profile->auth_tag_lens[0] = ZRTP_ATL_HS32; - profile->auth_tag_lens[1] = ZRTP_ATL_HS80; profile->hash_schemes[0] = ZRTP_HASH_SHA256; if (zrtp && (ZRTP_LICENSE_MODE_PASSIVE == zrtp->lic_mode)) { @@ -856,7 +855,12 @@ zrtp_status_t zrtp_profile_check(const zrtp_profile_t* profile, zrtp_global_t* z ZRTP_LOG(1, (_ZTU_,"WARNING! can't find '32 ' in profile.\n")); return zrtp_status_fail; } - + + if (0 > zrtp_profile_find(profile, ZRTP_CC_ATL, ZRTP_ATL_HS80)) { + ZRTP_LOG(1, (_ZTU_,"WARNING! can't find '80 ' in profile.\n")); + return zrtp_status_fail; + } + /* * Check that each component in the profile is in the global set of components. */