diff options
author | tb <> | 2022-06-03 13:11:04 +0000 |
---|---|---|
committer | tb <> | 2022-06-03 13:11:04 +0000 |
commit | 8703009df29b1a5d1c70f4993dbec5e0009b467a (patch) | |
tree | 919c58d81905e8d3ebefad96929051283a41329b | |
parent | f9cd1728ac785059e371302175d528beb170f012 (diff) | |
download | openbsd-8703009df29b1a5d1c70f4993dbec5e0009b467a.tar.gz openbsd-8703009df29b1a5d1c70f4993dbec5e0009b467a.tar.bz2 openbsd-8703009df29b1a5d1c70f4993dbec5e0009b467a.zip |
Provide #defines for the two currently registered PskKeyExchangeModes.
ok jsing
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 4c3a328023..75e13ac15d 100644 --- a/src/lib/libssl/tls13_internal.h +++ b/src/lib/libssl/tls13_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_internal.h,v 1.96 2022/01/05 17:10:02 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.97 2022/06/03 13:11:04 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -95,6 +95,17 @@ typedef void (*tls13_info_cb)(void *_cb_arg, int _state, int _ret); | |||
95 | typedef int (*tls13_ocsp_status_cb)(void *_cb_arg); | 95 | typedef int (*tls13_ocsp_status_cb)(void *_cb_arg); |
96 | 96 | ||
97 | /* | 97 | /* |
98 | * PSK support. | ||
99 | */ | ||
100 | |||
101 | /* | ||
102 | * Known PskKeyExchangeMode values. | ||
103 | * https://www.iana.org/assignments/tls-parameters/#tls-pskkeyexchangemode | ||
104 | */ | ||
105 | #define TLS13_PSK_KE 0 | ||
106 | #define TLS13_PSK_DHE_KE 1 | ||
107 | |||
108 | /* | ||
98 | * Secrets. | 109 | * Secrets. |
99 | */ | 110 | */ |
100 | struct tls13_secret { | 111 | struct tls13_secret { |