openssl/util
Richard Levitte 62dc5aad06 Introduce the possibility to access global variables through
functions on platform were that's the best way to handle exporting
global variables in shared libraries.  To enable this functionality,
one must configure with "EXPORT_VAR_AS_FN" or defined the C macro
"OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter
is normally done by Configure or something similar).

To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL
in the source file (foo.c) like this:

	OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1;
	OPENSSL_IMPLEMENT_GLOBAL(double,bar);

To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL
and OPENSSL_GLOBAL_REF in the header file (foo.h) like this:

	OPENSSL_DECLARE_GLOBAL(int,foo);
	#define foo OPENSSL_GLOBAL_REF(foo)
	OPENSSL_DECLARE_GLOBAL(double,bar);
	#define bar OPENSSL_GLOBAL_REF(bar)

The #defines are very important, and therefore so is including the
header file everywere where the defined globals are used.

The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition
of ASN.1 items, but that structure is a bt different.

The largest change is in util/mkdef.pl which has been enhanced with
better and easier to understand logic to choose which symbols should
go into the Windows .def files as well as a number of fixes and code
cleanup (among others, algorithm keywords are now sorted
lexicographically to avoid constant rewrites).
2001-03-02 10:38:19 +00:00
..
pl Make all configuration macros available for application by making 2001-02-19 16:06:34 +00:00
add_cr.pl Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
bat.sh Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
ck_errf.pl Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
clean-depend.pl Make it possible to use gcc to generate the dependency tables. 2001-02-16 13:55:05 +00:00
deleof.pl Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
do_ms.sh More consistency. 1999-05-31 21:58:18 +00:00
domd Remove temporary files when done. 2001-02-19 15:23:37 +00:00
err-ins.pl Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
files.pl Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
fixNT.sh Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
FreeBSD.sh Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
install.sh Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
libeay.num Introduce the possibility to access global variables through 2001-03-02 10:38:19 +00:00
mk1mf.pl Make all configuration macros available for application by making 2001-02-19 16:06:34 +00:00
mkcerts.sh Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
mkdef.pl Introduce the possibility to access global variables through 2001-03-02 10:38:19 +00:00
mkdir-p.pl Don't make assumptions on what the path looks like. 1999-06-08 10:17:55 +00:00
mkerr.pl I had forgotten to change mkerr.pl to use the new macro system. 2001-02-21 12:03:20 +00:00
mkfiles.pl Add Rijndael as things to look through. 2000-11-14 10:51:00 +00:00
mklink.pl Report "error" (usually just "File exists", which is harmless) 2000-06-14 10:09:46 +00:00
mkstack.pl Remove references to RSAref. The glue library is but a memory to fade 2000-11-08 17:51:37 +00:00
perlpath.pl Be less restrictive and allow also `perl util/perlpath.pl /path/to/bin/perl' 1999-03-10 19:57:05 +00:00
pod2man.pl Since pod2man is still evolving, and some sites (among others dev.openssl.org) 2000-01-27 20:23:29 +00:00
point.sh General source tree makefile cleanups: Made `making xxx in yyy...' display 1999-03-06 12:32:06 +00:00
selftest.pl run self-test with no-krb5 2001-02-27 21:05:55 +00:00
sp-diff.pl MD4 implemented. Assar Westerlund provided the digest code itself and the test utility, I added the bits to get a EVP interface, the command line utility and the speed test 2000-08-14 14:05:53 +00:00
speed.sh Import of old SSLeay release: SSLeay 0.9.0b 1998-12-21 10:56:39 +00:00
src-dep.pl Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
ssleay.num Introduce the possibility to access global variables through 2001-03-02 10:38:19 +00:00
tab_num.pl Import of old SSLeay release: SSLeay 0.8.1b 1998-12-21 10:52:47 +00:00
x86asm.sh Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00