/[radius]/radius/lib/radpdu.c
ViewVC logotype

Diff of /radius/lib/radpdu.c

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

revision 1.13 by gray, Fri Jul 11 08:19:56 2003 UTC revision 1.14 by gray, Fri Sep 12 13:41:09 2003 UTC
# Line 80  rad_pdu_finish(void **ptr, struct radius Line 80  rad_pdu_finish(void **ptr, struct radius
80          size_t len = sizeof(AUTH_HDR) + pdu->size;          size_t len = sizeof(AUTH_HDR) + pdu->size;
81          u_char digest[AUTH_DIGEST_LEN];          u_char digest[AUTH_DIGEST_LEN];
82                    
83          if (code != RT_AUTHENTICATION_REQUEST) {          if (code != RT_AUTHENTICATION_REQUEST && code != RT_STATUS_SERVER) {
84                  secretlen = strlen(secret);                  secretlen = strlen(secret);
85                  obstack_grow(&pdu->st, secret, secretlen);                  obstack_grow(&pdu->st, secret, secretlen);
86          }          }
# Line 97  rad_pdu_finish(void **ptr, struct radius Line 97  rad_pdu_finish(void **ptr, struct radius
97             appended to the pdu wherever necessary */             appended to the pdu wherever necessary */
98          switch (code) {          switch (code) {
99          case RT_AUTHENTICATION_REQUEST:          case RT_AUTHENTICATION_REQUEST:
100            case RT_STATUS_SERVER:
101                  memcpy(hdr->vector, vector, AUTH_VECTOR_LEN);                  memcpy(hdr->vector, vector, AUTH_VECTOR_LEN);
102                  break;                  break;
103                                    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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