aboutsummaryrefslogtreecommitdiff
path: root/crypto/lhash
AgeCommit message (Collapse)AuthorFilesLines
2007-01-21Constify version strings and some structures.Dr. Stephen Henson1-1/+1
2006-07-09New functions to enumerate digests and ciphers.Dr. Stephen Henson1-0/+3
2006-02-04Update filenames in makefiles.Dr. Stephen Henson1-1/+1
2005-05-16Further BUILDENV refinement, further fool-proofing of Makefiles andAndy Polyakov1-4/+13
[most importantly] put back dependencies accidentaly eliminated in check-in #13342.
2005-05-16make updateBodo Möller1-12/+2
2005-05-15Fool-proofing MakefilesAndy Polyakov1-4/+1
2005-04-11Add emacs cache files to .cvsignore.Richard Levitte1-0/+2
2005-04-05some const fixes and cleanupNils Larsch1-7/+7
2005-03-31Give everything prototypes (well, everything that's actually used).Ben Laurie1-1/+1
2005-03-30Blow away Makefile.ssl.Ben Laurie1-4/+3
2004-11-02Don't use $(EXHEADER) directly in for loops, as most shells will breakRichard Levitte1-1/+1
if $(EXHEADER) is empty. Notified by many, solution suggested by Carson Gaspar <carson@taltos.org>
2004-05-17After the latest round of header-hacking, regenerate the dependencies inGeoff Thorpe1-2/+2
the Makefiles. NB: this commit is probably going to generate a huge posting and it is highly uninteresting to read.
2004-04-19make updateGeoff Thorpe1-3/+3
2003-12-27Use sh explicitely to run point.shRichard Levitte1-1/+1
This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
2003-10-29Relax some over-zealous constification that gave some lhash-based code noGeoff Thorpe2-9/+9
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.
2003-03-20Make sure we get the definition of OPENSSL_NO_FP_API.Richard Levitte1-0/+1
2002-11-13Security fixes brought forward from 0.9.7.Ben Laurie1-56/+30
2002-10-09Use double dashes so makedepend doesn't misunderstand the flags weRichard Levitte1-1/+1
give it. For 0.9.7 and up, that means util/domd needs to remove those double dashes from the argument list when gcc is used to find the dependencies.
2002-06-27Pass CFLAG to dependency makers, so non-standard system include paths areRichard Levitte1-1/+1
handled properly. Part of PR 75
2002-03-21Remove superflous (and buggy) statement <justin.fletcher@ntlworld.com>.Lutz Jänicke1-1/+0
2002-03-05disable '#ifdef DEBUG' codeBodo Möller1-2/+2
2001-07-31make updateRichard Levitte1-2/+2
2001-07-30Really add the EVP and all of the DES changes.Ben Laurie1-2/+2
2001-07-08Correct const-ness.Ben Laurie2-6/+6
2001-03-09Instead of telling both 'make' and the user that ranlibBodo Möller1-2/+1
errors can be tolerated, hide the error from 'make'. This gives shorter output both if ranlib fails and if it works.
2001-02-22e_os.h does not belong with the exported headers. Do not put it thereRichard Levitte1-2/+2
and make all files the depend on it include it without prefixing it with openssl/. This means that all Makefiles will have $(TOP) as one of the include directories.
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 Levitte4-15/+17
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-09oops, void functions shouldn't try and return a value. Strangely, gccGeoff Thorpe1-2/+2
didn't even give a warning for this yet HPUX cc considered it an error. Reported by Lutz(@openssl.org).
2001-01-09This adds macros to implement (and/or declare) type-safe wrapper functionsGeoff Thorpe2-14/+35
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-20Don't access non-existing element buf[256], use buf[255] instead.Bodo Möller1-1/+1
Submitted by: draslar <draslar@elray.ch>
2000-12-13Constification of the data of a hash table. This means the callbackRichard Levitte2-25/+25
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-04ANSI C doesn't allow trailing semi-colons after a function's closing braceGeoff Thorpe1-6/+3
so these macros probably shouldn't be used like that at all. So, this change removes the misleading comment and also adds an implicit trailing semi-colon to the DECLARE macros so they too don't require one.
2000-12-02Next step in tidying up the LHASH code. This commit defines DECLARE andGeoff Thorpe1-0/+29
IMPLEMENT macros for defining wrapper functions for "hash" and "cmp" callbacks that are specific to the underlying item type in a hash-table. This prevents function pointer casting altogether, and also provides some type-safety because the macro does per-variable casting from the (void *) type used in LHASH itself to the type declared in the macro - and if that doesn't match the prototype expected by the "hash" or "cmp" function then a compiler error will result. NB: IMPLEMENT macros are not required unless predeclared forms are required (either in a header file, or further up in a C file than the implementation needs to be). The DECLARE macros must occur after the type-specific hash/cmp callbacks are declared. Also, the IMPLEMENT and DECLARE macros are such that they can be prefixed with "static" if desired and a trailing semi-colon should be appended (making it look more like a regular declaration and easier on auto-formatting text-editors too). Now that these macros are defined, I will next be commiting changes to a number of places in the library where the casting was doing bad things. After that, the final step will be to make the analogous changes for the lh_doall and lh_doall_arg functions (more specifically, their callback parameters).
2000-12-01First step in tidying up the LHASH code. The callback prototypes (andGeoff Thorpe2-13/+25
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 Levitte3-14/+14
I didn't apply all his patches yet, since I have some hesitance about unconstifying. To be pondered.
2000-09-25'ranlib' doesn't always run on some systems. That's actuallyRichard Levitte1-1/+2
acceptable, since all that happens if it fails is a library with an index, which makes linking slower, but still working correctly.
2000-09-07'make update'Richard Levitte1-1/+3
2000-06-13Enable DSO support on alpha (OSF1), cc and gcc.Geoff Thorpe1-3/+3
Also, "make update" has added some missing functions to libeay.num, updated the TABLE for the alpha changes, and updated thousands of dependancies that have changed from recent commits.
2000-06-09Using checks of the existence of HEADER_{foo}_H in other header filesRichard Levitte2-2/+9
was a really bad idea. For example, the following: #include <x509.h> #include <bio.h> #include <asn1.h> would make sure that things like ASN1_UTCTIME_print() wasn't defined unless you moved the inclusion of bio.h to above the inclusion of x509.h. The reason is that x509.h includes asn1.h, and the declaration of ASN1_UTCTIME_print() depended on the definition of HEADER_BIO_H. That's what I call an obscure bug. Instead, this change makes sure that whatever header files are needed for the correct process of one header file are included automagically, and that the definitions of, for example, BIO-related things are dependent on the absence of the NO_{foo} macros. This is also consistent with the way parts of OpenSSL can be excluded at will.
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte2-11/+11
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-05-02In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>,Richard Levitte1-4/+4
"Jan Mikkelsen" <janm@transactionsite.com> correctly states that the OpenSSL header files have #include's and extern "C"'s in an incorrect order. Thusly fixed.
2000-03-18Eliminate memory leaks in mem_dbg.c.Bodo Möller2-15/+5
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öller2-23/+19
eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
2000-01-23Tidy up CRYPTO_EX_DATA structures.Dr. Stephen Henson1-3/+4
1999-05-21It was a very bad idea to use #include "../e_os.h" -- when this occursBodo Möller1-2/+3
in cryptlib.h (which is often included as "../cryptlib.h"), then the question remains relative to which directory this is to be interpreted. gcc went one further directory up, as intended; but makedepend thinks differently, and so probably do some C compilers. So the ../ must go away; thus e_os.h goes back into include/openssl (but I now use #include "openssl/e_os.h" instead of <openssl/e_os.h> to make the point) -- and we have another huge bunch of dependency changes. Argh.
1999-05-20Add a kludge :-(Bodo Möller1-3/+2
There were problems with putting e_os.h just into the top directory, because the test programs are compiled within test/ in the "standard" case in in their original directories in the makefile.one case; and in the latter symlinks may not be available.