radclient handling digest-attributes

Diana Robert dianainfotech at yahoo.co.in
Wed Jun 27 09:18:14 CEST 2007


  hi all
 can anybody tell wat this code is trying to do. its in file radclient.c. i even read the /doc/rfc/draft-sterman-aaa-sip-00.txt 
                         case PW_DIGEST_REALM:
                         case PW_DIGEST_NONCE:
                         case PW_DIGEST_METHOD:
                         case PW_DIGEST_URI:
                         case PW_DIGEST_QOP:
                         case PW_DIGEST_ALGORITHM:
                         case PW_DIGEST_BODY_DIGEST:
                         case PW_DIGEST_CNONCE:
                         case PW_DIGEST_NONCE_COUNT:
                         case PW_DIGEST_USER_NAME:
                                 /* overlapping! */
                                 memmove(&vp->strvalue[2], &vp->strvalue[0], vp->length);
                                 vp->strvalue[0] = vp->attribute - PW_DIGEST_REALM + 1;
                                 vp->length += 2;
                                 vp->strvalue[1] = vp->length;
                                 vp->attribute = PW_DIGEST_ATTRIBUTES;
                                 break;
       
---------------------------------
 Once upon a time there was 1 GB storage on Yahoo! Mail. Click here for happy ending!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20070627/1cad6765/attachment.html>


More information about the Freeradius-Devel mailing list