Add conditional unit testing interface.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 23 Jul 2014 12:18:06 +0000 (13:18 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 24 Jul 2014 18:42:26 +0000 (19:42 +0100)
commit789b12599d2e9ad3f93ef54f4bacf296d82a8325
tree44ddf66e92cfb8afd15ae18ef54e337d67301c98
parent371d9a627b911feb569d4bca7ffef5b1b4778e20
Add conditional unit testing interface.

Don't call internal functions directly call them through
SSL_test_functions(). This also makes unit testing work on
Windows and platforms that don't export internal functions
from shared libraries.

By default unit testing is not enabled: it requires the compile
time option "enable-unit-test".
Reviewed-by: Geoff Thorpe <geoff@openssl.org>
(cherry picked from commit e0fc7961c4fbd27577fb519d9aea2dc788742715)

Conflicts:

ssl/heartbeat_test.c
ssl/ssl.h
util/mkdef.pl
Configure
ssl/Makefile
ssl/heartbeat_test.c
ssl/ssl.h
ssl/ssl_locl.h
ssl/ssl_utst.c [new file with mode: 0644]
util/mk1mf.pl
util/mkdef.pl
util/ssleay.num