openssl/crypto
Geoff Thorpe dfa46e502d Next step in tidying up the LHASH code. This commit defines DECLARE and
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-02 23:08:59 +00:00
..
asn1 Make sure bs is assigned NULL when it's free'd, or there will be an 2000-11-19 14:14:52 +00:00
bf 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
bio in some new file names the first 8 characters were not unique 2000-11-12 22:32:18 +00:00
bn Add a comment to explain the purpose of bn_cmp_part_words(). 2000-12-02 21:16:13 +00:00
buffer 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
cast 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
comp COMP_zlib should always be declared, even if it is not functional. 2000-11-30 23:41:58 +00:00
conf First step in tidying up the LHASH code. The callback prototypes (and 2000-12-01 20:31:52 +00:00
des 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
dh Do to DH and DSA what has already been done to RSA. This involves moving 2000-11-29 19:59:45 +00:00
dsa Do to DH and DSA what has already been done to RSA. This involves moving 2000-11-29 19:59:45 +00:00
dso shl_load() also needs to load along a path given through an 2000-11-07 11:25:26 +00:00
ec Changes to Lenka's Montgomery implementation. 2000-11-30 17:35:17 +00:00
engine I have no idea how this comment got there, but it's certainly not 2000-11-16 00:17:11 +00:00
err First step in tidying up the LHASH code. The callback prototypes (and 2000-12-01 20:31:52 +00:00
evp First tentative impementation of Kerberos 5 cryptos and keys for SSL/TLS. Implemented by Vern Staats <staatsvr@asc.hpc.mil>, further hacked and distributed by Jeffrey Altman <jaltnab@columbia.edu> 2000-11-30 22:53:34 +00:00
hmac in some new file names the first 8 characters were not unique 2000-11-12 22:32:18 +00:00
idea 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
lhash Next step in tidying up the LHASH code. This commit defines DECLARE and 2000-12-02 23:08:59 +00:00
md2 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
md4 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
md5 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
mdc2 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
objects First step in tidying up the LHASH code. The callback prototypes (and 2000-12-01 20:31:52 +00:00
ocsp ignore 2000-11-14 19:18:31 +00:00
pem in some new file names the first 8 characters were not unique 2000-11-12 22:32:18 +00:00
perlasm Move the 'file scope' argument in set_label to 2000-03-03 00:06:40 +00:00
pkcs7 in some new file names the first 8 characters were not unique 2000-11-12 22:32:18 +00:00
pkcs12 in some new file names the first 8 characters were not unique 2000-11-12 22:32:18 +00:00
rand fix for Borland C 2000-11-29 16:43:50 +00:00
rc2 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
rc4 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
rc5 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
rijndael ignore 2000-11-14 19:18:31 +00:00
ripemd 'ranlib' doesn't always run on some systems. That's actually 2000-09-25 08:53:15 +00:00
rsa Ensure that the "ex_data" member of an RSA structure is initialised before 2000-11-26 18:34:45 +00:00
sha Fix for bug (?) in assembly language routines for SHA1. This 2000-10-20 00:36:45 +00:00
stack The majority of the OCSP code from CertCo. 2000-10-27 11:05:35 +00:00
threads There have been a number of complaints from a number of sources that names 2000-06-01 22:19:21 +00:00
txt_db First step in tidying up the LHASH code. The callback prototypes (and 2000-12-01 20:31:52 +00:00
x509 in some new file names the first 8 characters were not unique 2000-11-12 22:32:18 +00:00
x509v3 in some new file names the first 8 characters were not unique 2000-11-12 22:32:18 +00:00
.cvsignore Always use buildinf.h, which now includes the mk1mfinf.h data. 1999-07-29 12:57:23 +00:00
cpt_err.c Add support for dynamically created and destroyed mutexes. This will 2000-06-18 15:59:04 +00:00
cryptlib.c Merge the engine branch into the main trunk. All conflicts resolved. 2000-10-26 21:07:28 +00:00
cryptlib.h In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>, 2000-05-02 12:35:04 +00:00
crypto-lib.com BN_mod_sqrt 2000-11-30 00:20:20 +00:00
crypto.h Constification of CRYPTO_get_ex_data() needed for the sake of 2000-11-06 23:24:59 +00:00
cversion.c Always use buildinf.h, which now includes the mk1mfinf.h data. 1999-07-29 12:57:23 +00:00
ebcdic.c Add new -notext option to 'ca', -pubkey option to spkac. 2000-02-03 02:56:48 +00:00
ebcdic.h EBCDIC support. 2000-02-01 02:21:16 +00:00
ex_data.c Constification of CRYPTO_get_ex_data() needed for the sake of 2000-11-06 23:24:59 +00:00
install.com Addapt the VMS scripts to the changes in the Makefiles. 2000-11-22 04:54:06 +00:00
Makefile.ssl Merge the engine branch into the main trunk. All conflicts resolved. 2000-10-26 21:07:28 +00:00
md32_common.h _lrotl() is a call to the C runtime library! 2000-10-30 20:14:27 +00:00
mem.c There have been a number of complaints from a number of sources that names 2000-06-01 22:19:21 +00:00
mem_dbg.c First step in tidying up the LHASH code. The callback prototypes (and 2000-12-01 20:31:52 +00:00
opensslconf.h.in Cosmetic change. No, openssl.h.in is not autogenerated :-) 2000-02-18 09:06:55 +00:00
opensslv.h Bump the shared library version (should have been done a while ago). 2000-10-13 15:09:06 +00:00
symhacks.h A couple of more names need to be shortened for VMS on VAX. 2000-09-17 14:44:35 +00:00
tmdiff.c There have been a number of complaints from a number of sources that names 2000-06-01 22:19:21 +00:00
tmdiff.h Remove NOPROTO definitions and error code comments. 1999-04-26 16:43:10 +00:00