From: tb Date: Fri, 3 Jun 2022 13:11:04 +0000 (+0000) Subject: Provide #defines for the two currently registered PskKeyExchangeModes. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4b4fb91221ff4ca6cad44e7dc1db1c4503a9cdd5;p=openbsd Provide #defines for the two currently registered PskKeyExchangeModes. ok jsing --- diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h index 4c3a328023a..75e13ac15df 100644 --- a/lib/libssl/tls13_internal.h +++ b/lib/libssl/tls13_internal.h @@ -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 * Copyright (c) 2018 Theo Buehler @@ -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. */