Add a use_psk_dhe_ke flag to the TLSv1.3 handshake struct
authortb <tb@openbsd.org>
Fri, 3 Jun 2022 13:28:36 +0000 (13:28 +0000)
committertb <tb@openbsd.org>
Fri, 3 Jun 2022 13:28:36 +0000 (13:28 +0000)
This will be used to indicate client side support for DHE key
establishment.

ok jsing

lib/libssl/ssl_locl.h

index f0c261b..2743d7d 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.388 2022/03/17 17:22:16 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.389 2022/06/03 13:28:36 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -548,6 +548,9 @@ typedef struct ssl_handshake_tls13_st {
        int use_legacy;
        int hrr;
 
+       /* Client indicates psk_dhe_ke support in PskKeyExchangeMode. */
+       int use_psk_dhe_ke;
+
        /* Certificate selected for use (static pointer). */
        const SSL_CERT_PKEY *cpk;