aboutsummaryrefslogtreecommitdiff
path: root/crypto/lhash/lhash.c
AgeCommit message (Collapse)AuthorFilesLines
2005-03-31Give everything prototypes (well, everything that's actually used).Ben Laurie1-1/+1
2003-10-29Relax some over-zealous constification that gave some lhash-based code noGeoff Thorpe1-1/+1
choice but to have to cast away "const" qualifiers from their prototypes. This does not remove constification restrictions from hash/compare callbacks, but allows destructor commands to be run over a tables' elements without bad casts.
2001-07-08Correct const-ness.Ben Laurie1-2/+2
2001-02-20Use 0 instead of NULL, at least for function casts, since there areRichard Levitte1-2/+2
variants of stdio.h that define NULL in such a way that it's "unsafe" to use for function pointer casting.
2001-02-19Make all configuration macros available for application by makingRichard Levitte1-3/+3
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2001-01-09This adds macros to implement (and/or declare) type-safe wrapper functionsGeoff Thorpe1-14/+16
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.
2000-12-13Constification of the data of a hash table. This means the callbackRichard Levitte1-12/+12
functions need to be constified, and therefore meant a number of easy changes a little everywhere. Now, if someone could explain to me why OBJ_dup() cheats...
2000-12-01First step in tidying up the LHASH code. The callback prototypes (andGeoff Thorpe1-8/+15
casts) used in the lhash code are about as horrible and evil as they can be. For starters, the callback prototypes contain empty parameter lists. Yuck. This first change defines clearer prototypes - including "typedef"'d function pointer types to use as "hash" and "compare" callbacks, as well as the callbacks passed to the lh_doall and lh_doall_arg iteration functions. Now at least more explicit (and clear) casting is required in all of the dependant code - and that should be included in this commit. The next step will be to hunt down and obliterate some of the function pointer casting being used when it's not necessary - a particularly evil variant exists in the implementation of lh_doall.
2000-11-07Constification of LHASH. Contributed by "Paul D. Smith" <psmith@gnu.org>Richard Levitte1-1/+1
I didn't apply all his patches yet, since I have some hesitance about unconstifying. To be pondered.
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte1-10/+10
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
2000-03-18Eliminate memory leaks in mem_dbg.c.Bodo Möller1-15/+4
2000-03-04Generate correct error reasons strings for SYSerr.Bodo Möller1-1/+1
2000-02-03ispell (and minor modifications)Ulf Möller1-2/+2
2000-01-30Seek out and destroy another evil cast.Ulf Möller1-4/+4
2000-01-30Source code cleanups: Use void * rather than char * in lhash,Ulf Möller1-16/+12
eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller1-11/+0
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1-2/+2
Submitted by: Reviewed by: PR:
1999-04-19Change functions to ANSI C.Ulf Möller1-31/+11
1999-04-17Massive constification.Ben Laurie1-2/+2
1999-03-22Fix security hole.Ben Laurie1-2/+2
1999-01-17Oops. Missing NULL frees.Ben Laurie1-0/+3
1998-12-31Fix version stuff:Ralf S. Engelschall1-1/+1
1. The already released version was 0.9.1c and not 0.9.1b 2. The next release should be 0.9.2 and not 0.9.1d, because first the changes are already too large, second we should avoid any more 0.9.1x confusions and third, the Apache version semantics of VERSION.REVISION.PATCHLEVEL for the version string is reasonable (and here .2 is already just a patchlevel and not major change). tVS: ----------------------------------------------------------------------
1998-12-23*** empty log message ***OpenSSL_0_9_1cRalf S. Engelschall1-1/+1
1998-12-23Switch version string to SSLeay/OpenSSLRalf S. Engelschall1-1/+1
1998-12-22Various cleanups and fixed by Marc and Ralf to start the OpenTLS projectRalf S. Engelschall1-1/+1
1998-12-21Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeayRalf S. Engelschall1-11/+26
1998-12-21Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1-2/+2
1998-12-21Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1-0/+489