From: Cliff Woolley Date: Tue, 12 Aug 2003 20:58:53 +0000 (+0000) Subject: Make mod_ssl consistent with itself when you have a halfass install of X-Git-Tag: pre_ajp_proxy~1275 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d42d73e2828fedb868fdba4c5c12358d161b38e2;p=apache Make mod_ssl consistent with itself when you have a halfass install of 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 --- diff --git a/modules/ssl/mod_ssl.c b/modules/ssl/mod_ssl.c index e810168a61..c404c4908e 100644 --- a/modules/ssl/mod_ssl.c +++ b/modules/ssl/mod_ssl.c @@ -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', `...')") diff --git a/modules/ssl/mod_ssl.h b/modules/ssl/mod_ssl.h index 1c33af2e50..ff9de413ca 100644 --- a/modules/ssl/mod_ssl.h +++ b/modules/ssl/mod_ssl.h @@ -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 { diff --git a/modules/ssl/ssl_engine_config.c b/modules/ssl/ssl_engine_config.c index 97697bee47..6bb69e8576 100644 --- a/modules/ssl/ssl_engine_config.c +++ b/modules/ssl/ssl_engine_config.c @@ -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