commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/auth DigestScheme.java
Date Thu, 11 Dec 2003 00:56:38 GMT
mbecke      2003/12/10 16:56:38

  Modified:    httpclient/src/java/org/apache/commons/httpclient/auth Tag:
                        HTTPCLIENT_2_0_BRANCH DigestScheme.java
  Log:
  Adds support for ISO-8859-1 digest passwords.
  
  PR: 24671
  Submitted by: Michael Becke
  Reviewed by: Oleg Kalnichevski
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.6   +5 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/auth/DigestScheme.java
  
  Index: DigestScheme.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/auth/DigestScheme.java,v
  retrieving revision 1.4.2.5
  retrieving revision 1.4.2.6
  diff -u -r1.4.2.5 -r1.4.2.6
  --- DigestScheme.java	24 Nov 2003 08:48:25 -0000	1.4.2.5
  +++ DigestScheme.java	11 Dec 2003 00:56:38 -0000	1.4.2.6
  @@ -274,7 +274,7 @@
               //      ":" unq(nonce-value)
               //      ":" unq(cnonce-value)
   
  -            String tmp=encode(md5Helper.digest(HttpConstants.getBytes(
  +            String tmp=encode(md5Helper.digest(HttpConstants.getContentBytes(
                   uname + ":" + realm + ":" + pwd)));
   
               a1 = tmp + ":" + nonce + ":" + cnonce;
  @@ -282,7 +282,7 @@
               LOG.warn("Unhandled algorithm " + algorithm + " requested");
               a1 = uname + ":" + realm + ":" + pwd;
           }
  -        String md5a1 = encode(md5Helper.digest(HttpConstants.getBytes(a1)));
  +        String md5a1 = encode(md5Helper.digest(HttpConstants.getContentBytes(a1)));
           String serverDigestValue;
   
           String a2 = method + ":" + uri;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message