summaryrefslogtreecommitdiffstats
path: root/ssl/ssl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-07-23 13:18:06 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-07-24 19:42:26 +0100
commit789b12599d2e9ad3f93ef54f4bacf296d82a8325 (patch)
tree44ddf66e92cfb8afd15ae18ef54e337d67301c98 /ssl/ssl.h
parent371d9a627b911feb569d4bca7ffef5b1b4778e20 (diff)
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
Diffstat (limited to 'ssl/ssl.h')
-rw-r--r--ssl/ssl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ssl.h b/ssl/ssl.h
index 44f14fdcbb..da36aaea07 100644
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -2471,6 +2471,10 @@ void SSL_trace(int write_p, int version, int content_type,
const char *SSL_CIPHER_standard_name(const SSL_CIPHER *c);
#endif
+#ifndef OPENSSL_NO_UNIT_TEST
+const struct openssl_ssl_test_functions *SSL_test_functions(void);
+#endif
+
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run.