diff options
author | Mike Bland <mbland@acm.org> | 2014-05-22 14:41:47 -0400 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-05-22 22:05:26 +0100 |
commit | 756587dcb901d071682e1e6d7bde8a4461c60766 (patch) | |
tree | 96689c2ea999ab293bad5f4f80cf8cba86903ef3 /ssl | |
parent | 0a084f7b3a9050bd8096cb0e7d5fc45a5af31e4a (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.c | 10 |
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 */ |