summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/crypt.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-10-22 14:37:11 +0000
committerphk <phk@FreeBSD.org>1995-10-22 14:37:11 +0000
commit5e221828f83731c9f6083e6ce9703c1251dba05a (patch)
tree021e4f00408640702c262fd5f8dc2c167a2c2c73 /lib/libc/gen/crypt.c
parent6a09eeb50d1e12bcfae0a9e782727c535dc609f5 (diff)
downloadFreeBSD-src-5e221828f83731c9f6083e6ce9703c1251dba05a.zip
FreeBSD-src-5e221828f83731c9f6083e6ce9703c1251dba05a.tar.gz
Minor cleanup, mostly unused vars and missing #includes.
Diffstat (limited to 'lib/libc/gen/crypt.c')
-rw-r--r--lib/libc/gen/crypt.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/libc/gen/crypt.c b/lib/libc/gen/crypt.c
index 1ffb736..c1417b8 100644
--- a/lib/libc/gen/crypt.c
+++ b/lib/libc/gen/crypt.c
@@ -36,11 +36,12 @@
#if defined(LIBC_SCCS) && !defined(lint)
/* from static char sccsid[] = "@(#)crypt.c 5.11 (Berkeley) 6/25/91"; */
-static char rcsid[] = "$Header: /home/ncvs/src/lib/libc/gen/crypt.c,v 1.2 1994/08/22 20:38:00 csgr Exp $";
+static char rcsid[] = "$Header: /home/ncvs/src/lib/libc/gen/crypt.c,v 1.3 1995/05/30 05:40:10 rgrimes Exp $";
#endif /* LIBC_SCCS and not lint */
#include <unistd.h>
#include <stdio.h>
+#include <string.h>
/*
* UNIX password, and DES, encryption.
@@ -49,6 +50,10 @@ static char rcsid[] = "$Header: /home/ncvs/src/lib/libc/gen/crypt.c,v 1.2 1994/0
* encryption, make sure you've got libcrypt.a around.
*/
+__warn_references(des_setkey,
+ "WARNING! des_setkey(3) not present in the system!");
+
+int
des_setkey(key)
register const char *key;
{
@@ -56,6 +61,10 @@ des_setkey(key)
return (0);
}
+__warn_references(des_cipher,
+ "WARNING! des_cipher(3) not present in the system!");
+
+int
des_cipher(in, out, salt, num_iter)
const char *in;
char *out;
@@ -67,6 +76,10 @@ des_cipher(in, out, salt, num_iter)
return (0);
}
+__warn_references(setkey,
+ "WARNING! setkey(3) not present in the system!");
+
+int
setkey(key)
register const char *key;
{
@@ -74,6 +87,10 @@ setkey(key)
return (0);
}
+__warn_references(encrypt,
+ "WARNING! encrypt(3) not present in the system!");
+
+int
encrypt(block, flag)
register char *block;
int flag;
OpenPOWER on IntegriCloud