diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-02-12 04:23:18 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-02-12 04:23:18 +0000 |
commit | e3213d47a875fe9ed6557bf4728158ae27445eec (patch) | |
tree | a21f2f90bbc069c7db9439dab321edc762ffafc2 /lib/libtls | |
parent | d1e3221766c47552c8a90ce9ce84ec6e354acfb1 (diff) |
Change TLS_PROTOCOLS_DEFAULT to be TLSv1.2 only. Add a TLS_PROTOCOLS_ALL
that includes all currently supported protocols (TLSv1.0, TLSv1.1 and
TLSv1.2). Change all users of libtls to use TLS_PROTOCOLS_ALL so that they
maintain existing behaviour.
Discussed with tedu@ and reyk@.
Diffstat (limited to 'lib/libtls')
-rw-r--r-- | lib/libtls/tls.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libtls/tls.h b/lib/libtls/tls.h index 0a6f8d72584..0fafcc6e23f 100644 --- a/lib/libtls/tls.h +++ b/lib/libtls/tls.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.h,v 1.7 2015/02/11 07:01:10 jsing Exp $ */ +/* $OpenBSD: tls.h,v 1.8 2015/02/12 04:23:17 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -25,7 +25,9 @@ #define TLS_PROTOCOL_TLSv1_2 (1 << 3) #define TLS_PROTOCOL_TLSv1 \ (TLS_PROTOCOL_TLSv1_0|TLS_PROTOCOL_TLSv1_1|TLS_PROTOCOL_TLSv1_2) -#define TLS_PROTOCOLS_DEFAULT TLS_PROTOCOL_TLSv1 + +#define TLS_PROTOCOLS_ALL TLS_PROTOCOL_TLSv1 +#define TLS_PROTOCOLS_DEFAULT TLS_PROTOCOL_TLSv1_2 #define TLS_READ_AGAIN -2 #define TLS_WRITE_AGAIN -3 |