httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jones" <oscare...@gmail.com>
Subject Re: PATCH: support utilities should enable crypt() , current htdbm checks broken
Date Tue, 20 Mar 2007 17:53:09 GMT
Re: Jeff's last note, yes httpd does call crypt() directly,

Any other questions that need discussion / resolution?

David Jones
--
oscaremma@gmail.com


On 3/16/07, Jeff Trawick <trawick@gmail.com> wrote:
>
> On 3/16/07, William A. Rowe, Jr. <wrowe@rowe-clan.net> wrote:
> > Jeff Trawick wrote:
> > >
> > > APR doesn't pretend to figure out for APR apps exactly what the system
> > > provides, though there is currently a spotty set of APR_HAS_foo.
> > >
> > > Meanwhile, httpd goes and searches on its own for things APR doesn't
> > > tell anyone about.  I'm curious about other opinions on whether or not
> > > it is APR's job to tell what is available.
> >
> > In httpd, we don't call crypt(), we call APR
>
> maybe this is the point of confusion...
>
> httpd does call crypt()
>
> $ grep crypt support/*c
> ...
> support/htdbm.c:            apr_cpystrn(cpw, crypt(htdbm->userpass,
> salt), sizeof(cpw) - 1);
> ...
> support/htpasswd.c:        apr_cpystrn(cpw, crypt(pw, salt), sizeof(cpw) -
> 1);
> ...
>

Mime
View raw message