]> granicus.if.org Git - apache/commitdiff
Roll away the SSL_EXPERIMENTAL_ENGINE test in favor of testing for the
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 19 May 2003 14:48:47 +0000 (14:48 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 19 May 2003 14:48:47 +0000 (14:48 +0000)
  ENGINE_init() function in config.m4, and rely on HAVE_ENGINE_INIT instead.

Reviewed by: Ben Laurie (concept)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99919 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/config.m4
modules/ssl/mod_ssl.c
modules/ssl/mod_ssl.h
modules/ssl/ssl_engine_config.c
modules/ssl/ssl_engine_init.c
modules/ssl/ssl_toolkit_compat.h

index e56c48dc5cac2d2f0783b18c68fc82d1f0736a8f..16ea75b28331412fe34e353706d34933d5df6dc4 100644 (file)
@@ -79,6 +79,7 @@ APACHE_MODULE(ssl, [SSL/TLS support (mod_ssl)], $ssl_objs, , no, [
     APACHE_CHECK_SSL_TOOLKIT
     AC_CHECK_FUNCS(SSL_set_state)
     AC_CHECK_FUNCS(SSL_set_cert_store)
+    AC_CHECK_FUNCS(ENGINE_init)
 ])
 
 dnl #  end of module specific part
index 9195ee65fc8a9591aa4e11d15c3046d07dfd5f85..e4dbef7218c9562fd3550b1aee65c30efceba298 100644 (file)
@@ -116,7 +116,7 @@ static const command_rec ssl_config_cmds[] = {
     SSL_CMD_SRV(SessionCache, TAKE1,
                 "SSL Session Cache storage "
                 "(`none', `dbm:/path/to/file')")
-#ifdef SSL_EXPERIMENTAL_ENGINE
+#ifdef HAVE_ENGINE_INIT
     SSL_CMD_SRV(CryptoDevice, TAKE1,
                 "SSL external Crypto Device usage "
                 "(`builtin', `...')")
index 3f865d18a495edea329e2673890a890f1982f08a..971a012dc129a9eea734405dd1b86a6a4338e9b2 100644 (file)
 #ifndef __MOD_SSL_H__
 #define __MOD_SSL_H__
 
-/* 
- * Optionally enable the experimental stuff, but allow the user to
- * override the decision which experimental parts are included by using
- * CFLAGS="-DSSL_EXPERIMENTAL_xxxx_IGNORE".
- */
-#ifdef SSL_EXPERIMENTAL
-#ifdef SSL_ENGINE
-#ifndef SSL_EXPERIMENTAL_ENGINE_IGNORE
-#define SSL_EXPERIMENTAL_ENGINE
-#endif
-#endif
-#endif /* SSL_EXPERIMENTAL */
-
 /*
  * Power up our brain...
  */
@@ -414,7 +401,7 @@ typedef struct {
     void           *pTmpKeys[SSL_TMP_KEY_MAX];
     apr_hash_t     *tPublicCert;
     apr_hash_t     *tPrivateKey;
-#ifdef SSL_EXPERIMENTAL_ENGINE
+#ifdef HAVE_ENGINE_INIT
     char           *szCryptoDevice;
 #endif
     struct {
index af2f54aa4b83a9655ec3addb5715200d06ece3c2..9a55d17b26e1e3176bd1c3234832ce4191bb9195 100644 (file)
@@ -108,7 +108,7 @@ SSLModConfigRec *ssl_config_global_create(server_rec *s)
     mc->tVHostKeys             = apr_hash_make(pool);
     mc->tPrivateKey            = apr_hash_make(pool);
     mc->tPublicCert            = apr_hash_make(pool);
-#ifdef SSL_EXPERIMENTAL_ENGINE
+#ifdef HAVE_ENGINE_INIT
     mc->szCryptoDevice         = NULL;
 #endif
 
@@ -510,7 +510,7 @@ const char *ssl_cmd_SSLPassPhraseDialog(cmd_parms *cmd,
     return NULL;
 }
 
-#ifdef SSL_EXPERIMENTAL_ENGINE
+#ifdef HAVE_ENGINE_INIT
 const char *ssl_cmd_SSLCryptoDevice(cmd_parms *cmd,
                                     void *dcfg,
                                     const char *arg)
index ff229cdb31a23f964be72da3032fb08f42b623f0..e2f49095939872bab87bf3acfd63f5c0416c478e 100644 (file)
@@ -270,7 +270,7 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
     /*
      * SSL external crypto device ("engine") support
      */
-#ifdef SSL_EXPERIMENTAL_ENGINE
+#ifdef HAVE_ENGINE_INIT
     ssl_init_Engine(base_server, p);
 #endif
 
@@ -351,7 +351,7 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
  * Support for external a Crypto Device ("engine"), usually
  * a hardware accellerator card for crypto operations.
  */
-#ifdef SSL_EXPERIMENTAL_ENGINE
+#ifdef HAVE_ENGINE_INIT
 void ssl_init_Engine(server_rec *s, apr_pool_t *p)
 {
     SSLModConfigRec *mc = myModConfig(s);
index 8cd69e6f69885ccf100ff847d8255062c9b40773..cba8de88d36284f21210e48febd778e30810797b 100644 (file)
@@ -66,7 +66,7 @@
 #include <openssl/evp.h>
 #include <openssl/rand.h>
 #include <openssl/x509v3.h>
-#ifdef SSL_EXPERIMENTAL_ENGINE
+#ifdef HAVE_ENGINE_INIT
 #include <openssl/engine.h>
 #endif