X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f33ba69e92f389f5884eae5a586858a629a5260b..9f77212d7f268f8380781727b7fff520349891cd:/sshmd5.c diff --git a/sshmd5.c b/sshmd5.c index 89133408..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,9 +308,10 @@ 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", - 16 + 16, + "HMAC-MD5" };