Hi.
Attached patch for the 2.8 stable branch disables some unneeded SSL
socket BIO functionality (crypto/bio/bss_sock.c) in case the
OPENSSL_NO_SOCK macro is defined. Similar #ifndef/#endif already exists
in a related crypto/bio/b_sock.c module.
Without this patch OPENSSL_NO_SOCK builds cause failures due to
warnings when building on Windows. Tested on Windows XP SP3, with the
MSVC 9.0 SP1 compiler.
A similar patch should be applied to the CVS HEAD as well.
Hope this helps.
Best regards
Jurko Gospodnetić
Patch disabling unneeded SSL socket BIO functionality in case OPENSSL_NO_SOCK
is defined. Without this patch compilers will report warnings due to certain
functions used in this module not being defined.
--- C:\DOCUME~1\Jurko\LOCALS~1\Temp\TCV7843.tmp\bss_sock.1.15.c - CVS
2003-11-28 14:10:54.000000000 +-0100
+++ C:\Workplace\OpenSSL\OpenSSL_0_9_8-stable\crypto\bio\bss_sock.c - Local
2009-03-08 22:07:26.000000000 +-0100
@@ -57,12 +57,15 @@
*/
#include <stdio.h>
#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
+
+#ifndef OPENSSL_NO_SOCK
+
#include <openssl/bio.h>
#ifdef WATT32
#define sock_write SockWrite /* Watt-32 uses same names */
#define sock_read SockRead
#define sock_puts SockPuts
@@ -297,6 +300,8 @@
/* break; */
default:
break;
}
return(0);
}
+
+#endif /* #ifndef OPENSSL_NO_SOCK */