summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-11-07 13:48:07 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-11-07 13:48:07 +0000
commitf7a9764f365f980562c4cb7323052a2ac6ce883c (patch)
treeadaeb5abfd98b8eb16cbdb88efc21ee2a8caec7b /usr.sbin/relayd/relayd.h
parentc0a09fa0dca93ad873e0fae8cf9dd154c8508f11 (diff)
Remove the sslv2 option since LibreSSL has no SSLv2 support (however retain
SSL_OP_NO_SSLv2 in case you happen to be running relayd on another platform with another SSL library). Also fix the SSLv3 handling so that 'no sslv3' actually works as intended. ok reyk@
Diffstat (limited to 'usr.sbin/relayd/relayd.h')
-rw-r--r--usr.sbin/relayd/relayd.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h
index ac192e0cdae..6ed2c4bcdec 100644
--- a/usr.sbin/relayd/relayd.h
+++ b/usr.sbin/relayd/relayd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.h,v 1.195 2014/11/02 13:59:40 bluhm Exp $ */
+/* $OpenBSD: relayd.h,v 1.196 2014/11/07 13:48:06 jsing Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -635,12 +635,11 @@ TAILQ_HEAD(relay_rules, relay_rule);
"\10\01NODELAY\02NO_NODELAY\03SACK\04NO_SACK" \
"\05SOCKET_BUFFER_SIZE\06IP_TTL\07IP_MINTTL\10NO_SPLICE"
-#define SSLFLAG_SSLV2 0x01
-#define SSLFLAG_SSLV3 0x02
-#define SSLFLAG_TLSV1_0 0x04
-#define SSLFLAG_TLSV1_1 0x08
-#define SSLFLAG_TLSV1_2 0x10
-#define SSLFLAG_TLSV1 0x1c
+#define SSLFLAG_SSLV3 0x01
+#define SSLFLAG_TLSV1_0 0x02
+#define SSLFLAG_TLSV1_1 0x04
+#define SSLFLAG_TLSV1_2 0x08
+#define SSLFLAG_TLSV1 0x0e
#define SSLFLAG_VERSION 0x1f
#define SSLFLAG_CIPHER_SERVER_PREF 0x20
#define SSLFLAG_CLIENT_RENEG 0x40
@@ -648,7 +647,7 @@ TAILQ_HEAD(relay_rules, relay_rule);
(SSLFLAG_TLSV1|SSLFLAG_CLIENT_RENEG)
#define SSLFLAG_BITS \
- "\10\01sslv2\02sslv3\03tlsv1.0\04tlsv1.1\05tlsv1.2" \
+ "\06\01sslv3\02tlsv1.0\03tlsv1.1\04tlsv1.2" \
"\06cipher-server-preference\07client-renegotiation"
#define SSLCIPHERS_DEFAULT "HIGH:!aNULL"