[Rt-commit] [svn] r789 - in RT-Client: . lib/RT

autrijus at pallas.eruditorum.org autrijus at pallas.eruditorum.org
Sat May 1 09:21:55 EDT 2004


Author: autrijus
Date: Sat May  1 09:21:55 2004
New Revision: 789

Modified:
   RT-Client/   (props changed)
   RT-Client/lib/RT/Client.pm
Log:
 ----------------------------------------------------------------------
 r4336 at not:  autrijus | 2004-05-01T13:21:33.157713Z
 
 * use MD5, not SHA1, for password digesting, so we can remain
   compatible to HTTP Digest authentication.
 
 ----------------------------------------------------------------------


Modified: RT-Client/lib/RT/Client.pm
==============================================================================
--- RT-Client/lib/RT/Client.pm	(original)
+++ RT-Client/lib/RT/Client.pm	Sat May  1 09:21:55 2004
@@ -12,7 +12,6 @@
 use XML::Atom::Client;
 
 use Digest::MD5 qw( md5_hex );
-use Digest::SHA1 qw( sha1_hex );
 use constant BASE_URI => 'REST/2.0';
 
 =head1 NAME
@@ -122,7 +121,7 @@
         die 'Must set $self->username before retrieving $self->password';
     }
 
-    return sha1_hex(join(':', $username, $realm, md5_hex($self->{password})));
+    return md5_hex(join(':', $username, $realm, md5_hex($self->{password})));
 }
 
 sub realm {


More information about the Rt-commit mailing list