Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 79573 invoked from network); 27 May 2004 13:01:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 May 2004 13:01:13 -0000 Received: (qmail 29163 invoked by uid 500); 27 May 2004 13:01:02 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 29036 invoked by uid 500); 27 May 2004 13:00:59 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 28982 invoked by uid 98); 27 May 2004 13:00:59 -0000 X-Qmail-Scanner-Mail-From: rbb@rkbloom.net via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(24.211.145.52):. Processed in 0.146373 secs) Date: Thu, 27 May 2004 08:41:42 -0400 (EDT) From: To: "William A. Rowe, Jr." cc: Stas Bekman , APR Development Subject: Re: apr_password_validate on win32 silently mishandles crypted hashes In-Reply-To: <6.1.0.6.2.20040526221515.0513ec88@pop3.rowe-clan.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, 26 May 2004, William A. Rowe, Jr. wrote: > At 09:05 PM 5/26/2004, Stas Bekman wrote: > > >I've posted the following wording: > > > >/** > > * Validate hashes created by APR-supported algorithms: md5 and base64. > > * hashes created by crypt are supported only on platforms that provide > > * crypt(3), so don't rely on that function unless you know that your > > * application will be run only on platforms that support it. > > * @param passwd The password to validate > > * @param hash The password to validate against > > */ > > > >Is that good enough? > > _Please_ use @bug to document any platform specific, unpredictable, > or wildly incorrect behavior. The days of /* XXX: */ should be long gone > now that doxygen will tabulate all our problems for us :) One more time now, this isn't a bug. Labeling platform specific behaviour a bug isn't correct. Especially not in this case, where the code works, it just doesn't accept all possible data on some platforms. This wording looks fine to me. I'll try to apply it tonight (no promises at all, between a wife who is due today and house guests, coding time is probably shot to hell for a while, so somebody else should try to beat me to this). Ryan