Provide framework for auto initialise/deinitialise of the library
authorMatt Caswell <matt@openssl.org>
Tue, 9 Feb 2016 11:26:14 +0000 (11:26 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 9 Feb 2016 15:11:38 +0000 (15:11 +0000)
commitb184e3ef73200cb3b7914a603b43a5b8a074c85f
tree95533e5aa6e9a0ae6e17605fc76441324cdc8ee9
parentbc66265da8f4c8830cfaf229c985bc391075aa9d
Provide framework for auto initialise/deinitialise of the library

This commit provides the basis and core code for an auto initialisation
and deinitialisation framework for libcrypto and libssl. The intention is
to remove the need (in many circumstances) to call explicit initialise and
deinitialise functions. Explicit initialisation will still be an option,
and if non-default initialisation is needed then it will be required.
Similarly for de-initialisation (although this will be a lot easier since
it will bring all de-initialisation into a single function).

Reviewed-by: Richard Levitte <levitte@openssl.org>
Configure
crypto/Makefile.in
crypto/include/internal/cryptlib_int.h [new file with mode: 0644]
crypto/init.c [new file with mode: 0644]
include/openssl/crypto.h
include/openssl/ssl.h
ssl/Makefile.in
ssl/ssl_init.c [new file with mode: 0644]
util/libeay.num
util/mk1mf.pl
util/ssleay.num