summaryrefslogtreecommitdiffstats
path: root/lib/libc/crypt/crypt.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-09-14 22:56:57 +0000
committerderaadt <deraadt@openbsd.org>2004-09-14 22:56:57 +0000
commit1b1a0d8b9cbc42adf784d8aa84ca2c83e93142a4 (patch)
treeb3c0cf7485837200e7fc30cf3757c44e049c227d /lib/libc/crypt/crypt.c
parentARGSUSED before signal handler with unused signo (diff)
downloadwireguard-openbsd-1b1a0d8b9cbc42adf784d8aa84ca2c83e93142a4.tar.xz
wireguard-openbsd-1b1a0d8b9cbc42adf784d8aa84ca2c83e93142a4.zip
do the char * to u_char * song and dance back and forth explicitly as
we match API's against each other, fun eh; millert ok
Diffstat (limited to 'lib/libc/crypt/crypt.c')
-rw-r--r--lib/libc/crypt/crypt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/crypt/crypt.c b/lib/libc/crypt/crypt.c
index e0f5e8364ab..f0e2900f6d3 100644
--- a/lib/libc/crypt/crypt.c
+++ b/lib/libc/crypt/crypt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypt.c,v 1.18 2003/08/12 01:22:17 deraadt Exp $ */
+/* $OpenBSD: crypt.c,v 1.19 2004/09/14 22:56:57 deraadt Exp $ */
/*
* FreeSec: libcrypt
@@ -47,7 +47,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: crypt.c,v 1.18 2003/08/12 01:22:17 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: crypt.c,v 1.19 2004/09/14 22:56:57 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -604,7 +604,7 @@ crypt(const char *key, const char *setting)
if ((*q++ = *key << 1))
key++;
}
- if (des_setkey((u_char *) keybuf))
+ if (des_setkey((char *) keybuf))
return(NULL);
if (*setting == _PASSWORD_EFMT1) {
@@ -623,7 +623,7 @@ crypt(const char *key, const char *setting)
/*
* Encrypt the key with itself.
*/
- if (des_cipher((u_char*)keybuf, (u_char*)keybuf, 0, 1))
+ if (des_cipher((char *)keybuf, (char *)keybuf, 0, 1))
return(NULL);
/*
* And XOR with the next 8 characters of the key.
@@ -633,7 +633,7 @@ crypt(const char *key, const char *setting)
*key)
*q++ ^= *key++ << 1;
- if (des_setkey((u_char *) keybuf))
+ if (des_setkey((char *) keybuf))
return(NULL);
}
strlcpy((char *)output, setting, 10);