diff options
author | jsing <> | 2015-02-22 14:50:41 +0000 |
---|---|---|
committer | jsing <> | 2015-02-22 14:50:41 +0000 |
commit | c49fca8dd4f1d0079adad807701d66700251010e (patch) | |
tree | 7253137d4c3e65e046e586640fad6ca2a060765c /src/lib/libtls/tls_internal.h | |
parent | 104de82a2457ba4f22f7c242f2b421f13bb3c5f4 (diff) | |
download | openbsd-c49fca8dd4f1d0079adad807701d66700251010e.tar.gz openbsd-c49fca8dd4f1d0079adad807701d66700251010e.tar.bz2 openbsd-c49fca8dd4f1d0079adad807701d66700251010e.zip |
In the interests of being secure by default, make the default TLS ciphers
be those that are TLSv1.2 with AEAD and PFS. Provide a "compat" mode that
allows the previous default ciphers to be selected.
Discussed with tedu@ during s2k15.
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r-- | src/lib/libtls/tls_internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index 78e6b1fe2b..d1ba48ea1a 100644 --- a/src/lib/libtls/tls_internal.h +++ b/src/lib/libtls/tls_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_internal.h,v 1.10 2015/02/11 06:46:33 jsing Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.11 2015/02/22 14:50:41 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> | 3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> |
4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
@@ -25,6 +25,9 @@ | |||
25 | 25 | ||
26 | #define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem" | 26 | #define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem" |
27 | 27 | ||
28 | #define TLS_CIPHERS_COMPAT "ALL:!aNULL:!eNULL" | ||
29 | #define TLS_CIPHERS_DEFAULT "TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE" | ||
30 | |||
28 | struct tls_config { | 31 | struct tls_config { |
29 | const char *ca_file; | 32 | const char *ca_file; |
30 | const char *ca_path; | 33 | const char *ca_path; |