diff options
Diffstat (limited to 'tests/unit_tests/openvpn/test_crypto.c')
-rw-r--r-- | tests/unit_tests/openvpn/test_crypto.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_tests/openvpn/test_crypto.c b/tests/unit_tests/openvpn/test_crypto.c index 6d4cea1..5669948 100644 --- a/tests/unit_tests/openvpn/test_crypto.c +++ b/tests/unit_tests/openvpn/test_crypto.c @@ -388,7 +388,7 @@ test_mssfix_mtu_calculation(void **state) init_key_type(&kt, o.ciphername, o.authname, false, false); /* No encryption, just packet id (8) + TCP payload(20) + IP payload(20) */ - frame_calculate_mssfix(&f, &kt, &o); + frame_calculate_mssfix(&f, &kt, &o, NULL); assert_int_equal(f.mss_fix, 952); /* Static key OCC examples */ @@ -398,7 +398,7 @@ test_mssfix_mtu_calculation(void **state) o.ciphername = "none"; o.authname = "none"; init_key_type(&kt, o.ciphername, o.authname, false, false); - frame_calculate_mssfix(&f, &kt, &o); + frame_calculate_mssfix(&f, &kt, &o, NULL); assert_int_equal(f.mss_fix, 952); /* secret, cipher AES-128-CBC, auth none */ @@ -412,7 +412,7 @@ test_mssfix_mtu_calculation(void **state) * all result in the same CBC block size/padding and <= 991 and >=1008 * should be one block less and more respectively */ o.ce.mssfix = i; - frame_calculate_mssfix(&f, &kt, &o); + frame_calculate_mssfix(&f, &kt, &o, NULL); if (i <= 991) { assert_int_equal(f.mss_fix, 911); @@ -440,7 +440,7 @@ test_mssfix_mtu_calculation(void **state) /* For stream ciphers, the value should not be influenced by block * sizes or similar but always have the same difference */ o.ce.mssfix = i; - frame_calculate_mssfix(&f, &kt, &o); + frame_calculate_mssfix(&f, &kt, &o, NULL); /* 4 byte opcode/peerid, 4 byte pkt ID, 16 byte tag, 40 TCP+IP */ assert_int_equal(f.mss_fix, i - 4 - 4 - 16 - 40); |