Home | History | Annotate | Download | only in racoon

Lines Matching refs:iph1

121 xauth_sendreq(iph1)
122 struct ph1handle *iph1;
129 struct xauth_state *xst = &iph1->mode_cfg->xauth;
133 if (iph1->status < PHASE1ST_ESTABLISHED) {
176 isakmp_cfg_send(iph1, buffer,
187 xauth_attr_reply(iph1, attr, id)
188 struct ph1handle *iph1;
195 struct xauth_state *xst = &iph1->mode_cfg->xauth;
197 if ((iph1->mode_cfg->flags & ISAKMP_CFG_VENDORID_XAUTH) == 0) {
266 strncpy(iph1->mode_cfg->login, usr, LOGINLEN);
267 iph1->mode_cfg->login[LOGINLEN] = '\0';
270 if ((port = isakmp_cfg_getport(iph1)) == -1) {
282 res = xauth_login_radius(iph1, usr, pwd);
287 res = privsep_xauth_login_pam(iph1->mode_cfg->port,
288 iph1->remote, usr, pwd);
293 res = xauth_login_ldap(iph1, usr, pwd);
307 res = group_check(iph1,
315 throttle_delay = throttle_host(iph1->remote, res);
319 str = saddrwop2str(iph1->remote);
336 return xauth_reply(iph1, port, id, res);
344 xra->index = iph1->index;
351 return xauth_reply(iph1, port, id, res);
363 struct ph1handle *iph1;
365 if ((iph1 = getph1byindex(&xra->index)) != NULL)
366 (void)xauth_reply(iph1, xra->port, xra->id, xra->res);
375 xauth_reply(iph1, port, id, res)
376 struct ph1handle *iph1;
380 struct xauth_state *xst = &iph1->mode_cfg->xauth;
385 isakmp_cfg_putport(iph1, port);
390 xauth_sendstatus(iph1, XAUTH_STATUS_FAIL, id);
394 if (iph1->status >= PHASE1ST_ESTABLISHED)
395 isakmp_info_send_d1(iph1);
396 remph1(iph1);
397 delph1(iph1);
406 xauth_sendstatus(iph1, XAUTH_STATUS_OK, id);
412 xauth_sendstatus(iph1, status, id)
413 struct ph1handle *iph1;
441 isakmp_cfg_send(iph1, buffer,
563 xauth_login_radius(iph1, usr, pwd)
564 struct ph1handle *iph1;
594 if (isakmp_cfg_radius_common(radius_auth_state, iph1->mode_cfg->port) != 0)
602 iph1->mode_cfg->addr4 = rad_cvt_addr(data);
603 iph1->mode_cfg->flags
608 iph1->mode_cfg->mask4 = rad_cvt_addr(data);
609 iph1->mode_cfg->flags
870 xauth_login_ldap(iph1, usr, pwd)
871 struct ph1handle *iph1;
1024 iph1->mode_cfg->xauth.udn = racoon_malloc(strlen(userdn)+1);
1025 strcpy(iph1->mode_cfg->xauth.udn,userdn);
1040 iph1->mode_cfg->addr4.s_addr = inet_addr(tmpaddr);
1041 iph1->mode_cfg->flags |= ISAKMP_CFG_ADDR4_EXTERN;
1060 iph1->mode_cfg->mask4.s_addr = inet_addr(tmpmask);
1061 iph1->mode_cfg->flags |= ISAKMP_CFG_MASK4_EXTERN;
1329 xauth_check(iph1)
1330 struct ph1handle *iph1;
1332 struct xauth_state *xst = &iph1->mode_cfg->xauth;
1339 switch (iph1->approval->authmethod) {
1348 if ((iph1->mode_cfg->flags & ISAKMP_CFG_VENDORID_XAUTH) == 0) {
1373 group_check(iph1, grp_list, grp_count)
1374 struct ph1handle *iph1;
1384 if(iph1->mode_cfg == NULL) {
1396 usr = iph1->mode_cfg->xauth.authdata.generic.usr;
1417 iph1->mode_cfg->xauth.udn,
1447 isakmp_xauth_req(iph1, attr)
1448 struct ph1handle *iph1;
1463 if ((iph1->mode_cfg->flags & ISAKMP_CFG_VENDORID_XAUTH) == 0) {
1492 if (!iph1->rmconf->xauth || !iph1->rmconf->xauth->login) {
1498 dlen = iph1->rmconf->xauth->login->l - 1;
1499 iph1->rmconf->xauth->state |= XAUTH_SENT_USERNAME;
1506 if (!iph1->rmconf->xauth || !iph1->rmconf->xauth->login)
1510 usr = vmalloc(iph1->rmconf->xauth->login->l - 1 + skip);
1518 iph1->rmconf->xauth->login->v,
1519 iph1->rmconf->xauth->login->l - 1);
1521 if (iph1->rmconf->xauth->pass) {
1523 pwd = iph1->rmconf->xauth->pass;
1528 iph1->rmconf->xauth->login->v);
1537 iph1->rmconf->xauth->state |= XAUTH_SENT_PASSWORD;
1548 plog(LLV_ERROR, LOCATION, iph1->remote,
1552 plog(LLV_NOTIFY,LOCATION, iph1->remote,
1586 * iph1->rmconf->xauth->login->v is valid,
1589 memcpy(data, iph1->rmconf->xauth->login->v, dlen);
1609 isakmp_xauth_set(iph1, attr)
1610 struct ph1handle *iph1;
1620 if ((iph1->mode_cfg->flags & ISAKMP_CFG_VENDORID_XAUTH) == 0) {
1635 xst = &iph1->mode_cfg->xauth;
1636 switch (iph1->approval->authmethod) {
1653 /* If we got a failure, delete iph1 */
1658 evt_phase1(iph1, EVT_PHASE1_XAUTH_FAILED, NULL);
1660 iph1->mode_cfg->flags |= ISAKMP_CFG_DELETE_PH1;
1662 evt_phase1(iph1, EVT_PHASE1_XAUTH_SUCCESS, NULL);
1675 plog(LLV_ERROR, LOCATION, iph1->remote,
1679 plog(LLV_NOTIFY,LOCATION, iph1->remote,