]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - hmac.c
adding "srcon" protocol, and new cvars:
[xonotic/darkplaces.git] / hmac.c
diff --git a/hmac.c b/hmac.c
index 372921d7a096a8786e3e652b9c988f574ace53c2..de44162796b6339164e4c41dd88009bae76c3c43 100644 (file)
--- a/hmac.c
+++ b/hmac.c
@@ -8,10 +8,10 @@ void hmac(
        unsigned char *key, int k
 )
 {
-       unsigned char hashbuf[32];
-       unsigned char k_xor_ipad[128];
-       unsigned char k_xor_opad[128];
-       unsigned char catbuf[256];
+       static unsigned char hashbuf[32];
+       static unsigned char k_xor_ipad[128];
+       static unsigned char k_xor_opad[128];
+       static unsigned char catbuf[4096];
        int i;
 
        if(sizeof(hashbuf) < (size_t) hlen)