You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mi...@apache.org on 2009/01/03 18:20:50 UTC

svn commit: r731027 - in /apr/apr-util/trunk: CHANGES include/apr_crypto.h

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 <michiel van-loon.xs4all.nl>]
 

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.
  *