Searched refs:chap (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-11-stable/usr.sbin/ppp/
H A Dchap.c30 * $FreeBSD: stable/11/usr.sbin/ppp/chap.c 330449 2018-03-05 07:26:05Z eadler $
70 #include "chap.h"
258 chap_StartChild(struct chap *chap, char *prog, const char *name) argument
265 if (chap->child.fd != -1) {
283 switch ((chap->child.pid = fork())) {
290 chap->child.pid = 0;
322 chap->auth.physical->dl->bundle, 0, pid);
330 chap->child.fd = out[0];
331 chap
344 chap_Cleanup(struct chap *chap, int sig) argument
370 chap_Respond(struct chap *chap, char *name, char *key , u_char type, int lm ) argument
401 struct chap *chap = descriptor2chap(d); local
417 struct chap *chap = descriptor2chap(d); local
426 struct chap *chap = descriptor2chap(d); local
491 struct chap *chap = auth2chap(authp); local
528 struct chap *chap = auth2chap(authp); local
657 chap_HaveAnotherGo(struct chap *chap) argument
671 chap_Init(struct chap *chap, struct physical *p) argument
689 chap_ReInit(struct chap *chap) argument
698 struct chap *chap = &p->dl->chap; local
[all...]
H A Dchap.h30 * $FreeBSD: stable/11/usr.sbin/ppp/chap.h 330449 2018-03-05 07:26:05Z eadler $
41 struct chap { struct
64 ((d)->type == CHAP_DESCRIPTOR ? (struct chap *)(d) : NULL)
66 ((struct chap *)((char *)a - (uintptr_t)&((struct chap *)0)->auth))
75 extern void chap_Init(struct chap *, struct physical *);
76 extern void chap_ReInit(struct chap *);
H A Ddatalink.h119 struct chap chap; /* Authentication using chap */ member in struct:datalink
H A DMakefile7 SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \
H A Ddatalink.c78 #include "chap.h"
409 result = descriptor_UpdateSet(&dl->chap.desc, r, w, e, n) +
443 return descriptor_IsSet(&dl->chap.desc, fdset) ? 1 :
471 if (descriptor_IsSet(&dl->chap.desc, fdset))
472 descriptor_Read(&dl->chap.desc, bundle, fdset);
506 if (descriptor_IsSet(&dl->chap.desc, fdset))
507 switch (descriptor_Write(&dl->chap.desc, bundle, fdset)) {
591 auth_StartReq(&dl->chap.auth);
602 auth_StopTimer(&dl->chap.auth);
603 chap_ReInit(&dl->chap);
[all...]
H A Dauth.c81 #include "chap.h"
92 static char chap[10]; local
98 snprintf(chap, sizeof chap, "CHAP 0x%02x", type);
99 return chap;
H A Dcommand.c101 #include "chap.h"
2088 &cx->chap.auth.cfg.fsm.timeout,
2089 &cx->chap.auth.cfg.fsm.maxreq, NULL, DEF_FSMAUTHTRIES);
3023 {"chap", "chap05", NegotiateSet, LOCAL_AUTH | LOCAL_CX,
/freebsd-11-stable/usr.sbin/ctld/
H A Dchap.c34 __FBSDID("$FreeBSD: stable/11/usr.sbin/ctld/chap.c 332595 2018-04-16 16:14:05Z trasz $");
232 struct chap *
235 struct chap *chap; local
237 chap = calloc(1, sizeof(*chap));
238 if (chap == NULL)
244 arc4random_buf(chap->chap_challenge, sizeof(chap->chap_challenge));
245 arc4random_buf(&chap
251 chap_get_id(const struct chap *chap) argument
264 chap_get_challenge(const struct chap *chap) argument
275 chap_receive_bin(struct chap *chap, void *response, size_t response_len) argument
290 chap_receive(struct chap *chap, const char *response) argument
310 chap_authenticate(struct chap *chap, const char *secret) argument
327 chap_delete(struct chap *chap) argument
[all...]
H A Dtoken.l58 chap { return CHAP; }
59 chap-mutual { return CHAP_MUTUAL; }
H A Dctld.h254 struct chap *conn_chap;
276 struct chap { struct
289 struct chap *chap_new(void);
290 char *chap_get_id(const struct chap *chap);
291 char *chap_get_challenge(const struct chap *chap);
292 int chap_receive(struct chap *chap, const char *response);
293 int chap_authenticate(struct chap *cha
[all...]
H A DMakefile9 SRCS= chap.c ctld.c discovery.c isns.c kernel.c keys.c log.c
H A Dlogin.c258 login_send_chap_c(struct pdu *request, struct chap *chap) argument
264 chap_c = chap_get_challenge(chap);
265 chap_i = chap_get_id(chap);
282 struct chap *chap, const struct auth **authp)
304 error = chap_receive(chap, chap_r);
325 error = chap_authenticate(chap, auth->a_secret);
408 struct chap *chap; local
281 login_receive_chap_r(struct connection *conn, struct auth_group *ag, struct chap *chap, const struct auth **authp) argument
[all...]
/freebsd-11-stable/usr.sbin/iscsid/
H A Dchap.c34 __FBSDID("$FreeBSD: stable/11/usr.sbin/iscsid/chap.c 332616 2018-04-16 17:14:42Z trasz $");
232 struct chap *
235 struct chap *chap; local
237 chap = calloc(1, sizeof(*chap));
238 if (chap == NULL)
244 arc4random_buf(chap->chap_challenge, sizeof(chap->chap_challenge));
245 arc4random_buf(&chap
251 chap_get_id(const struct chap *chap) argument
264 chap_get_challenge(const struct chap *chap) argument
275 chap_receive_bin(struct chap *chap, void *response, size_t response_len) argument
290 chap_receive(struct chap *chap, const char *response) argument
310 chap_authenticate(struct chap *chap, const char *secret) argument
327 chap_delete(struct chap *chap) argument
[all...]
H A Discsid.h69 struct chap *conn_mutual_chap;
91 struct chap { struct
104 struct chap *chap_new(void);
105 char *chap_get_id(const struct chap *chap);
106 char *chap_get_challenge(const struct chap *chap);
107 int chap_receive(struct chap *chap, const char *response);
108 int chap_authenticate(struct chap *cha
[all...]
H A DMakefile5 SRCS= chap.c discovery.c iscsid.c keys.c log.c login.c pdu.c
/freebsd-11-stable/tools/regression/iscsi/
H A Dctl.conf2 chap user secretsecret
/freebsd-11-stable/contrib/netbsd-tests/net/if_pppoe/
H A Dt_pppoe.sh140 if [ $auth = "chap" ]; then
250 atf_set "descr" "Does simple chap tests"
256 run_test chap
271 if [ $auth = "chap" ]; then
396 atf_set "descr" "Does simple chap using IPv6 tests"
402 run_test6 chap
/freebsd-11-stable/sys/net/
H A Dif_spppsubr.c92 * being one of "lcp", "ipcp", "cisco", "chap", "pap", etc.
436 static const struct cp chap = { variable in typeref:struct:cp
437 PPP_CHAP, IDX_CHAP, CP_AUTH, "chap",
449 &chap, /* IDX_CHAP */
2306 log(-1, "[invalid chap len] ");
2423 log(-1, "[chap not MD5] ");
2753 char opt[6 /* magicnum */ + 4 /* mru */ + 5 /* chap */];
3936 * RCA+: received reply (pap-req, chap-response), acceptable
3937 * RCN: received reply (pap-req, chap-response), not acceptable
3942 * scr: send request packet (none for PAP, chap
[all...]
/freebsd-11-stable/usr.sbin/wpa/hostapd/
H A DMakefile23 chap.c \
/freebsd-11-stable/usr.sbin/wpa/wpa_supplicant/
H A DMakefile81 SRCS+= chap.c \
/freebsd-11-stable/share/examples/
H A DMakefile131 ppp/chap-auth \
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dnmake.mak88 $(OBJDIR)\chap.obj \
H A DAndroid.mk1012 OBJS += src/eap_common/chap.c
/freebsd-11-stable/contrib/gcc/doc/include/
H A Dtexinfo.tex1345 \advancenumber{chap\thischapnum}%
1378 \dopdfoutline{##1}{count-\expnumber{chap##2}}{##3}{##4}}%
1687 \def\lsize{chap}\def\lllsize{subsec}%
1695 \def\curfontsize{chap}%
4566 % arguments for the \{chap,sec,...}entry macros which will eventually
6743 % Remember to reset this floatno at the next chap.
/freebsd-11-stable/contrib/groff/doc/
H A Dtexinfo.tex1250 \advancenumber{chap\thischapnum}%
1283 \dopdfoutline{##1}{count-\expnumber{chap##2}}{##3}{##4}}%
1621 \def\lsize{chap}\def\lllsize{subsec}%
1629 \def\curfontsize{chap}%
4464 % arguments for the \{chap,sec,...}entry macros which will eventually
6614 % Remember to reset this floatno at the next chap.

Completed in 272 milliseconds

12