diff options
Diffstat (limited to 'hmac.c')
-rw-r--r-- | hmac.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: hmac.c,v 1.4 2000/09/07 20:27:51 deraadt Exp $"); | 26 | RCSID("$OpenBSD: hmac.c,v 1.5 2000/12/19 23:17:56 markus Exp $"); |
27 | 27 | ||
28 | #include "xmalloc.h" | 28 | #include "xmalloc.h" |
29 | #include "ssh.h" | 29 | #include "ssh.h" |
@@ -31,16 +31,16 @@ RCSID("$OpenBSD: hmac.c,v 1.4 2000/09/07 20:27:51 deraadt Exp $"); | |||
31 | 31 | ||
32 | #include <openssl/hmac.h> | 32 | #include <openssl/hmac.h> |
33 | 33 | ||
34 | unsigned char * | 34 | u_char * |
35 | hmac( | 35 | hmac( |
36 | EVP_MD *evp_md, | 36 | EVP_MD *evp_md, |
37 | unsigned int seqno, | 37 | u_int seqno, |
38 | unsigned char *data, int datalen, | 38 | u_char *data, int datalen, |
39 | unsigned char *key, int keylen) | 39 | u_char *key, int keylen) |
40 | { | 40 | { |
41 | HMAC_CTX c; | 41 | HMAC_CTX c; |
42 | static unsigned char m[EVP_MAX_MD_SIZE]; | 42 | static u_char m[EVP_MAX_MD_SIZE]; |
43 | unsigned char b[4]; | 43 | u_char b[4]; |
44 | 44 | ||
45 | if (key == NULL) | 45 | if (key == NULL) |
46 | fatal("hmac: no key"); | 46 | fatal("hmac: no key"); |