From 10c8d03e4433c466d0ab6e19b629d7ec7dcde3be Mon Sep 17 00:00:00 2001 From: Johan Pascal Date: Tue, 29 Sep 2015 13:28:08 +0200 Subject: [PATCH] Fix SRTP key length error in SDES mode --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 456c33d60..dd4f5917a 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -445,7 +445,7 @@ static int setup_encryption_key(SalSrtpCryptoAlgo *crypto, MSCryptoSuite suite, case MS_CRYPTO_SUITE_INVALID: break; } - if (keylen==0 || !generate_b64_crypto_key(30, crypto->master_key, SAL_SRTP_KEY_SIZE)){ + if (keylen==0 || !generate_b64_crypto_key(keylen, crypto->master_key, SAL_SRTP_KEY_SIZE)){ ms_error("Could not generate SRTP key."); crypto->algo = 0; return -1;