/[radius]/radius/radiusd/radius.c
ViewVC logotype

Diff of /radius/radiusd/radius.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by gray, Tue Jun 10 08:06:42 2003 UTC revision 1.51 by gray, Tue Jun 10 13:10:45 2003 UTC
# Line 154  radius_req_decode(struct sockaddr_in *sa Line 154  radius_req_decode(struct sockaddr_in *sa
154          if (!radreq)          if (!radreq)
155                  return 1;                  return 1;
156    
157            /* RFC 2865 p. 2.2:
158               The random challenge can either be included in the
159               CHAP-Challenge attribute or, if it is 16 octets long,
160               it can be placed in the Request Authenticator field of
161               the Access-Request packet. */
162    
163            if (avl_find(radreq->request, DA_CHAP_PASSWORD)
164                && !avl_find(radreq->request, DA_CHAP_CHALLENGE)) {
165                    VALUE_PAIR *p = avp_create_binary(DA_CHAP_CHALLENGE,
166                                                      AUTH_VECTOR_LEN,
167                                                      radreq->vector);
168                    avl_add_pair(&radreq->request, p);
169            }
170            
171          *output = radreq;          *output = radreq;
172          return 0;          return 0;
173  }  }

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26