• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/plugins/radius/

Lines Matching refs:vp

77 static int radius_setparams(VALUE_PAIR *vp, char *msg, REQUEST_INFO *req_info,
87 static int radius_setmppekeys(VALUE_PAIR *vp, REQUEST_INFO *req_info,
89 static int radius_setmppekeys2(VALUE_PAIR *vp, REQUEST_INFO *req_info);
117 VALUE_PAIR *avp; /* Additional (user supplied) vp's to send to server */
180 /* Append to a list of vp's for later parsing */
282 /* Add user specified vp's */
457 /* Add user specified vp's */
525 * vp -- received value-pairs
533 radius_setparams(VALUE_PAIR *vp, char *msg, REQUEST_INFO *req_info,
547 (*radius_attributes_hook)(vp);
555 while (vp) {
556 if (vp->vendorcode == VENDOR_NONE) {
557 switch (vp->attribute) {
561 if (vp->lvalue != PW_FRAMED) {
563 vp->lvalue, rstate.user);
571 if (vp->lvalue != PW_PPP) {
573 vp->lvalue, rstate.user);
580 maxconnect = vp->lvalue;
585 maxoctets = vp->lvalue;
589 maxoctets_dir = ( vp->lvalue > 4 ) ? 0 : vp->lvalue ;
594 rstate.acct_interim_interval = vp->lvalue;
604 remote = vp->lvalue;
610 remote = htonl(vp->lvalue);
622 if (vp->lvalue <= MAXCLASSLEN) {
623 rstate.class_len=vp->lvalue;
624 memcpy(rstate.class, vp->strvalue, rstate.class_len);
631 } else if (vp->vendorcode == VENDOR_MICROSOFT) {
632 switch (vp->attribute) {
634 if ((vp->lvalue != 43) || strncmp(vp->strvalue + 1, "S=", 2)) {
639 strlcpy(message, vp->strvalue + 1, message_space);
645 if (radius_setmppekeys(vp, req_info, challenge) < 0) {
655 if (radius_setmppekeys2(vp, req_info) < 0) {
658 (vp->attribute == PW_MS_MPPE_SEND_KEY)?
666 mppe_enc_policy = vp->lvalue; /* save for later */
670 mppe_enc_types = vp->lvalue; /* save for later */
684 vp = vp->next;
711 * vp -- value pair holding MS-CHAP-MPPE-KEYS attribute
720 radius_setmppekeys(VALUE_PAIR *vp, REQUEST_INFO *req_info,
728 if (vp->lvalue != 32) {
730 vp->lvalue);
734 memcpy(plain, vp->strvalue, sizeof(plain));
746 MD5Update(&Context, vp->strvalue, 16);
765 * vp -- value pair holding MS-MPPE-SEND-KEY or MS-MPPE-RECV-KEY attribute
774 radius_setmppekeys2(VALUE_PAIR *vp, REQUEST_INFO *req_info)
778 u_char *salt = vp->strvalue;
779 u_char *crypt = vp->strvalue + 2;
784 if (vp->attribute == PW_MS_MPPE_RECV_KEY)
787 if (vp->lvalue != 34) {
789 vp->lvalue, type);
822 if (vp->attribute == PW_MS_MPPE_SEND_KEY)
891 /* Add user specified vp's */
991 /* Add user specified vp's */
1087 /* Add user specified vp's */