summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--includes/BHashes.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5312e48..861b60f 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ LDFLAGS += -g3 -gdwarf-2
endif
INCLUDES = includes libcoro libev LuaJIT/src lcrypt libtommath libtomcrypt/src/headers src/jsoncpp/include
-LIBS = z
+LIBS = z curl
DEFINES = _LARGEFILE64_SOURCE LITTLE_ENDIAN LTM_DESC LTC_SOURCE USE_LTM
ifeq ($(SYSTEM),Darwin)
@@ -62,6 +62,8 @@ TaskMan.cc \
\
HelperTasks.cc \
\
+CurlTask.cc \
+\
Http.cc \
HttpServer.cc \
HttpActionStatic.cc \
diff --git a/includes/BHashes.h b/includes/BHashes.h
index 9fcf0fd..c08b48d 100644
--- a/includes/BHashes.h
+++ b/includes/BHashes.h
@@ -50,7 +50,7 @@ class HMAC {
int r = hmac_process(&m_state, data, len);
IAssert(r == CRYPT_OK, "hmac_process for %s returned %i", Hash::name(), r);
}
- unsigned final(void * digest, unsigned outlen) {
+ unsigned long final(void * digest, unsigned long outlen) {
int r = hmac_done(&m_state, (uint8_t *) digest, &outlen);
IAssert(r == CRYPT_OK, "hmac_done for %s returned %i", Hash::name(), r);
return outlen;