X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshmd5.c;h=215b81fddcb63fc916c6c66cbae2f91bdacbfee2;hb=49d2cf19accb059b3b68d1fc2b78e606a578c3e8;hp=325a5aebdd2cecb543f57f1d0a819a13c83994b5;hpb=fb92f118bd3473e3276d044f7a87732f924d4651;p=PuTTY.git diff --git a/sshmd5.c b/sshmd5.c index 325a5aeb..215b81fd 100644 --- a/sshmd5.c +++ b/sshmd5.c @@ -230,10 +230,11 @@ void hmacmd5_free_context(void *handle) sfree(handle); } -void hmacmd5_key(void *handle, unsigned char const *key, int len) +void hmacmd5_key(void *handle, void const *keyv, int len) { struct MD5Context *keys = (struct MD5Context *)handle; unsigned char foo[64]; + unsigned char const *key = (unsigned char const *)keyv; int i; memset(foo, 0x36, 64); @@ -307,7 +308,7 @@ static int hmacmd5_verify(void *handle, unsigned char *blk, int len, return !memcmp(correct, blk + len, 16); } -const struct ssh_mac ssh_md5 = { +const struct ssh_mac ssh_hmac_md5 = { hmacmd5_make_context, hmacmd5_free_context, hmacmd5_key_16, hmacmd5_generate, hmacmd5_verify, "hmac-md5",