radclient handling digest-attributes
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!
Diana Robert wrote:
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
It's packing the data into the attributes. The code isn't in src/lib/radius.c, but could perhaps be there. Alan DeKok.
participants (2)
-
Alan DeKok -
Diana Robert