]> granicus.if.org Git - apache/commitdiff
Make mod_ssl consistent with itself when you have a halfass install of
authorCliff Woolley <jwoolley@apache.org>
Tue, 12 Aug 2003 20:58:53 +0000 (20:58 +0000)
committerCliff Woolley <jwoolley@apache.org>
Tue, 12 Aug 2003 20:58:53 +0000 (20:58 +0000)
openssl-engine (ie, you're missing the headers).  ssl_cmd_SSLCryptoDevice()
is thrown away by the preprocessor if you're missing the header, so the
call to it should have the same condition applied.  otherwise, mod_ssl
will fail to link.

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

modules/ssl/mod_ssl.c
modules/ssl/mod_ssl.h
modules/ssl/ssl_engine_config.c

index e810168a612be525104e83a3d78f49484b214add..c404c4908ef26285b7887148424e676248b65794 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 HAVE_ENGINE_INIT
+#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_INIT)
     SSL_CMD_SRV(CryptoDevice, TAKE1,
                 "SSL external Crypto Device usage "
                 "(`builtin', `...')")
index 1c33af2e5039606d46711a57de65b1cd2427ef3d..ff9de413caa8065e8b7cf7baa1ec59ce4a56dc84 100644 (file)
@@ -401,7 +401,7 @@ typedef struct {
     void           *pTmpKeys[SSL_TMP_KEY_MAX];
     apr_hash_t     *tPublicCert;
     apr_hash_t     *tPrivateKey;
-#ifdef HAVE_ENGINE_INIT
+#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_INIT)
     const char     *szCryptoDevice;
 #endif
     struct {
index 97697bee47f66aebdfe18ce3f3baccd777043e83..6bb69e8576a8ce5e5e2468c1c0159939d3155fbb 100644 (file)
@@ -107,7 +107,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 HAVE_ENGINE_INIT
+#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_INIT)
     mc->szCryptoDevice         = NULL;
 #endif