summaryrefslogtreecommitdiffstats
path: root/apps/include
diff options
context:
space:
mode:
authorMarkus Minichmayr <markus@tapkey.com>2023-11-21 20:42:12 +0100
committerMatt Caswell <matt@openssl.org>2023-11-24 15:08:04 +0000
commitb8590b2f365a963965d799c438c5c92659c2fcae (patch)
treebc6575840fa2b8b3e6ac4c4fb1bc71832a308368 /apps/include
parent40a24c20a809916b43116c2bb16a36bdc40221f3 (diff)
Add option `SSL_OP_PREFER_NO_DHE_KEX`, allowing the server to prefer non-dhe psk key exchange over psk with dhe (config file option `PreferNoDHEKEX`, server option `prefer_no_dhe_kex`).
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22794)
Diffstat (limited to 'apps/include')
-rw-r--r--apps/include/opt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/include/opt.h b/apps/include/opt.h
index 5a2faa150b..2bd2fb2484 100644
--- a/apps/include/opt.h
+++ b/apps/include/opt.h
@@ -157,7 +157,8 @@
OPT_S_NOTLS1_3, OPT_S_BUGS, OPT_S_NO_COMP, OPT_S_NOTICKET, \
OPT_S_SERVERPREF, OPT_S_LEGACYRENEG, OPT_S_CLIENTRENEG, \
OPT_S_LEGACYCONN, \
- OPT_S_ONRESUMP, OPT_S_NOLEGACYCONN, OPT_S_ALLOW_NO_DHE_KEX, \
+ OPT_S_ONRESUMP, OPT_S_NOLEGACYCONN, \
+ OPT_S_ALLOW_NO_DHE_KEX, OPT_S_PREFER_NO_DHE_KEX, \
OPT_S_PRIORITIZE_CHACHA, \
OPT_S_STRICT, OPT_S_SIGALGS, OPT_S_CLIENTSIGALGS, OPT_S_GROUPS, \
OPT_S_CURVES, OPT_S_NAMEDCURVE, OPT_S_CIPHER, OPT_S_CIPHERSUITES, \
@@ -198,6 +199,8 @@
"Disallow initial connection to servers that don't support RI"}, \
{"allow_no_dhe_kex", OPT_S_ALLOW_NO_DHE_KEX, '-', \
"In TLSv1.3 allow non-(ec)dhe based key exchange on resumption"}, \
+ {"prefer_no_dhe_kex", OPT_S_PREFER_NO_DHE_KEX, '-', \
+ "In TLSv1.3 prefer non-(ec)dhe over (ec)dhe-based key exchange on resumption"}, \
{"prioritize_chacha", OPT_S_PRIORITIZE_CHACHA, '-', \
"Prioritize ChaCha ciphers when preferred by clients"}, \
{"strict", OPT_S_STRICT, '-', \
@@ -248,6 +251,7 @@
case OPT_S_ONRESUMP: \
case OPT_S_NOLEGACYCONN: \
case OPT_S_ALLOW_NO_DHE_KEX: \
+ case OPT_S_PREFER_NO_DHE_KEX: \
case OPT_S_PRIORITIZE_CHACHA: \
case OPT_S_STRICT: \
case OPT_S_SIGALGS: \