summaryrefslogtreecommitdiff
path: root/comms/xisp/patches/patch-ad
blob: c6d69239a393968ffc135d419d8d8ab5c1a9c48c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-ad,v 1.1.1.1 1998/12/03 15:08:53 frueauf Exp $

--- pcode.c.orig	Mon Oct 26 05:35:01 1998
+++ pcode.c	Tue Dec  1 02:54:29 1998
@@ -18,6 +18,13 @@
    For author contact information, look in the README file.
 */
 
+#include <sys/param.h>
+
+#if (defined(BSD) && BSD >= 199306)
+#include <unistd.h>
+#include <stdlib.h>
+#endif
+
 /* Password encryption/decryption data structures and routines */
 
 static unsigned char pkey[8] = {0x87,0xB6,0xAC,0xAF,0xC6,0xC8,0x94,0x8C},
@@ -62,7 +69,9 @@
 void pencode(unsigned char *ep, unsigned char *pp)
 {
 	int i;
+#if !(defined(BSD) && BSD >= 199306)
 	void setkey(), encrypt();
+#endif
 
 	cupack(ukey, pkey);				/* unpack the key */
 	setkey(ukey);					/* insert it in crypt's machine */
@@ -78,7 +87,9 @@
 void pdecode(unsigned char *pp, unsigned char *ep)
 {
 	int i;
+#if !(defined(BSD) && BSD >= 199306)
 	void setkey(), encrypt();
+#endif
 
 	cupack(ukey, pkey);				/* unpack the key */
 	setkey(ukey);					/* insert it in crypt's machine */