Provide #defines for the two currently registered PskKeyExchangeModes.
authortb <tb@openbsd.org>
Fri, 3 Jun 2022 13:11:04 +0000 (13:11 +0000)
committertb <tb@openbsd.org>
Fri, 3 Jun 2022 13:11:04 +0000 (13:11 +0000)
ok jsing

lib/libssl/tls13_internal.h

index 4c3a328..75e13ac 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_internal.h,v 1.96 2022/01/05 17:10:02 jsing Exp $ */
+/* $OpenBSD: tls13_internal.h,v 1.97 2022/06/03 13:11:04 tb Exp $ */
 /*
  * Copyright (c) 2018 Bob Beck <beck@openbsd.org>
  * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -94,6 +94,17 @@ typedef void (*tls13_handshake_message_cb)(void *_cb_arg);
 typedef void (*tls13_info_cb)(void *_cb_arg, int _state, int _ret);
 typedef int (*tls13_ocsp_status_cb)(void *_cb_arg);
 
+/*
+ * PSK support.
+ */
+
+/*
+ * Known PskKeyExchangeMode values.
+ * https://www.iana.org/assignments/tls-parameters/#tls-pskkeyexchangemode
+ */
+#define TLS13_PSK_KE                                   0
+#define TLS13_PSK_DHE_KE                               1
+
 /*
  * Secrets.
  */