Fix configurations such as 'dist' and tar building
[openssl.git] / ssl / ssl_utst.c
index 3679bc3c23092778d5d4272e11253fe5a81714c3..335cf0d506b83a73342a98a7459be64fd0f99bfb 100644 (file)
@@ -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
 
 #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