]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: Fix issue on server statements 'no-tls*' and 'no-sslv3'
authorEmeric Brun <ebrun@exceliance.fr>
Thu, 11 Oct 2012 16:36:21 +0000 (18:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2012 09:27:57 +0000 (11:27 +0200)
bit field collision with 'force-tlsv*'.

include/types/server.h

index 3e83d64fcda4fe604a858d14cc621cb8a2350f2a..fd99b64ff55f8a19067081146c789e6f637daaf8 100644 (file)
 #ifdef USE_OPENSSL
 /* server ssl options */
 #define SRV_SSL_O_NONE         0x0000
+#define SRV_SSL_O_NO_VMASK     0x000F /* force version mask */
 #define SRV_SSL_O_NO_SSLV3     0x0001 /* disable SSLv3 */
 #define SRV_SSL_O_NO_TLSV10    0x0002 /* disable TLSv1.0 */
 #define SRV_SSL_O_NO_TLSV11    0x0004 /* disable TLSv1.1 */
 #define SRV_SSL_O_NO_TLSV12    0x0008 /* disable TLSv1.2 */
 /* 0x000F reserved for 'no' protocol version options */
-#define SRV_SSL_O_USE_SSLV3    0x0001 /* force SSLv3 */
-#define SRV_SSL_O_USE_TLSV10   0x0002 /* force TLSv1.0 */
-#define SRV_SSL_O_USE_TLSV11   0x0004 /* force TLSv1.1 */
-#define SRV_SSL_O_USE_TLSV12   0x0008 /* force TLSv1.2 */
+#define SRV_SSL_O_USE_VMASK    0x00F0 /* force version mask */
+#define SRV_SSL_O_USE_SSLV3    0x0010 /* force SSLv3 */
+#define SRV_SSL_O_USE_TLSV10   0x0020 /* force TLSv1.0 */
+#define SRV_SSL_O_USE_TLSV11   0x0040 /* force TLSv1.1 */
+#define SRV_SSL_O_USE_TLSV12   0x0080 /* force TLSv1.2 */
 /* 0x00F0 reserved for 'force' protocol version options */
 #endif