Move skey.h to /usr/include so other packages will be able to use
authorGuido van Rooij <guido@gvr.win.tue.nl>
Thu, 2 Jun 1994 20:25:48 +0000 (20:25 +0000)
committerGuido van Rooij <guido@gvr.win.tue.nl>
Thu, 2 Jun 1994 20:25:48 +0000 (20:25 +0000)
libskey. (such as wu-ftp and xdm).
Editted skey so it matches the standard /usr/include way.

15 files changed:
include/Makefile
lib/libskey/authfile.c
lib/libskey/md4.c
lib/libskey/md4.h
lib/libskey/put.c
lib/libskey/skey_crypt.c
lib/libskey/skeylogin.c
lib/libskey/skeysubr.c
libexec/ftpd/Makefile
libexec/ftpd/skey-stuff.c
usr.bin/key/skey.c
usr.bin/keyinit/Makefile
usr.bin/keyinit/skeyinit.c
usr.bin/login/Makefile
usr.bin/login/login_skey.c

index 3940fe8..545998a 100644 (file)
@@ -15,7 +15,7 @@ FILES=        a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \
        paths.h pwd.h queue.h ranlib.h regex.h resolv.h setjmp.h \
        sgtty.h stab.h stdarg.h stddef.h stdio.h stdlib.h string.h strings.h \
        struct.h sysexits.h time.h ttyent.h tzfile.h unistd.h utime.h utmp.h \
        paths.h pwd.h queue.h ranlib.h regex.h resolv.h setjmp.h \
        sgtty.h stab.h stdarg.h stddef.h stdio.h stdlib.h string.h strings.h \
        struct.h sysexits.h time.h ttyent.h tzfile.h unistd.h utime.h utmp.h \
-       varargs.h vis.h octype.h rune.h runetype.h
+       varargs.h vis.h octype.h rune.h runetype.h skey.h
 
 MFILES=        float.h floatingpoint.h frame.h
 LFILES=        errno.h fcntl.h signal.h syslog.h syscall.h termios.h
 
 MFILES=        float.h floatingpoint.h frame.h
 LFILES=        errno.h fcntl.h signal.h syslog.h syscall.h termios.h
index d93b846..ae7b0ac 100644 (file)
@@ -11,6 +11,7 @@
 #include <syslog.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <syslog.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <skey.h>
 
 #if (MAXHOSTNAMELEN < 64)              /* AIX weirdness */
 #undef MAXHOSTNAMELEN
 
 #if (MAXHOSTNAMELEN < 64)              /* AIX weirdness */
 #undef MAXHOSTNAMELEN
@@ -20,7 +21,6 @@
 #define MAXHOSTNAMELEN 255
 #endif
 
 #define MAXHOSTNAMELEN 255
 #endif
 
-#include "skey.h"
 #include "pathnames.h"
 
 static int isaddr();
 #include "pathnames.h"
 
 static int isaddr();
index 84d7661..495f444 100644 (file)
 #define gg(A,B,C,D,i,s)      A = rot((A + g(B,C,D) + X[i] + C2),s)
 #define hh(A,B,C,D,i,s)      A = rot((A + h(B,C,D) + X[i] + C3),s)
 
 #define gg(A,B,C,D,i,s)      A = rot((A + g(B,C,D) + X[i] + C2),s)
 #define hh(A,B,C,D,i,s)      A = rot((A + h(B,C,D) + X[i] + C3),s)
 
-void MDreverse __ARGS((unsigned long *X));
+void MDreverse __P((unsigned long *X));
 
 /* MDprint(MDp)
  * Print message digest buffer MDp as 32 hexadecimal digits.
 
 /* MDprint(MDp)
  * Print message digest buffer MDp as 32 hexadecimal digits.
index 5f2e031..c0d3419 100644 (file)
@@ -1,8 +1,5 @@
-#ifdef __STDC__
-#define        __ARGS(X) X     /* For ANSI C */
-#else
-#define        __ARGS(X) ()
-#endif
+
+#include <sys/cdefs.h>
 
 /* 
  *
 
 /* 
  *
@@ -23,7 +20,7 @@ typedef struct {
  * Input: MD -- an MDptr
  * Initialize the MDstruct prepatory to doing a message digest computation.
  */
  * Input: MD -- an MDptr
  * Initialize the MDstruct prepatory to doing a message digest computation.
  */
