From 647c70f765aed4e913afb1c9f47377f7513c5c82 Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Thu, 22 May 2014 14:41:47 -0400 Subject: [PATCH] Fix heartbeat_test for -DOPENSSL_NO_HEARTBEATS Replaces the entire test with a trivial implementation when OPENSSL_NO_HEARTBEATS is defined. --- ssl/heartbeat_test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ssl/heartbeat_test.c b/ssl/heartbeat_test.c index a525d17f34..c770e9d718 100644 --- a/ssl/heartbeat_test.c +++ b/ssl/heartbeat_test.c @@ -44,6 +44,8 @@ #include #include +#ifndef OPENSSL_NO_HEARTBEATS + /* As per https://tools.ietf.org/html/rfc6520#section-4 */ #define MIN_PADDING_SIZE 16 @@ -453,3 +455,11 @@ int main(int argc, char *argv[]) } return EXIT_SUCCESS; } + +#else /* OPENSSL_NO_HEARTBEATS*/ + +int main(int argc, char *argv[]) + { + return EXIT_SUCCESS; + } +#endif /* OPENSSL_NO_HEARTBEATS */ -- 2.34.1