diff options
author | Pascal Bühler <pabuhler@cisco.com> | 2019-06-05 11:20:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 11:20:39 +0200 |
commit | 1090fea62e2ef912ebf68a53797e34de037f686c (patch) | |
tree | bd7b6ef69ab0690c17fd8ac03f9879fec5ea0f9a | |
parent | 2b270e49881633a16095d94d80b8df97647bbeb8 (diff) | |
parent | 4d8057891dca6b7979eddc774c541c085a34b476 (diff) | |
download | libsrtp2-1090fea62e2ef912ebf68a53797e34de037f686c.tar.gz |
Merge pull request #447 from pabuhler/rtp_decoder_check_tag_size
rtp_decoder fix checking against tag size
-rw-r--r-- | test/rtp_decoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rtp_decoder.c b/test/rtp_decoder.c index 3b017b9..172d7c5 100644 --- a/test/rtp_decoder.c +++ b/test/rtp_decoder.c @@ -369,7 +369,7 @@ int main(int argc, char *argv[]) } else { switch (scs.key_size) { case 128: - if (scs.key_size == 4) { + if (scs.tag_size == 4) { srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32( &policy.rtp); srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80( @@ -383,7 +383,7 @@ int main(int argc, char *argv[]) break; case 192: #ifdef OPENSSL - if (scs.key_size == 4) { + if (scs.tag_size == 4) { srtp_crypto_policy_set_aes_cm_192_hmac_sha1_32( &policy.rtp); srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80( @@ -403,7 +403,7 @@ int main(int argc, char *argv[]) #endif break; case 256: - if (scs.key_size == 4) { + if (scs.tag_size == 4) { srtp_crypto_policy_set_aes_cm_256_hmac_sha1_32( &policy.rtp); srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80( |