0.7.65 + openssl 1.0 from FreeBSD ports tree

Igor Sysoev igor at sysoev.ru
Wed Apr 7 12:13:59 MSD 2010


On Wed, Apr 07, 2010 at 10:47:36AM +0400, Sergey A. Osokin wrote:

> Привет, Игорь.
> 
> При сборке с openssl 1.0 (из портов) возникает вот такой warning.
> 
> cc -c -pipe -g -DNGX_DEBUG_MALLOC -g -I /usr/local/include -I src/core
> -I src/event  -I src/event/modules  -I src/os/unix  -I objs  -o
> objs/src/event/ngx_event_openssl.o  src/event/ngx_event_openssl.c
> src/event/ngx_event_openssl.c: In function 'ngx_ssl_handshake':
> src/event/ngx_event_openssl.c:564: warning: assignment discards
> qualifiers from pointer target type

The attached patch should fix building.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/event/ngx_event_openssl.c
===================================================================
--- src/event/ngx_event_openssl.c	(revision 2807)
+++ src/event/ngx_event_openssl.c	(revision 2808)
@@ -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);


More information about the nginx mailing list