From: Arne Schwabe <[email protected]> Commit 5978a46e3 (master)/3402f9aa0 (release/2.7) removed the local prototype/function get_random in test_misc and use the global prototype in crypto.h.
This made get_random return uint64_t instead of uint32_t. Adjust the calls in test_list accordingly. On master the general hash rewrite/cleanup completely removes the iv argument from hash_init and therefore only 2.7 requires this patch. Change-Id: I1a6a0ca8beba3214b21047755246ceeb30141c2a Signed-off-by: Arne Schwabe <[email protected]> Acked-by: Gert Doering <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1839 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.7. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1839 This mail reflects revision 1 of this Change. Signed-off-by line for the author was added as per our policy. Acked-by according to Gerrit (reflected above): Gert Doering <[email protected]> diff --git a/tests/unit_tests/openvpn/test_misc.c b/tests/unit_tests/openvpn/test_misc.c index b9e2db0..a9c3845 100644 --- a/tests/unit_tests/openvpn/test_misc.c +++ b/tests/unit_tests/openvpn/test_misc.c @@ -170,8 +170,8 @@ */ struct gc_arena gc = gc_new(); - struct hash *hash = hash_init(10000, get_random(), word_hash_function, word_compare_function); - struct hash *nhash = hash_init(256, get_random(), word_hash_function, word_compare_function); + struct hash *hash = hash_init(10000, (uint32_t)get_random(), word_hash_function, word_compare_function); + struct hash *nhash = hash_init(256, (uint32_t)get_random(), word_hash_function, word_compare_function); printf("hash_init n_buckets=%u mask=0x%08x\n", hash->n_buckets, hash->mask); _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
