summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-05-11 18:49:30 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-05-11 18:49:30 +0400
commit9cff79927a2c4a04df3d92681e4963cd1a4dee3f (patch)
tree35115447c291885bbf7b9b1300833fd47504eb63 /src/http/ngx_http.h
parentff724933c2f7afdd8b09b27c19bdb2742a3d28d1 (diff)
downloadnginx-9cff79927a2c4a04df3d92681e4963cd1a4dee3f.tar.gz
nginx-9cff79927a2c4a04df3d92681e4963cd1a4dee3f.tar.bz2
Fixed build with --with-mail_ssl_module.
If nginx was compiled without --with-http_ssl_module, but with some other module which uses OpenSSL (e.g. --with-mail_ssl_module), insufficient preprocessor check resulted in build failure. The problem was introduced by e0a3714a36f8 (1.3.14). Reported by Roman Arutyunyan.
Diffstat (limited to 'src/http/ngx_http.h')
-rw-r--r--src/http/ngx_http.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h
index 3d758bfd9..d4dc1bd94 100644
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -89,7 +89,7 @@ ngx_int_t ngx_http_add_listen(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf,
void ngx_http_init_connection(ngx_connection_t *c);
void ngx_http_close_connection(ngx_connection_t *c);
-#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
+#if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME)
int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg);
#endif