X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fssl_utst.c;h=335cf0d506b83a73342a98a7459be64fd0f99bfb;hp=3679bc3c23092778d5d4272e11253fe5a81714c3;hb=2e66d3d674d3a54593e0cbb4ff1f6039fd965d66;hpb=e0fc7961c4fbd27577fb519d9aea2dc788742715 diff --git a/ssl/ssl_utst.c b/ssl/ssl_utst.c index 3679bc3c23..335cf0d506 100644 --- a/ssl/ssl_utst.c +++ b/ssl/ssl_utst.c @@ -1,5 +1,5 @@ -/* ssl_utst.c */ -/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL +/* + * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ /* ==================================================================== @@ -10,7 +10,7 @@ * are met: * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in @@ -56,18 +56,18 @@ #ifndef OPENSSL_NO_UNIT_TEST - -static const struct openssl_ssl_test_functions ssl_test_functions = - { - ssl_init_wbio_buffer, - ssl3_setup_buffers, - tls1_process_heartbeat, - dtls1_process_heartbeat - }; +static const struct openssl_ssl_test_functions ssl_test_functions = { + ssl_init_wbio_buffer, + ssl3_setup_buffers, +# ifndef OPENSSL_NO_HEARTBEATS +# undef dtls1_process_heartbeat + dtls1_process_heartbeat +# endif +}; const struct openssl_ssl_test_functions *SSL_test_functions(void) - { - return &ssl_test_functions; - } +{ + return &ssl_test_functions; +} #endif