apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject apr_password_validate is not testing md5/sha1 in the apr test suite
Date Wed, 26 May 2004 22:53:45 GMT
So I'm trying to drop crypt and trying to write tests for the md5 and sha1 
parts of the apr_password_validate. I fail to come up with any test input that 
will pass the test. I try various md5 and sha1 functions, and none of them 
matches. Is it supposed to work only with hash values generated by apr's own 
md5 and sha1 functions? I suppose I miss something, since for example digest 
auth hash is generated by the client, and certainly can't know about apr's 

I hoped to find the tests in apr-util/test/testpass.c, but alas neither md5 
nor sha1 hashes are tested at all. Only crypt which is not available 


Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

View raw message