This adds macros to implement (and/or declare) type-safe wrapper functions
authorGeoff Thorpe <geoff@openssl.org>
Tue, 9 Jan 2001 00:02:09 +0000 (00:02 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Tue, 9 Jan 2001 00:02:09 +0000 (00:02 +0000)
commit18602745de52e5869f3865245c3c72986831dae2
treeca4bb29660efd441b1d3498ec670d1fe9191a5a3
parentad2e032049d8e9460372e273eddb192c300b46dc
This adds macros to implement (and/or declare) type-safe wrapper functions
around the callbacks required in the LHASH code for the "doall" functions.

Also - fix the evil function pointer casting in the two lh_doall functions
by deferring to a static utility function. Previously lh_doall() was
invoking lh_doall_arg() by casting the callback to the 2-parameter
prototype and passing in a NULL argument. This appears to have been working
thus far but it's not a hot idea. If the extra level of indirection becomes
a performance hit, we can just provide two virtually identical
implementations for each variant later on.
crypto/lhash/lhash.c
crypto/lhash/lhash.h