X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=hmac.c;h=8b6d2f6234caa8e612d2710e35daaacc16bd40bb;hb=refs%2Fheads%2Fbones_was_here%2Fnet_s4;hp=a422c699843356fd0cddb1fb3d3e832b3453c588;hpb=60945cc7023ed9b94235f3f43341a607eec4fb5c;p=xonotic%2Fdarkplaces.git diff --git a/hmac.c b/hmac.c index a422c699..8b6d2f62 100644 --- 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) {