projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix what looks like a cut-and-paste error which was stopping Unix
[u/mdw/putty]
/
sshmd5.c
diff --git
a/sshmd5.c
b/sshmd5.c
index
8913340
..
dbdd971
100644
(file)
--- a/
sshmd5.c
+++ b/
sshmd5.c
@@
-230,10
+230,11
@@
void hmacmd5_free_context(void *handle)
sfree(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];
{
struct MD5Context *keys = (struct MD5Context *)handle;
unsigned char foo[64];
+ unsigned char const *key = (unsigned char const *)keyv;
int i;
memset(foo, 0x36, 64);
int i;
memset(foo, 0x36, 64);
@@
-311,5
+312,6
@@
const struct ssh_mac ssh_md5 = {
hmacmd5_make_context, hmacmd5_free_context, hmacmd5_key_16,
hmacmd5_generate, hmacmd5_verify,
"hmac-md5",
hmacmd5_make_context, hmacmd5_free_context, hmacmd5_key_16,
hmacmd5_generate, hmacmd5_verify,
"hmac-md5",
- 16
+ 16,
+ "HMAC-MD5"
};
};