projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb33348
)
Fix heartbeat_test for -DOPENSSL_NO_HEARTBEATS
author
Mike Bland
<mbland@acm.org>
Thu, 22 May 2014 18:41:47 +0000
(14:41 -0400)
committer
Mike Bland
<mbland@acm.org>
Thu, 22 May 2014 19:23:10 +0000
(15:23 -0400)
Replaces the entire test with a trivial implementation when
OPENSSL_NO_HEARTBEATS is defined.
ssl/heartbeat_test.c
patch
|
blob
|
history
diff --git
a/ssl/heartbeat_test.c
b/ssl/heartbeat_test.c
index a525d17f34065109b9e73d8110cbb424414e2f0d..c770e9d71853a6361e782dde2874ca0170dc6682 100644
(file)
--- 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 */