]> andersk Git - openssh.git/blobdiff - hmac.c
20010115
[openssh.git] / hmac.c
diff --git a/hmac.c b/hmac.c
index 27590ec8067b805542b9138c8fd4ce19b4f7e10a..6c3883e67e5fe7a05d3e1740942c85ca4505eab0 100644 (file)
--- a/hmac.c
+++ b/hmac.c
@@ -9,11 +9,6 @@
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by Markus Friedl.
- * 4. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission.
  *
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@@ -28,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: hmac.c,v 1.3 2000/06/20 01:39:41 markus Exp $");
+RCSID("$OpenBSD: hmac.c,v 1.5 2000/12/19 23:17:56 markus Exp $");
 
 #include "xmalloc.h"
 #include "ssh.h"
@@ -36,16 +31,16 @@ RCSID("$OpenBSD: hmac.c,v 1.3 2000/06/20 01:39:41 markus Exp $");
 
 #include <openssl/hmac.h>
 
-unsigned char *
+u_char *
 hmac(
     EVP_MD *evp_md,
-    unsigned int seqno,
-    unsigned char *data, int datalen,
-    unsigned char *key, int keylen)
+    u_int seqno,
+    u_char *data, int datalen,
+    u_char *key, int keylen)
 {
        HMAC_CTX c;
-       static unsigned char m[EVP_MAX_MD_SIZE];
-       unsigned char b[4];
+       static u_char m[EVP_MAX_MD_SIZE];
+       u_char b[4];
 
        if (key == NULL)
                fatal("hmac: no key");
This page took 0.071471 seconds and 4 git commands to generate.