-extern void MDbegin __ARGS((MDptr MDp));
+extern void MDbegin __P((MDptr MDp));
 
 /* MDupdate(MD,X,count)
  * Input: MD -- an MDptr
 
 /* MDupdate(MD,X,count)
  * Input: MD -- an MDptr
@@ -37,7 +34,7 @@ extern void MDbegin __ARGS((MDptr MDp));
  * every MD computation should end with one call to MDupdate with a
  * count less than 512.  Zero is OK for a count.
  */
  * every MD computation should end with one call to MDupdate with a
  * count less than 512.  Zero is OK for a count.
  */
-extern void MDupdate __ARGS((MDptr MDp,unsigned char *X,unsigned int count));
+extern void MDupdate __P((MDptr MDp,unsigned char *X,unsigned int count));
 
 /* MDprint(MD)
  * Input: MD -- an MDptr
 
 /* MDprint(MD)
  * Input: MD -- an MDptr
@@ -45,6 +42,6 @@ extern void MDupdate __ARGS((MDptr MDp,unsigned char *X,unsigned int count));
  * Order is from low-order byte of buffer[0] to high-order byte of buffer[3].
  * Each byte is printed with high-order hexadecimal digit first.
  */
  * Order is from low-order byte of buffer[0] to high-order byte of buffer[3].
  * Each byte is printed with high-order hexadecimal digit first.
  */
-extern void MDprint __ARGS((MDptr MDp));
+extern void MDprint __P((MDptr MDp));
 
 /* End of md4.h */
 
 /* End of md4.h */
index 1ef1ec0..0f62d22 100644 (file)
@@ -2,12 +2,12 @@
 #include <string.h>
 #include <assert.h>
 #include <ctype.h>
 #include <string.h>
 #include <assert.h>
 #include <ctype.h>
-#include "skey.h"
+#include <skey.h>
 
 
-static unsigned long extract __ARGS((char *s,int start,int length));
-static void standard __ARGS((char *word));
-static void insert __ARGS((char *s, int x, int start, int length));
-static int wsrch __ARGS((char *w,int low,int high));
+static unsigned long extract __P((char *s,int start,int length));
+static void standard __P((char *word));
+static void insert __P((char *s, int x, int start, int length));
+static int wsrch __P((char *w,int low,int high));
 
 /* Dictionary for integer-word translations */
 char Wp[2048][4] = {
 
 /* Dictionary for integer-word translations */
 char Wp[2048][4] = {
index ca1024f..b61bef0 100644 (file)
@@ -3,8 +3,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <pwd.h>
 #include <string.h>
 #include <stdio.h>
 #include <pwd.h>
-
-#include "skey.h"
+#include <skey.h>
 
 /* skey_crypt - return encrypted UNIX passwd if s/key or regular password ok */
 
 
 /* skey_crypt - return encrypted UNIX passwd if s/key or regular password ok */
 
index bc49cb7..f2d4104 100644 (file)
 #include <sys/stat.h>
 #include <time.h>
 #include <errno.h>
 #include <sys/stat.h>
 #include <time.h>
 #include <errno.h>
-#include "skey.h"
+#include <skey.h>
 
 #define        KEYFILE "/etc/skeykeys"
 
 char *skipspace();
 
 #define        KEYFILE "/etc/skeykeys"
 
 char *skipspace();
-int skeylookup __ARGS((struct skey *mp,char *name));
+int skeylookup __P((struct skey *mp,char *name));
 
 #define setpriority(x,y,z)     /* nothing */
 
 
 #define setpriority(x,y,z)     /* nothing */
 
index 9762f1a..bfac3a3 100644 (file)
@@ -8,8 +8,8 @@
 #include <fcntl.h>
 #include <termios.h>
 #endif
 #include <fcntl.h>
 #include <termios.h>
 #endif
+#include <skey.h>
 #include "md4.h"
 #include "md4.h"
-#include "skey.h"
 
 #if (defined(__MSDOS__) || defined(MPU8086) || defined(MPU8080) \
  || defined(vax) || defined (MIPSEL))
 
 #if (defined(__MSDOS__) || defined(MPU8086) || defined(MPU8080) \
  || defined(vax) || defined (MIPSEL))
