aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArne Schwabe2021-12-01 19:07:24 +0100
committerGert Doering2021-12-06 10:20:00 +0100
commit459d9669d1b5ca110107306762625a4fb5650c58 (patch)
treea4cab7b630b684f42153dbb6059930e43005bea0 /tests
parent9cc7fdcf851f87cb4fd5f9f249f790565f7b8e33 (diff)
downloadopenvpn-459d9669d1b5ca110107306762625a4fb5650c58.zip
openvpn-459d9669d1b5ca110107306762625a4fb5650c58.tar.gz
Remove key_type->hmac_length
This field is only set once with md_kt_size and then only read. Remove this field and replace the read accesses with md_kt_size. Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20211201180727.2496903-6-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23274.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/openvpn/test_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/openvpn/test_crypto.c b/tests/unit_tests/openvpn/test_crypto.c
index d3ce2d6..42632c7 100644
--- a/tests/unit_tests/openvpn/test_crypto.c
+++ b/tests/unit_tests/openvpn/test_crypto.c
@@ -181,7 +181,7 @@ crypto_test_hmac(void **state)
uint8_t key[20];
memcpy(key, testkey, sizeof(key));
- hmac_ctx_init(hmac, key, 20, sha1);
+ hmac_ctx_init(hmac, key, sha1);
hmac_ctx_update(hmac, (const uint8_t *)ipsumlorem, (int) strlen(ipsumlorem));
hmac_ctx_update(hmac, (const uint8_t *)ipsumlorem, (int) strlen(ipsumlorem));