nginx-0.0.7-2004-07-08-19:17:47 import
diff --git a/auto/modules b/auto/modules
index 55e10a7..705f028 100644
--- a/auto/modules
+++ b/auto/modules
@@ -58,6 +58,14 @@
     HTTP_SRCS="$HTTP_SRCS $HTTP_GZIP_SRCS"
 fi
 
+if [ $HTTP_SSL = YES ]; then
+    have=NGX_HTTP_SSL . auto/have
+    HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSL_FILTER_MODULE"
+    HTTP_SRCS="$HTTP_SRCS $HTTP_SSL_SRCS"
+    # STUB: move to auto/libs/ssl
+    CORE_LIBS="$CORE_LIBS -lssl -lcrypto"
+fi
+
 if [ $HTTP_SSI = YES ]; then
     have=NGX_HTTP_SSI . auto/have
     HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSI_FILTER_MODULE"
diff --git a/auto/options b/auto/options
index a2e01a2..c506062 100644
--- a/auto/options
+++ b/auto/options
@@ -31,6 +31,7 @@
 
 HTTP_CHARSET=YES
 HTTP_GZIP=YES
+HTTP_SSL=NO
 HTTP_SSI=YES
 HTTP_ACCESS=YES
 HTTP_STATUS=YES
@@ -83,9 +84,10 @@
         --with-threads=*)                USE_THREADS="$value"       ;;
         --with-threads)                  USE_THREADS="pthreads"     ;;
 
+        --with-http_ssl_module)          HTTP_SSL=YES               ;;
         --without-http_charset_module)   HTTP_CHARSET=NO            ;;
-        --without-http_ssi_module)       HTTP_SSI=NO                ;;
         --without-http_gzip_module)      HTTP_GZIP=NO               ;;
+        --without-http_ssi_module)       HTTP_SSI=NO                ;;
         --without-http_access_module)    HTTP_ACCESS=NO             ;;
         --without-http_status_module)    HTTP_STATUS=NO             ;;
         --without-http_rewrite_module)   HTTP_REWRITE=NO            ;;
diff --git a/auto/sources b/auto/sources
index 041b23d..34f61a3 100644
--- a/auto/sources
+++ b/auto/sources
@@ -249,6 +249,10 @@
 HTTP_GZIP_SRCS=src/http/modules/ngx_http_gzip_filter.c
 
 
+HTTP_SSL_FILTER_MODULE=ngx_http_ssl_filter_module
+HTTP_SSL_SRCS=src/http/modules/ngx_http_ssl_filter.c
+
+
 HTTP_SSI_FILTER_MODULE=ngx_http_ssi_filter_module
 HTTP_SSI_SRCS=src/http/modules/ngx_http_ssi_filter.c