Move skey.h to /usr/include so other packages will be able to use

libskey. (such as wu-ftp and xdm).
Editted skey so it matches the standard /usr/include way.
This commit is contained in:
Guido van Rooij 1994-06-02 20:25:30 +00:00
parent 9727866aa8
commit 3653271054
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1671
10 changed files with 18 additions and 23 deletions

View File

@ -11,6 +11,7 @@
#include <syslog.h>
#include <unistd.h>
#include <stdlib.h>
#include <skey.h>
#if (MAXHOSTNAMELEN < 64) /* AIX weirdness */
#undef MAXHOSTNAMELEN
@ -20,7 +21,6 @@
#define MAXHOSTNAMELEN 255
#endif
#include "skey.h"
#include "pathnames.h"
static int isaddr();

View File

@ -107,7 +107,7 @@
#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.

View 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.
*/
extern void MDbegin __ARGS((MDptr MDp));
extern void MDbegin __P((MDptr MDp));
/* 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.
*/
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
@ -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.
*/
extern void MDprint __ARGS((MDptr MDp));
extern void MDprint __P((MDptr MDp));
/* End of md4.h */

View File

@ -2,12 +2,12 @@
#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] = {

View File

@ -3,8 +3,7 @@
#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 */

View File

@ -19,12 +19,12 @@
#include <sys/stat.h>
#include <time.h>
#include <errno.h>
#include "skey.h"
#include <skey.h>
#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 */

View File

@ -8,8 +8,8 @@
#include <fcntl.h>
#include <termios.h>
#endif
#include <skey.h>
#include "md4.h"
#include "skey.h"
#if (defined(__MSDOS__) || defined(MPU8086) || defined(MPU8080) \
|| defined(vax) || defined (MIPSEL))

View File

@ -18,7 +18,7 @@
#include <fcntl.h>
#endif
#include "libskey/md4.h"
#include "libskey/skey.h"
#include <skey.h>
char *readpass();
void usage();

View File

@ -4,7 +4,6 @@
PROG= keyinit
MAN1= keyinit.1
CFLAGS+=-I${.CURDIR}/../../lib
DPADD= /usr/bin/libskey.a
LDADD= -lskey

View File

@ -4,7 +4,7 @@
#include <stdio.h>
#include <string.h>
#include <pwd.h>
#include "libskey/skey.h"
#include <skey.h>
#include <stdio.h>
#include <time.h>