diff options
| author | jsing <> | 2022-01-05 17:10:03 +0000 |
|---|---|---|
| committer | jsing <> | 2022-01-05 17:10:03 +0000 |
| commit | 767ff39662be70f355eac7cf069fd9c23c34580d (patch) | |
| tree | bf1d8f80a603da1e77e6fec1a2697b878680932b /src/lib/libssl/tls13_internal.h | |
| parent | 2a4d455b5a48685d7473bacd6643c5f7fdfbe18a (diff) | |
| download | openbsd-767ff39662be70f355eac7cf069fd9c23c34580d.tar.gz openbsd-767ff39662be70f355eac7cf069fd9c23c34580d.tar.bz2 openbsd-767ff39662be70f355eac7cf069fd9c23c34580d.zip | |
Rename tls13_key_share to tls_key_share.
In preparation to use the key share code in both the TLSv1.3 and legacy
stacks, rename tls13_key_share to tls_key_share, moving it into the shared
handshake struct. Further changes will then allow the legacy stack to make
use of the same code for ephemeral key exchange.
ok inoguchi@ tb@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/tls13_internal.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 7e3b081966..4c3a328023 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.95 2021/10/23 13:12:14 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.96 2022/01/05 17:10:02 jsing 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> |
| @@ -159,24 +159,6 @@ int tls13_update_client_traffic_secret(struct tls13_secrets *secrets); | |||
| 159 | int tls13_update_server_traffic_secret(struct tls13_secrets *secrets); | 159 | int tls13_update_server_traffic_secret(struct tls13_secrets *secrets); |
| 160 | 160 | ||
| 161 | /* | 161 | /* |
| 162 | * Key shares. | ||
| 163 | */ | ||
| 164 | struct tls13_key_share; | ||
| 165 | |||
| 166 | struct tls13_key_share *tls13_key_share_new(uint16_t group_id); | ||
| 167 | struct tls13_key_share *tls13_key_share_new_nid(int nid); | ||
| 168 | void tls13_key_share_free(struct tls13_key_share *ks); | ||
| 169 | |||
| 170 | uint16_t tls13_key_share_group(struct tls13_key_share *ks); | ||
| 171 | int tls13_key_share_peer_pkey(struct tls13_key_share *ks, EVP_PKEY *pkey); | ||
| 172 | int tls13_key_share_generate(struct tls13_key_share *ks); | ||
| 173 | int tls13_key_share_public(struct tls13_key_share *ks, CBB *cbb); | ||
| 174 | int tls13_key_share_peer_public(struct tls13_key_share *ks, uint16_t group, | ||
| 175 | CBS *cbs); | ||
| 176 | int tls13_key_share_derive(struct tls13_key_share *ks, uint8_t **shared_key, | ||
| 177 | size_t *shared_key_len); | ||
| 178 | |||
| 179 | /* | ||
| 180 | * Record Layer. | 162 | * Record Layer. |
| 181 | */ | 163 | */ |
| 182 | struct tls13_record_layer; | 164 | struct tls13_record_layer; |
