Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 96934 invoked from network); 25 Apr 2005 12:16:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2005 12:16:48 -0000 Received: (qmail 75097 invoked by uid 500); 25 Apr 2005 12:17:13 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 75035 invoked by uid 500); 25 Apr 2005 12:17:12 -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 75019 invoked by uid 99); 25 Apr 2005 12:17:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 25 Apr 2005 05:17:12 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j3PCGeRB021012; Mon, 25 Apr 2005 08:16:40 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3PCGeO32205; Mon, 25 Apr 2005 08:16:40 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.13.1/8.12.7) with ESMTP id j3PCGdlb022653; Mon, 25 Apr 2005 13:16:39 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.1/8.12.10/Submit) id j3PCGacw022648; Mon, 25 Apr 2005 13:16:36 +0100 Date: Mon, 25 Apr 2005 13:16:36 +0100 From: Joe Orton To: Brian Havard Cc: APR developers Subject: Re: Using OpenSSL's des_fcrypt for thread safe crypt() Message-ID: <20050425121636.GC20419@redhat.com> Mail-Followup-To: Brian Havard , APR developers References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, Apr 25, 2005 at 10:06:59PM +1000, Brian Havard wrote: > I'd like to add to apr-util the ability to use des_fcrypt from the OpenSSL > library as a possible thread-safe implementation of crypt() for systems that > have no crypt_r(). > > Does anyone have a problem with either the concept or implementation of this? With the implementation, at least, yes: - only pick up the dependency on -lcrypto on platforms which need this - keep the flag private to apr-util (i.e. use AC_CHECK_HEADERS and AC_DEFINE), it doesn't need to be exported via apu.h Is this function really thread-safe in OpenSSL even without the locking callbacks registered? Regards, joe