#include "quakedef.h"
#include "hmac.h"
-qboolean hmac(
+qbool hmac(
hashfunc_t hfunc, int hlen, int hblock,
unsigned char *out,
const unsigned char *in, int n,
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)
{