index 91b1a73..53cef26 100644 (file)
@@ -2,7 +2,7 @@
 
 
 PROG=  ftpd
 
 
 PROG=  ftpd
-CFLAGS+=-I${.CURDIR}/../../usr.bin/ftp -I${.CURDIR}/../../lib \
+CFLAGS+=-I${.CURDIR}/../../usr.bin/ftp \
        -DSETPROCTITLE -DSKEY
 SRCS=  ftpd.c ftpcmd.c glob.c logwtmp.c popen.c vers.c skey-stuff.c
 MAN8=  ftpd.8
        -DSETPROCTITLE -DSKEY
 SRCS=  ftpd.c ftpcmd.c glob.c logwtmp.c popen.c vers.c skey-stuff.c
 MAN8=  ftpd.8
index c4e4912..fdec650 100644 (file)
@@ -3,7 +3,7 @@
 #include <stdio.h>
 #include <pwd.h>
 
 #include <stdio.h>
 #include <pwd.h>
 
-#include "libskey/skey.h"
+#include <skey.h>
 
 /* skey_challenge - additional password prompt stuff */
 
 
 /* skey_challenge - additional password prompt stuff */
 
index e025312..d1bc239 100644 (file)
@@ -18,7 +18,7 @@
 #include <fcntl.h>
 #endif
 #include "libskey/md4.h"
 #include <fcntl.h>
 #endif
 #include "libskey/md4.h"
-#include "libskey/skey.h"
+#include <skey.h>
 
 char *readpass();
 void usage();
 
 char *readpass();
 void usage();
index 4c44d30..a716f14 100644 (file)
@@ -4,7 +4,6 @@
 
 PROG=  keyinit
 MAN1=   keyinit.1
 
 PROG=  keyinit
 MAN1=   keyinit.1
-CFLAGS+=-I${.CURDIR}/../../lib
 DPADD= /usr/bin/libskey.a
 LDADD= -lskey
 
 DPADD= /usr/bin/libskey.a
 LDADD= -lskey
 
index d13bd6b..bf110c8 100644 (file)
@@ -4,7 +4,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <pwd.h>
 #include <stdio.h>
 #include <string.h>
 #include <pwd.h>
-#include "libskey/skey.h"
+#include <skey.h>
 #include <stdio.h>
 #include <time.h>
 
 #include <stdio.h>
 #include <time.h>
 
index 5ee1672..53c6f1f 100644 (file)
@@ -8,7 +8,7 @@ LDADD=  -lutil -lskey
 BINOWN=        root
 BINMODE=4555
 #CFLAGS+=-DLOGIN_ACCESS -DSKEY -DLOGALL -I${.CURDIR}/../../lib
 BINOWN=        root
 BINMODE=4555
 #CFLAGS+=-DLOGIN_ACCESS -DSKEY -DLOGALL -I${.CURDIR}/../../lib
-CFLAGS+=-DLOGIN_ACCESS -DSKEY -I${.CURDIR}/../../lib
+CFLAGS+=-DLOGIN_ACCESS -DSKEY 
 
 .if exists(${DESTDIR}/usr/lib/libcrypt.a)
 DPADD+= ${LIBCRYPT}
 
 .if exists(${DESTDIR}/usr/lib/libcrypt.a)
 DPADD+= ${LIBCRYPT}
index 066e00d..b94bd28 100644 (file)
@@ -10,7 +10,7 @@
 #include <pwd.h>
 #include <syslog.h>
 
 #include <pwd.h>
 #include <syslog.h>
 
-#include "libskey/skey.h"
+#include <skey.h>
 
 /* skey_getpass - read regular or s/key password */
 
 
 /* skey_getpass - read regular or s/key password */