Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 56210 invoked from network); 3 Jan 2009 17:21:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2009 17:21:19 -0000 Received: (qmail 85546 invoked by uid 500); 3 Jan 2009 17:21:19 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 85533 invoked by uid 500); 3 Jan 2009 17:21:19 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 85523 invoked by uid 99); 3 Jan 2009 17:21:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 09:21:19 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 17:21:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5B5F223888F1; Sat, 3 Jan 2009 09:20:50 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r731027 - in /apr/apr-util/trunk: CHANGES include/apr_crypto.h Date: Sat, 03 Jan 2009 17:20:50 -0000 To: commits@apr.apache.org From: minfrin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090103172050.5B5F223888F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: minfrin Date: Sat Jan 3 09:20:49 2009 New Revision: 731027 URL: http://svn.apache.org/viewvc?rev=731027&view=rev Log: Provide a mechanism to provide the recommended crypto driver to calling application. Modified: apr/apr-util/trunk/CHANGES apr/apr-util/trunk/include/apr_crypto.h Modified: apr/apr-util/trunk/CHANGES URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/CHANGES?rev=731027&r1=731026&r2=731027&view=diff ============================================================================== --- apr/apr-util/trunk/CHANGES [utf-8] (original) +++ apr/apr-util/trunk/CHANGES [utf-8] Sat Jan 3 09:20:49 2009 @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with APR-util 1.4.0 + *) Provide a mechanism to provide the recommended crypto driver to + calling application. [Graham Leggett] + *) Suppress pgsql column-out-of-range warning. PR 46012 [Michiel van Loon ] Modified: apr/apr-util/trunk/include/apr_crypto.h URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/include/apr_crypto.h?rev=731027&r1=731026&r2=731027&view=diff ============================================================================== --- apr/apr-util/trunk/include/apr_crypto.h (original) +++ apr/apr-util/trunk/include/apr_crypto.h Sat Jan 3 09:20:49 2009 @@ -81,6 +81,25 @@ #if APU_HAVE_CRYPTO +#ifndef APU_CRYPTO_RECOMMENDED_DRIVER +#if APU_HAVE_OPENSSL +#define APU_CRYPTO_RECOMMENDED_DRIVER "openssl" +#else +#if APU_HAVE_NSS +#define APU_CRYPTO_RECOMMENDED_DRIVER "nss" +#else +#if APU_HAVE_MSCNG +#define APU_CRYPTO_RECOMMENDED_DRIVER "mscng" +#else +#if APU_HAVE_MSCAPI +#define APU_CRYPTO_RECOMMENDED_DRIVER "mscapi" +#else +#endif +#endif +#endif +#endif +#endif + /** * Symmetric Key types understood by the library. *