Searched refs:opie (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-11-stable/contrib/opie/libopie/
H A Dlookup.c17 #include "opie.h"
19 int opielookup FUNCTION((opie, principal), struct opie *opie AND char *principal)
23 memset(opie, 0, sizeof(struct opie));
24 opie->opie_principal = principal;
26 if (i = __opiereadrec(opie))
29 return (opie->opie_flags & __OPIE_FLAGS_RW) ? 0 : 2;
H A Dreadrec.c42 #include "opie.h"
44 static int parserec FUNCTION((opie), struct opie *opie) argument
48 if (!(c2 = strchr(opie->opie_principal = opie->opie_buf, ' ')))
62 opie->opie_n = strtoul(c, &c3, 10);
64 if (*c3 || (opie->opie_n <= 0) || (opie->opie_n > 9999))
68 if (!(c2 = strchr(opie
94 __opiereadrec(opie), struct opie *opie argument
[all...]
H A Dwriterec.c38 #include "opie.h"
42 int __opiewriterec FUNCTION((opie), struct opie *opie) argument
54 if (!(opie->opie_flags & __OPIE_FLAGS_READ)) {
55 struct opie opie2;
56 i = opielookup(&opie2, opie->opie_principal);
57 opie->opie_flags = opie2.opie_flags;
58 opie->opie_recstart = opie2.opie_recstart;
61 for (c = opie
[all...]
H A Dgetsequence.c22 #include "opie.h"
24 int opiegetsequence FUNCTION((stateblock), struct opie *stateblock)
H A Dpasswd.c25 #include "opie.h"
27 int opiepasswd FUNCTION((old, flags, principal, n, seed, ks), struct opie *old AND int flags AND char *principal AND int n AND char *seed AND char *ks)
30 struct opie opie; local
38 memset(&opie, 0, sizeof(struct opie));
41 opie.opie_flags = old->opie_flags;
42 opie.opie_recstart = old->opie_recstart;
45 opie.opie_principal = principal;
46 opie
[all...]
H A Dverify.c28 #include "opie.h"
53 static int changed FUNCTION((opie), struct opie *opie) argument
55 struct opie opie2;
57 memset(&opie2, 0, sizeof(struct opie));
58 opie2.opie_principal = opie->opie_principal;
62 if ((opie2.opie_n != opie->opie_n) || strcmp(opie2.opie_val, opie->opie_val) || strcmp(opie2.opie_seed, opie
[all...]
H A Dchallenge.c33 #include "opie.h"
54 int opiechallenge FUNCTION((mp, name, ss), struct opie *mp AND char *name AND char *ss)
/freebsd-11-stable/lib/libopie/
H A Dopieextra.c12 #include <opie.h>
24 struct opie opie; local
26 return opielookup(&opie, username);
42 struct opie opie; local
44 i = opiechallenge(&opie, username, str);
66 struct opie opie; local
68 i = opielookup(&opie, usernam
[all...]
H A DMakefile6 OPIE_DIST?= ${SRCTOP}/contrib/opie
14 LIB= opie
21 INCS= ${OPIE_DIST}/opie.h
33 MAN= ${OPIE_DIST}/opie.4 ${OPIE_DIST}/opiekeys.5 ${OPIE_DIST}/opieaccess.5
35 MLINKS= opie.4 skey.4
/freebsd-11-stable/lib/libpam/modules/pam_opie/
H A DMakefile32 LIBADD+= opie
H A Dpam_opie.c42 #include <opie.h>
61 struct opie opie; local
105 if (opiechallenge(&opie, principal, challenge) != 0 &&
142 retval = opieverify(&opie, response);
/freebsd-11-stable/lib/libpam/modules/pam_opieaccess/
H A DMakefile7 LIBADD+= opie
H A Dpam_opieaccess.c41 #include <opie.h>
56 struct opie opie; local
68 if (pwent == NULL || opielookup(&opie, __DECONST(char *, luser)) != 0)
/freebsd-11-stable/usr.bin/opieinfo/
H A DMakefile3 OPIE_DIST?= ${SRCTOP}/contrib/opie
13 LIBADD= opie
/freebsd-11-stable/usr.bin/opiepasswd/
H A DMakefile3 OPIE_DIST?= ${SRCTOP}/contrib/opie
13 LIBADD= opie
/freebsd-11-stable/contrib/opie/
H A Dopiepasswd.c67 #include "opie.h"
87 struct opie opie; local
91 if (opiechallenge(&opie, name, buf)) {
95 printf("\nID %s ", opie.opie_principal);
96 if (opie.opie_val && (opie.opie_val[0] == '*')) {
100 printf("OTP key is %d %s\n", opie.opie_n, opie.opie_seed);
104 if (!opieatob8(&key, opie
118 struct opie opie; local
[all...]
H A Dopieinfo.c46 #include "opie.h"
66 struct opie opie; local
94 if ((i = opielookup(&opie, username)) && (i != 2)) {
102 printf("%d %s\n", opie.opie_n - 1, opie.opie_seed);
H A Dopie.h0 /* opie.h: Data structures and values for the OPIE authentication
25 re-init key and extension file fields to struct opie. Added
26 opie_ prefix on struct opie members. Added opie_flags field
45 struct opie { struct
119 int opiechallenge __P((struct opie *,char *,char *));
121 int opiegetsequence __P((struct opie *));
129 int opielookup __P((struct opie *,char *));
135 int opieverify __P((struct opie *,char *));
136 int opiepasswd __P((struct opie *, int, char *, int, char *, char *));
161 int __opiereadrec __P((struct opie *));
[all...]
H A Dopieserv.c20 #include "opie.h"
24 struct opie opie; local
43 switch (result = opiechallenge(&opie, principal, challenge)) {
69 switch (result = opieverify(&opie, response)) {
H A Dopiesu.c100 #include "opie.h"
246 struct opie opie; local
400 i = opiechallenge(&opie, user, opieprompt);
431 int i = opiegetsequence(&opie);
432 if (!opieverify(&opie, pbuf)) {
444 opieverify(&opie, "");
H A Dopietest.c31 #include "opie.h"
117 struct opie testin;
282 printf("(%2d/%2d) testing opie%s... ", testn++, ntests, opietest->n);
306 printf(" opie%s\n", opietest->n);
H A Dopielogin.c154 #include "opie.h"
219 static struct opie opie; variable in typeref:struct:opie
327 opieverify(&opie, NULL);
1098 i = opiechallenge(&opie, name, opieprompt);
1160 i = opiegetsequence(&opie);
1161 opiepassed = !opieverify(&opie, buf);
/freebsd-11-stable/usr.bin/opiekey/
H A DMakefile3 OPIE_DIST?= ${SRCTOP}/contrib/opie
13 LIBADD= opie
/freebsd-11-stable/libexec/ftpd/
H A DMakefile19 LIBADD+= opie md
/freebsd-11-stable/share/mk/
H A Dsrc.libnames.mk135 opie \
279 _DP_pam= radius tacplus opie md util

Completed in 211 milliseconds

12