diff options
| author | jsing <> | 2015-02-22 14:50:41 +0000 |
|---|---|---|
| committer | jsing <> | 2015-02-22 14:50:41 +0000 |
| commit | 1607f10de0cc9943f49fa1cbf6edb53c60012a4f (patch) | |
| tree | 7253137d4c3e65e046e586640fad6ca2a060765c /src/lib/libtls/tls_internal.h | |
| parent | 2a62d537cb9010dd8195073119bceb929c7871f0 (diff) | |
| download | openbsd-1607f10de0cc9943f49fa1cbf6edb53c60012a4f.tar.gz openbsd-1607f10de0cc9943f49fa1cbf6edb53c60012a4f.tar.bz2 openbsd-1607f10de0cc9943f49fa1cbf6edb53c60012a4f.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; |
