Mercurial > hg > nginx
changeset 3594:8a5106c2a377 stable-0.7
merge r3489, r3493:
*) MSVC8 compatibility with OpenSSL 1.0.0
*) fix building OpenSSL-1.0.0 on 64-bit Linux:
make installs the libraries in lib64 directory
and build nginx/Windows against OpenSSL-0.9.8n
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Jun 2010 11:55:20 +0000 |
parents | a79d2ad7a2d8 |
children | 8944c3e318ab |
files | auto/lib/openssl/conf auto/lib/openssl/make auto/lib/openssl/makefile.bcc auto/lib/openssl/makefile.msvc misc/GNUmakefile src/event/ngx_event_openssl.c |
diffstat | 6 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/auto/lib/openssl/conf Mon Jun 07 11:51:37 2010 +0000 +++ b/auto/lib/openssl/conf Mon Jun 07 11:55:20 2010 +0000 @@ -19,6 +19,8 @@ # libeay32.lib requires gdi32.lib CORE_LIBS="$CORE_LIBS gdi32.lib" + # OpenSSL 1.0.0 requires crypt32.lib + CORE_LIBS="$CORE_LIBS crypt32.lib" ;; *)
--- a/auto/lib/openssl/make Mon Jun 07 11:51:37 2010 +0000 +++ b/auto/lib/openssl/make Mon Jun 07 11:55:20 2010 +0000 @@ -57,7 +57,7 @@ && \$(MAKE) clean \\ && ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\ && \$(MAKE) \\ - && \$(MAKE) install + && \$(MAKE) install LIBDIR=lib END
--- a/auto/lib/openssl/makefile.bcc Mon Jun 07 11:51:37 2010 +0000 +++ b/auto/lib/openssl/makefile.bcc Mon Jun 07 11:55:20 2010 +0000 @@ -5,8 +5,7 @@ all: cd $(OPENSSL) - perl Configure BC-32 no-shared --prefix=openssl -DNO_SYS_TYPES_H \ - $(OPENSSL_OPT) + perl Configure BC-32 no-shared --prefix=openssl $(OPENSSL_OPT) ms\do_nasm
--- a/auto/lib/openssl/makefile.msvc Mon Jun 07 11:51:37 2010 +0000 +++ b/auto/lib/openssl/makefile.msvc Mon Jun 07 11:55:20 2010 +0000 @@ -5,8 +5,7 @@ all: cd $(OPENSSL) - perl Configure VC-WIN32 no-shared --prefix=openssl -DNO_SYS_TYPES_H \ - $(OPENSSL_OPT) + perl Configure VC-WIN32 no-shared --prefix=openssl $(OPENSSL_OPT) ms\do_ms
--- a/misc/GNUmakefile Mon Jun 07 11:51:37 2010 +0000 +++ b/misc/GNUmakefile Mon Jun 07 11:55:20 2010 +0000 @@ -5,7 +5,7 @@ TEMP = tmp OBJS = objs.msvc8 -OPENSSL = openssl-0.9.8k +OPENSSL = openssl-0.9.8n ZLIB = zlib-1.2.3 PCRE = pcre-7.9
--- a/src/event/ngx_event_openssl.c Mon Jun 07 11:51:37 2010 +0000 +++ b/src/event/ngx_event_openssl.c Mon Jun 07 11:55:20 2010 +0000 @@ -561,6 +561,9 @@ #if (NGX_DEBUG) { char buf[129], *s, *d; +#if OPENSSL_VERSION_NUMBER >= 0x1000000fL + const +#endif SSL_CIPHER *cipher; cipher = SSL_get_current_cipher(c->ssl->connection);