Click here to Skip to main content
15,888,116 members
Articles / Programming Languages / Visual C++ 10.0

SIP Stack (1 of 3)

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
20 Aug 2012CPOL3 min read 30K   1.7K   4  
SIP Stack Implementation on the basis of RFC SIP 3261 Specification
Digest username="Alice", realm="atlanta.com", nonce="84a4cc6f3082121f32b42a2187831a9e", response="7587245234b3434cc3412213e5f113a5432"

Digest realm="biloxi.com", qop="auth,auth-int", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", opaque="5ccc069c403ebaf9f0171e9517f40e41"

Digest username="bob", realm="biloxi.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="sip:bob@biloxi.com", qop=auth, nc=00000001, cnonce="0a4f113b", response="6629fae49393a05397450978507c4ef1", opaque="5ccc069c403ebaf9f0171e9517f40e41"

$
$ some examples of www-authenticate headers...
$
Digest       username="Mufasa",  realm="testrealm@host.com",  nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", uri="/dir/index.html", response="e966c932a9242554e42c8ee200cec7f6", opaque="5ccc069c403ebaf9f0171e9517f40e41"
Digest realm="studentlev1", nonce="??????????", stale=true, algorithm=MD5
Digest realm="studentlev1", nonce="??????????", stale=true
Digest realm="%$s..c,\"", nonce="??????????"
Digest realm="%$s..c,\\\"", nonce="??????????"
Basic realm="jobs" , nonce="??????????"
Digest  realm= "studentlev1"  , nonce="??????????", stale=true , algorithm= MD5 
Digest realm="studentlev1" , nonce="??????????", stale= true
Digest realm="%$s..c,\"",   nonce ="??????????"
Digest realm="%$s..c,\\\"", nonce=  "??????????"

$
$ bad ones...
$ Missing a mandatory param: realm or value...
Basic realm="jobs"
Digest nonce="??????????"
Digest nonce="??????????", algorithm=MD5
Digest nonce="??????????", stale=true, algorithm=MD5

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
Hatim Haidry

VC++, Technical Architect

India

haidryhatim@gmail.com

Comments and Discussions