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 eb08ee6..35985f8 100644 (file)
 #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 */
-static const int MAX_PRINTABLE_CHARACTERS = 1024;
+#define MAX_PRINTABLE_CHARACTERS       1024
 
 typedef struct heartbeat_test_fixture
        {
index e016d71..66ce1a1 100644 (file)
@@ -85,7 +85,7 @@ FIPS_ECDSAVS= fips_ecdsavs
 FIPS_TEST_SUITE=fips_test_suite
 FIPS_CMACTEST= fips_cmactest
 FIPS_ALGVS=    fips_algvs
-HEARTBEATTEST = heartbeat_test
+HEARTBEATTEST heartbeat_test
 
 TESTS=         alltests
 
@@ -379,7 +379,7 @@ test_ocsp: ../apps/openssl$(EXE_EXT) tocsp
        @sh ./tocsp
 
 test_heartbeat: $(HEARTBEATTEST)$(EXE_EXT)
-       ./$<
+       ../util/shlib_wrap.sh ./$(HEARTBEATTEST)
 
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff