apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r731027 - in /apr/apr-util/trunk: CHANGES include/apr_crypto.h
Date Sat, 03 Jan 2009 17:20:50 GMT
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.
  *



Mime
View raw message