Move skey.h back where it belongs
This commit is contained in:
parent
bb56d435e3
commit
bd5d6eecd0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3207
@ -4,7 +4,12 @@ LIB= skey
|
||||
SRCS= skeyaccess.c md4.c put.c skey_crypt.c skeylogin.c skeysubr.c
|
||||
MAN5= skey.access.5
|
||||
|
||||
CFLAGS+=-DMPU8086 -DPERMIT_CONSOLE
|
||||
CFLAGS+=-DMPU8086 -DPERMIT_CONSOLE -I${.CURDIR}
|
||||
|
||||
beforeinstall:
|
||||
-cd ${.CURDIR}; cmp -s skey.h ${DESTDIR}/usr/include/skey.h > \
|
||||
/dev/null 2>&1 || \
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m 444 skey.h \
|
||||
${DESTDIR}/usr/include
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
|
37
lib/libskey/skey.h
Normal file
37
lib/libskey/skey.h
Normal file
@ -0,0 +1,37 @@
|
||||
#ifndef _SKEY_H_
|
||||
#define _SKEY_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
/* Server-side data structure for reading keys file during login */
|
||||
struct skey {
|
||||
FILE *keyfile;
|
||||
char buf[256];
|
||||
char *logname;
|
||||
int n;
|
||||
char *seed;
|
||||
char *val;
|
||||
long recstart; /*needed so reread of buffer is efficient*/
|
||||
|
||||
|
||||
};
|
||||
|
||||
/* Client-side structure for scanning data stream for challenge */
|
||||
struct mc {
|
||||
char buf[256];
|
||||
int skip;
|
||||
int cnt;
|
||||
};
|
||||
|
||||
void f __P((char *x));
|
||||
int keycrunch __P((char *result,char *seed,char *passwd));
|
||||
char *btoe __P((char *engout,char *c));
|
||||
char *put8 __P((char *out,char *s));
|
||||
int etob __P((char *out,char *e));
|
||||
void rip __P((char *buf));
|
||||
int skeychallenge __P((struct skey *mp,char *name, char *challenge));
|
||||
int skeylookup __P((struct skey *mp,char *name));
|
||||
int skeyverify __P((struct skey *mp,char *response));
|
||||
int skeyaccess __P((char *user, char *port, char *host));
|
||||
|
||||
#endif /* _SKEY_H_ */
|
Loading…
Reference in New Issue
Block a user