/[resiprocate]/main/sip/resiprocate/dum/ServerAuthManager.cxx
ViewVC logotype

Diff of /main/sip/resiprocate/dum/ServerAuthManager.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4600 by derek, Wed May 11 23:10:19 2005 UTC revision 4601 by derek, Thu May 12 01:10:49 2005 UTC
# Line 59  Line 59 
59        else        else
60        {        {
61           InfoLog (<< "Invalid password provided " << userAuth->getUser() << " in " << userAuth->getRealm());           InfoLog (<< "Invalid password provided " << userAuth->getUser() << " in " << userAuth->getRealm());
62             InfoLog (<< "  a1 hash of password from db was " << userAuth->getA1() );
63    
64           SipMessage response;           SipMessage response;
65           Helper::makeResponse(response, *requestWithAuth, 403, "Invalid password provided");           Helper::makeResponse(response, *requestWithAuth, 403, "Invalid password provided");
# Line 69  Line 70 
70     }     }
71  }  }
72                
73                
74    bool
75    ServerAuthManager::useAuthInt() const
76    {
77       return true;
78    }
79    
80    
81  // return true if request has been consumed  // return true if request has been consumed
82  ServerAuthManager::Result  ServerAuthManager::Result
83  ServerAuthManager::handle(const SipMessage& sipMsg)  ServerAuthManager::handle(const SipMessage& sipMsg)
# Line 81  Line 90 
90           //assume TransactionUser has matched/repaired a realm           //assume TransactionUser has matched/repaired a realm
91           SipMessage* challenge = Helper::makeProxyChallenge(sipMsg,           SipMessage* challenge = Helper::makeProxyChallenge(sipMsg,
92                                                              sipMsg.header(h_RequestLine).uri().host(),                                                              sipMsg.header(h_RequestLine).uri().host(),
93                                                              true,                                                              useAuthInt(),
94                                                              false);                                                              false /*stale*/);
95           InfoLog (<< "Sending challenge to " << sipMsg.brief());           InfoLog (<< "Sending challenge to " << sipMsg.brief());
96           mDum.send(*challenge);           mDum.send(*challenge);
97           delete challenge;           delete challenge;

Legend:
Removed from v.4600  
changed lines
  Added in v.4601

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27