(file) Return to ClientAuthenticator.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Client

Diff for /pegasus/src/Pegasus/Client/ClientAuthenticator.cpp between version 1.44 and 1.45

version 1.44, 2008/12/02 09:00:19 version 1.45, 2008/12/18 18:52:00
Line 54 
Line 54 
 /** /**
     Constant representing the authentication challenge header.     Constant representing the authentication challenge header.
 */ */
 static const String WWW_AUTHENTICATE = "WWW-Authenticate";  static const char* WWW_AUTHENTICATE = "WWW-Authenticate";
  
 /** /**
     Constant representing the Basic authentication header.     Constant representing the Basic authentication header.
Line 98 
Line 98 
     //     //
     // Search for "WWW-Authenticate" header:     // Search for "WWW-Authenticate" header:
     //     //
     String authHeader;      const char* authHeader;
     String authType;     String authType;
     String authRealm;     String authRealm;
  
Line 393 
Line 393 
 } }
  
 Boolean ClientAuthenticator::_parseAuthHeader( Boolean ClientAuthenticator::_parseAuthHeader(
     const String authHeader,      const char* authHeader,
     String& authType,     String& authType,
     String& authRealm)     String& authRealm)
 { {
     CString header = authHeader.getCString();  
     const char* pAuthHeader = header;  
   
     //     //
     // Skip the white spaces in the begining of the header     // Skip the white spaces in the begining of the header
     //     //
     while (*pAuthHeader && isspace(*pAuthHeader))      while (*authHeader && isspace(*authHeader))
     {     {
         *pAuthHeader++;          *authHeader++;
     }     }
  
     //     //
     // Get the authentication type     // Get the authentication type
     //     //
     String type = _getSubStringUptoMarker(&pAuthHeader, CHAR_BLANK);      String type = _getSubStringUptoMarker(&authHeader, CHAR_BLANK);
  
     if (!type.size())     if (!type.size())
     {     {
Line 421 
Line 418 
     //     //
     // Ignore the start quote     // Ignore the start quote
     //     //
     _getSubStringUptoMarker(&pAuthHeader, CHAR_QUOTE);      _getSubStringUptoMarker(&authHeader, CHAR_QUOTE);
  
  
     //     //
     // Get the realm ending with a quote     // Get the realm ending with a quote
     //     //
     String realm = _getSubStringUptoMarker(&pAuthHeader, CHAR_QUOTE);      String realm = _getSubStringUptoMarker(&authHeader, CHAR_QUOTE);
  
     if (!realm.size())     if (!realm.size())
     {     {


Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2