aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Bühler <pabuhler@cisco.com>2019-06-05 11:20:39 +0200
committerGitHub <noreply@github.com>2019-06-05 11:20:39 +0200
commit1090fea62e2ef912ebf68a53797e34de037f686c (patch)
treebd7b6ef69ab0690c17fd8ac03f9879fec5ea0f9a
parent2b270e49881633a16095d94d80b8df97647bbeb8 (diff)
parent4d8057891dca6b7979eddc774c541c085a34b476 (diff)
downloadlibsrtp2-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.c6
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(