From: Badlop Date: Mon, 9 Mar 2009 19:17:53 +0000 (+0000) Subject: * src/tls/tls_drv.c: Fix to support OpenSSL older than X-Git-Tag: v2.1.0~18^2~410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d28efabb7996419cc7d65622e245c83fd41aec47;p=ejabberd * src/tls/tls_drv.c: Fix to support OpenSSL older than 0.9.8f (EJAB-877)(thanks to Jonathan Schleifer) * doc/guide.tex: It is again supported OpenSSL older than 0.9.8f * doc/guide.html: Likewise SVN Revision: 1979 --- diff --git a/ChangeLog b/ChangeLog index 934a084c2..fc68b7944 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-03-09 Badlop + + * src/tls/tls_drv.c: Fix to support OpenSSL older than + 0.9.8f (EJAB-877)(thanks to Jonathan Schleifer) + * doc/guide.tex: It is again supported OpenSSL older than 0.9.8f + * doc/guide.html: Likewise + 2009-03-07 Badlop * src/Makefile.in: In SunOS, use different C flags (thanks to diff --git a/doc/guide.html b/doc/guide.html index da12483de..631ae306d 100644 --- a/doc/guide.html +++ b/doc/guide.html @@ -331,7 +331,7 @@ GNU Make
  • GCC
  • Libexpat 1.95 or higher
  • Erlang/OTP R10B-9 or higher. -
  • OpenSSL 0.9.8f or higher, for STARTTLS, SASL and SSL encryption. Optional, highly recommended. +
  • OpenSSL 0.9.6 or higher, for STARTTLS, SASL and SSL encryption. Optional, highly recommended.
  • Zlib 1.2.3 or higher, for Stream Compression support (XEP-0138). Optional.
  • Erlang mysql library. Optional. For MySQL authentication or storage. See section 3.2.1.
  • Erlang pgsql library. Optional. For PostgreSQL authentication or storage. See section 3.2.3. @@ -455,7 +455,7 @@ MS Visual C++ 6.0 Compiler
  • Expat 2.0.0 or higher
  • GNU Iconv 1.9.2 (optional) -
  • Shining Light OpenSSL 0.9.8f or higher +
  • Shining Light OpenSSL 0.9.8d or higher (to enable SSL connections)
  • Zlib 1.2.3 or higher
  • diff --git a/doc/guide.tex b/doc/guide.tex index 41c0c8b88..1c3df924e 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -299,7 +299,7 @@ To compile \ejabberd{} on a `Unix-like' operating system, you need: \item GCC \item Libexpat 1.95 or higher \item Erlang/OTP R10B-9 or higher. -\item OpenSSL 0.9.8f or higher, for STARTTLS, SASL and SSL encryption. Optional, highly recommended. +\item OpenSSL 0.9.6 or higher, for STARTTLS, SASL and SSL encryption. Optional, highly recommended. \item Zlib 1.2.3 or higher, for Stream Compression support (\xepref{0138}). Optional. \item Erlang mysql library. Optional. For MySQL authentication or storage. See section \ref{compilemysql}. \item Erlang pgsql library. Optional. For PostgreSQL authentication or storage. See section \ref{compilepgsql}. @@ -488,7 +488,7 @@ To compile \ejabberd{} on a Microsoft Windows system, you need: \item \footahref{http://www.gnu.org/software/libiconv/}{GNU Iconv 1.9.2} (optional) -\item \footahref{http://www.slproweb.com/products/Win32OpenSSL.html}{Shining Light OpenSSL 0.9.8f or higher} +\item \footahref{http://www.slproweb.com/products/Win32OpenSSL.html}{Shining Light OpenSSL 0.9.8d or higher} (to enable SSL connections) \item \footahref{http://www.zlib.net/}{Zlib 1.2.3 or higher} \end{itemize} diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index e7b07028b..257262607 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -40,6 +40,10 @@ typedef struct { typedef unsigned __int32 uint32_t; #endif +#ifndef SSL_OP_NO_TICKET +#define SSL_OP_NO_TICKET 0 +#endif + /* * str_hash is based on the public domain code from * http://www.burtleburtle.net/bob/hash/doobs.html