summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMike Bland <mbland@acm.org>2014-05-22 14:41:47 -0400
committerBen Laurie <ben@links.org>2014-05-22 22:02:46 +0100
commit8db2ba4b847bf38673cea16206a4a431480f6de7 (patch)
treea3644bfc3340564f9fc22075e0d70693054d44c6 /ssl
parentd77501d8fd1a49ff82e2824ded6f341f4fc8307a (diff)
Fix heartbeat_test for -DOPENSSL_NO_HEARTBEATS
Replaces the entire test with a trivial implementation when OPENSSL_NO_HEARTBEATS is defined.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/heartbeat_test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ssl/heartbeat_test.c b/ssl/heartbeat_test.c
index 26a01c0804..f339c4a168 100644
--- a/ssl/heartbeat_test.c
+++ b/ssl/heartbeat_test.c
@@ -44,6 +44,8 @@
#include <stdlib.h>
#include <string.h>
+#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 */