]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - hmac.c
Adding developer_curl to print verbose curl output
[xonotic/darkplaces.git] / hmac.c
diff --git a/hmac.c b/hmac.c
index a422c699843356fd0cddb1fb3d3e832b3453c588..8b6d2f6234caa8e612d2710e35daaacc16bd40bb 100644 (file)
--- a/hmac.c
+++ b/hmac.c
@@ -1,7 +1,7 @@
-#include "quakedef.h"
+#include "darkplaces.h"
 #include "hmac.h"
 
-qboolean hmac(
+qbool hmac(
        hashfunc_t hfunc, int hlen, int hblock,
        unsigned char *out,
        const unsigned char *in, int n,
@@ -21,7 +21,7 @@ qboolean hmac(
        if(sizeof(k_xor_ipad) < (size_t) hlen)
                return false;
 
-       catbuf = Mem_Alloc(tempmempool, (size_t) hblock + max((size_t) hlen, (size_t) n));
+       catbuf = (unsigned char *)Mem_Alloc(tempmempool, (size_t) hblock + max((size_t) hlen, (size_t) n));
 
        if(k > hblock)
        {