]> git.kaiwu.me - nginx.git/commitdiff
MSVC8 compatibility with OpenSSL 1.0.0
authorIgor Sysoev <igor@sysoev.ru>
Thu, 1 Apr 2010 15:18:29 +0000 (15:18 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 1 Apr 2010 15:18:29 +0000 (15:18 +0000)
auto/lib/openssl/conf
auto/lib/openssl/makefile.bcc
auto/lib/openssl/makefile.msvc
src/event/ngx_event_openssl.c

index 64f2ce02fae2beb0128e822b1e68af7eee73d073..c57a7c830675b5e5cd9cf0f49388cdbea82e2490 100644 (file)
@@ -19,6 +19,8 @@ if [ $OPENSSL != NONE ]; then
 
             # libeay32.lib requires gdi32.lib
             CORE_LIBS="$CORE_LIBS gdi32.lib"
+            # OpenSSL 1.0.0 requires crypt32.lib
+            CORE_LIBS="$CORE_LIBS crypt32.lib"
         ;;
 
         *)
index 679e7fe4adb794a6495e5b93ce8182945c231777..5938cbf6b3a37e745f75f5f8c79fd3a0faecd730 100644 (file)
@@ -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
 
index 0e45c487f2aa681b20213b695cbe8076b341d06e..379b95dc0281811a0e2d169b11fbdb502aee888a 100644 (file)
@@ -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
 
index 4a05444a0d4bbc16d0817ad43ca8d242e417ced7..5eab4affb73d06c74ea8b7293c4a21396398ce70 100644 (file)
@@ -561,6 +561,9 @@ ngx_ssl_handshake(ngx_connection_t *c)
 #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);