From dev-return-25027-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Sat Sep 8 15:19:21 2012 Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5449AD2D5 for ; Sat, 8 Sep 2012 15:19:21 +0000 (UTC) Received: (qmail 82721 invoked by uid 500); 8 Sep 2012 15:19:20 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 82662 invoked by uid 500); 8 Sep 2012 15:19:20 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 82654 invoked by uid 99); 8 Sep 2012 15:19:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2012 15:19:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of minfrin@sharp.fm designates 174.143.229.200 as permitted sender) Received: from [174.143.229.200] (HELO chandler.sharp.fm) (174.143.229.200) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2012 15:19:13 +0000 Received: from chandler.sharp.fm (localhost [127.0.0.1]) by chandler.sharp.fm (Postfix) with ESMTP id 1250A5580DD; Sat, 8 Sep 2012 10:18:52 -0500 (CDT) Received: from [10.249.43.29] (unknown [82.132.245.232]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: minfrin@sharp.fm) by chandler.sharp.fm (Postfix) with ESMTP id B8DA95580DB; Sat, 8 Sep 2012 10:18:51 -0500 (CDT) References: <201209072158.36668.sf@sfritsch.de> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: Cc: "dev@apr.apache.org" X-Mailer: iPhone Mail (9B206) From: Graham Leggett Subject: Re: crypt_r versus macosx Date: Sat, 8 Sep 2012 16:18:46 +0100 To: Jeff Trawick X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org On 8 Sep 2012, at 13:46, Jeff Trawick wrote: > Also, on platforms where OpenSSL is installed in a usual location, you onl= y need >=20 > --with-crypto --with-openssl >=20 > Why does it work like this? APR-Util supports either NSS or OpenSSL > libraries (or presumably others in the future) and forces you to > choose which one. At no point are you forced to choose which one, you can choose one, either o= r both. A packager would compile both so the end user can choose at runtime which li= brary to use. A developer would choose both so that the unit tests that test cross compati= bility would run. > Adding "Specify the crypto library using --with-openssl or --with-nss" > to the "Crypto was requested but no crypto library was enabled" > message will definitely help. +1. > Possibly defaulting to --with-openssl if --with-crypto is requested > but neither library is specified would be fine. Ideally have them all defaulted to on, however my understanding is that "def= ault on" wasn't a good thing for crypto code. (would he happy if this proves= not to be needed, default on is easier for end users) Regards, Graham --