libskey. (such as wu-ftp and xdm).
Editted skey so it matches the standard /usr/include way.
15 files changed:
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
#include <syslog.h>
#include <unistd.h>
#include <stdlib.h>
#include <syslog.h>
#include <unistd.h>
#include <stdlib.h>
#if (MAXHOSTNAMELEN < 64) /* AIX weirdness */
#undef MAXHOSTNAMELEN
#if (MAXHOSTNAMELEN < 64) /* AIX weirdness */
#undef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 255
#endif
#define MAXHOSTNAMELEN 255
#endif
#include "pathnames.h"
static int isaddr();
#include "pathnames.h"
static int isaddr();
#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.
-#ifdef __STDC__
-#define __ARGS(X) X /* For ANSI C */
-#else
-#define __ARGS(X) ()
-#endif
+
+#include <sys/cdefs.h>
* 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
* 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
* 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));
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <string.h>
#include <assert.h>
#include <ctype.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] = {
#include <string.h>
#include <stdio.h>
#include <pwd.h>
#include <string.h>
#include <stdio.h>
#include <pwd.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 */
#include <sys/stat.h>
#include <time.h>
#include <errno.h>
#include <sys/stat.h>
#include <time.h>
#include <errno.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 */
#include <fcntl.h>
#include <termios.h>
#endif
#include <fcntl.h>
#include <termios.h>
#endif
#if (defined(__MSDOS__) || defined(MPU8086) || defined(MPU8080) \
|| defined(vax) || defined (MIPSEL))
#if (defined(__MSDOS__) || defined(MPU8086) || defined(MPU8080) \
|| defined(vax) || defined (MIPSEL))
-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
#include <stdio.h>
#include <pwd.h>
#include <stdio.h>
#include <pwd.h>
-#include "libskey/skey.h"
/* skey_challenge - additional password prompt stuff */
/* skey_challenge - additional password prompt stuff */
#include <fcntl.h>
#endif
#include "libskey/md4.h"
#include <fcntl.h>
#endif
#include "libskey/md4.h"
-#include "libskey/skey.h"
char *readpass();
void usage();
char *readpass();
void usage();
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
#include <stdio.h>
#include <string.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <pwd.h>
-#include "libskey/skey.h"
#include <stdio.h>
#include <time.h>
#include <stdio.h>
#include <time.h>
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}
#include <pwd.h>
#include <syslog.h>
#include <pwd.h>
#include <syslog.h>
-#include "libskey/skey.h"
/* skey_getpass - read regular or s/key password */
/* skey_getpass - read regular or s/key password */