summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2022-01-05 17:10:03 +0000
committerjsing <>2022-01-05 17:10:03 +0000
commita9f24628df539c8088b9794446120c0373037961 (patch)
treebf1d8f80a603da1e77e6fec1a2697b878680932b /src/lib/libssl/tls13_internal.h
parentc07b503037c3e655a5473421e41fdca747aaad80 (diff)
downloadopenbsd-a9f24628df539c8088b9794446120c0373037961.tar.gz
openbsd-a9f24628df539c8088b9794446120c0373037961.tar.bz2
openbsd-a9f24628df539c8088b9794446120c0373037961.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 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h20
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);
159int tls13_update_server_traffic_secret(struct tls13_secrets *secrets); 159int tls13_update_server_traffic_secret(struct tls13_secrets *secrets);
160 160
161/* 161/*
162 * Key shares.
163 */
164struct tls13_key_share;
165
166struct tls13_key_share *tls13_key_share_new(uint16_t group_id);
167struct tls13_key_share *tls13_key_share_new_nid(int nid);
168void tls13_key_share_free(struct tls13_key_share *ks);
169
170uint16_t tls13_key_share_group(struct tls13_key_share *ks);
171int tls13_key_share_peer_pkey(struct tls13_key_share *ks, EVP_PKEY *pkey);
172int tls13_key_share_generate(struct tls13_key_share *ks);
173int tls13_key_share_public(struct tls13_key_share *ks, CBB *cbb);
174int tls13_key_share_peer_public(struct tls13_key_share *ks, uint16_t group,
175 CBS *cbs);
176int 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 */
182struct tls13_record_layer; 164struct tls13_record_layer;