Hi Jan, just a typo in the URL you sent..
http://www.ietf.org/rfc/rfc2617.txt instead of http://www.ietf.rfc/rfc2617.txt
Best Regards
Atle Samuelsen
* Jan Janak jan@iptel.org [040826 07:15]:
On 25-08 13:37, Brian OBrien wrote:
I have a www-Authenticate.
Www-Authenticate: Digest realm="server.com", nonce="411ac7155bd4a57a466c529317257f43c969fafd"
username="user",realm="server.com",nonce="411ac7155bd4a57a466c529317257f43c969fafd",response="0a050e02120f490e9c407ccea22058e0",uri="sip:server.com"
I am trying to figure out the parameters to:
DigestCalcHA1 and DigestCalcResponse.
The value of nonce and realm parameters must match the digest challenge above. uri parameter is the Request-URI of the SIP message containing the digest credentials.
The parameters to DigestCalcHA1 are the username obtained from some database (this is the value of the username attribute), realm value obtained from the digest challenge, password from the same database, the value of the nonce attribute from the digest challenge.
The function will return a string that will then be the input to the second function, DigestCalcResponse that will calculate the value of the response attribute.
Exact description of the algorithm can be found in http://www.ietf.rfc/rfc2617.txt
Jan.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers