]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
unit1612: fixed the inclusion and compilation of the HMAC unit test
authorSteve Holme <steve_holme@hotmail.com>
Tue, 3 Mar 2020 02:32:42 +0000 (02:32 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 6 Mar 2020 13:08:03 +0000 (13:08 +0000)
Follow up to 3f74e5e6 to fix:

- A typo in Makefile.inc where unit1611 was used instead
- Some compilation issues in unit1612.c

Closes #5024

tests/unit/Makefile.inc
tests/unit/unit1612.c

index 4fe80d5dbc202aafd665f8d0b2367c1b7f2c4a28..f63724f913ca1ce7166e9d0ae2cd81d7ad7bdddd 100644 (file)
@@ -126,7 +126,7 @@ unit1610_CPPFLAGS = $(AM_CPPFLAGS)
 unit1611_SOURCES = unit1611.c $(UNITFILES)
 unit1611_CPPFLAGS = $(AM_CPPFLAGS)
 
-unit1612_SOURCES = unit1611.c $(UNITFILES)
+unit1612_SOURCES = unit1612.c $(UNITFILES)
 unit1612_CPPFLAGS = $(AM_CPPFLAGS)
 
 unit1620_SOURCES = unit1620.c $(UNITFILES)
index be45397fb60aa012cbb48a9ff4999d9775502f85..3fb2de033ea049c23f2965e663dde48b5c904f6f 100644 (file)
@@ -22,6 +22,7 @@
 #include "curlcheck.h"
 
 #include "curl_hmac.h"
+#include "curl_md5.h"
 
 static CURLcode unit_setup(void)
 {
@@ -44,7 +45,7 @@ UNITTEST_START
 
   Curl_hmacit(Curl_HMAC_MD5,
               (const unsigned char *) password, strlen(password),
-              (const unsigned char *) string1, strlen(string1)
+              (const unsigned char *) string1, strlen(string1),
               output);
 
   verify_memory(testp,