mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 03:58:08 +00:00
Fix SRTP key length error in SDES mode
This commit is contained in:
parent
fcc39924ff
commit
10c8d03e44
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue