mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 15:45:06 -05:00
test: fix hash unit test for NSS
Some hash functions in the freebl3 library ignore the length of the output buffer and always return the length of the digest.
This commit is contained in:
@@ -106,7 +106,7 @@ test_unit(void)
|
||||
if (j >= tests[i].length)
|
||||
TEST_CHECK(length == tests[i].length);
|
||||
else
|
||||
TEST_CHECK(length == 0 || length == j);
|
||||
TEST_CHECK(length == 0 || length == j || length == tests[i].length);
|
||||
|
||||
TEST_CHECK(!memcmp(out, tests[i].out, length));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user