]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Workaround missing SSL_OP_NO_TICKET in earlier OpenSSL versions
authorGert Doering <gert@greenie.muc.de>
Sun, 23 Mar 2014 12:19:08 +0000 (13:19 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 23 Mar 2014 12:22:45 +0000 (13:22 +0100)
058e889d introduced using SSL_OP_NO_TICKET, leading to build failures on
systems that could build 2.3.2 fine.  Inside the 2.3 release train, we
do not want to change requirements, so for those build environments, ignore
missing SSL_OP_NO_TICKET.  2.4 will require more recent OpenSSL, though.

Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <20140322183508.GZ16637@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8384

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_openssl.h

index fc2052cb626e07f97f144026666354250768d192..73a6c4920986728e91c667940f05275a6694268a 100644 (file)
 
 #include <openssl/ssl.h>
 
+/**
+ * SSL_OP_NO_TICKET tells OpenSSL to disable "stateless session resumption",
+ * as this is something we do not want nor need, but could potentially be
+ * used for a future attack.  For compatibility reasons, in the 2.3.x
+ * series, we keep building if the OpenSSL version is too old to support
+ * this.  2.4 requires it and will fail configure if not present.
+ */
+#ifndef SSL_OP_NO_TICKET
+# define SSL_OP_NO_TICKET 0
+#endif
+
+
 /**
  * Structure that wraps the TLS context. Contents differ depending on the
  * SSL library used.