Make it build/run.
authorBen Laurie <ben@links.org>
Tue, 29 Apr 2014 17:36:39 +0000 (18:36 +0100)
committerBen Laurie <ben@links.org>
Mon, 19 May 2014 16:39:41 +0000 (17:39 +0100)
ssl/heartbeat_test.c
test/Makefile

index eb08ee6b0d24856130dc94ca978c646e7c813a3d..35985f836c9b6e0206e3c07d3cc117c94060c202 100644 (file)
 #include <string.h>
 
 /* As per https://tools.ietf.org/html/rfc6520#section-4 */
 #include <string.h>
 
 /* As per https://tools.ietf.org/html/rfc6520#section-4 */
-static const int MIN_PADDING_SIZE = 16;
+#define MIN_PADDING_SIZE       16
 
 /* Maximum number of payload characters to print as test output */
 
 /* Maximum number of payload characters to print as test output */
-static const int MAX_PRINTABLE_CHARACTERS = 1024;
+#define MAX_PRINTABLE_CHARACTERS       1024
 
 typedef struct heartbeat_test_fixture
        {
 
 typedef struct heartbeat_test_fixture
        {
index e016d71a9c3ffe401a2d5978fbb896968a1472f2..66ce1a1bbd515cef9fde4380b8ebd51bab4a80dd 100644 (file)
@@ -85,7 +85,7 @@ FIPS_ECDSAVS= fips_ecdsavs
 FIPS_TEST_SUITE=fips_test_suite
 FIPS_CMACTEST= fips_cmactest
 FIPS_ALGVS=    fips_algvs
 FIPS_TEST_SUITE=fips_test_suite
 FIPS_CMACTEST= fips_cmactest
 FIPS_ALGVS=    fips_algvs
-HEARTBEATTEST = heartbeat_test
+HEARTBEATTEST heartbeat_test
 
 TESTS=         alltests
 
 
 TESTS=         alltests
 
@@ -379,7 +379,7 @@ test_ocsp: ../apps/openssl$(EXE_EXT) tocsp
        @sh ./tocsp
 
 test_heartbeat: $(HEARTBEATTEST)$(EXE_EXT)
        @sh ./tocsp
 
 test_heartbeat: $(HEARTBEATTEST)$(EXE_EXT)
-       ./$<
+       ../util/shlib_wrap.sh ./$(HEARTBEATTEST)
 
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff