Stas Bekman wrote:

>
>Can you take a look at apr_password_validate and see why it doesn't validate 
>on windows?
>
Doh! -- it contains this:

#if defined(WIN32) || defined(BEOS) || defined(NETWARE)
        apr_cpystrn(sample, passwd, sizeof(sample) - 1);
#elif...

so the below patch makes it pass on Win32.  Is mp2 supported on BeOS / 
NetWare?

- Steve

Index: t/response/TestAPR/util.pm
===================================================================
RCS file: /home/cvspublic/modperl-2.0/t/response/TestAPR/util.pm,v
retrieving revision 1.8
diff -u -r1.8 util.pm
--- t/response/TestAPR/util.pm  22 May 2004 21:47:32 -0000      1.8
+++ t/response/TestAPR/util.pm  25 May 2004 10:19:32 -0000
@@ -23,7 +23,7 @@
     ok ! APR::Util::password_validate("one", "two");

     my $clear = "pass1";
-    my $hash  = "1fWDc9QWYCWrQ";
+    my $hash = $^O =~ /MSWin32/ ? $clear : "1fWDc9QWYCWrQ";
     ok APR::Util::password_validate($clear, $hash);

     Apache::OK;




------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender immediately.  The 
unauthorized use, disclosure, copying or alteration of this message is strictly 
forbidden.  Note that any views or opinions presented in this email are solely those 
of the author and do not necessarily represent those of Radan Computational Ltd.  The 
recipient(s) of this message should check it and any attached files for viruses: Radan 
Computational will accept no liability for any damage caused by any virus transmitted 
by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to