diff options
author | pst <pst@FreeBSD.org> | 1994-09-29 19:27:35 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1994-09-29 19:27:35 +0000 |
commit | 167c7cd1cdd0ef263ed5546ca3e8a41b2cc2e0ea (patch) | |
tree | 87eb60553dec9f831c9eece17c481429a23a25d7 /lib/libskey | |
parent | 02b021a2a7128086be276505669acb339aaa9d4f (diff) | |
download | FreeBSD-src-167c7cd1cdd0ef263ed5546ca3e8a41b2cc2e0ea.zip FreeBSD-src-167c7cd1cdd0ef263ed5546ca3e8a41b2cc2e0ea.tar.gz |
Move skey.h back where it belongs
Diffstat (limited to 'lib/libskey')
-rw-r--r-- | lib/libskey/Makefile | 9 | ||||
-rw-r--r-- | lib/libskey/skey.h | 37 |
2 files changed, 44 insertions, 2 deletions
diff --git a/lib/libskey/Makefile b/lib/libskey/Makefile index e9ce8be..f31f725 100644 --- a/lib/libskey/Makefile +++ b/lib/libskey/Makefile @@ -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} -.include <bsd.lib.mk> +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> diff --git a/lib/libskey/skey.h b/lib/libskey/skey.h new file mode 100644 index 0000000..e9ee453 --- /dev/null +++ b/lib/libskey/skey.h @@ -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_ */ |