Hi sandip

Values for stale and algorithm need not be in double quotes. 

Ranjit

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of sandip
Sent: Tuesday, September 16, 2003 2:56 PM
To: [EMAIL PROTECTED]
Subject: [Sip-implementors] WWW-Authenticate decoding problem


Hi All,
Got a problem with the decoding of WWW-Authenticate header.

I think, for WWW-Authenticate header the grammer ( ABNF ) has
contradiction with the example shown in RFC 3261 for the following
parameters. 1. stale 2. algorithm

For both of these challenge parameters, ABNF(page 231,section 25.1, RFC
3261) dictates the values for these are to be given as a double-quoted
string. But the examples given in the RFC does not have a double-quoted
value for those. So I am at confusion. This makes disorder resulting
from a failure to behave predictably the header decoding.

Please suggest me what to accept.

TIA,
Sandip




Examples Given in RFC (3261) :

WWW-Authenticate: Digest realm="atlanta.com",
        domain="sip:boxesbybob.com", qop="auth",
        nonce="f84f1cec41e6cbe5aea9c8e88d359",
        opaque="", stale=FALSE, algorithm=MD5





BNF says the grammar for the header as :

WWW-Authenticate = "WWW-Authenticate" HCOLON challenge

challenge           =  ("Digest" LWS digest-cln *(COMMA digest-cln))
                       / other-challenge
other-challenge     =  auth-scheme LWS auth-param
                       *(COMMA auth-param)
digest-cln          =  realm / domain / nonce
                        / opaque / stale / algorithm
                        / qop-options / auth-param
realm               =  "realm" EQUAL realm-value
realm-value         =  quoted-string
domain              =  "domain" EQUAL LDQUOT URI
                       *( 1*SP URI ) RDQUOT
URI                 =  absoluteURI / abs-path
nonce               =  "nonce" EQUAL nonce-value
nonce-value         =  quoted-string
opaque              =  "opaque" EQUAL quoted-string
stale               =  "stale" EQUAL ( "true" / "false" )
algorithm           =  "algorithm" EQUAL ( "MD5" / "MD5-sess"
                       / token )


_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to