diff options
author | jsing <> | 2020-04-18 14:07:56 +0000 |
---|---|---|
committer | jsing <> | 2020-04-18 14:07:56 +0000 |
commit | d82ca953a5e7d61a103ae2e7c9744db82d74f016 (patch) | |
tree | b56b281a4429eb0ae90ce91eefde6f9a80d7d18f /src/lib/libssl/tls13_internal.h | |
parent | 33d8c111a77ac681a8ecffcda0713ec96c6fe953 (diff) | |
download | openbsd-d82ca953a5e7d61a103ae2e7c9744db82d74f016.tar.gz openbsd-d82ca953a5e7d61a103ae2e7c9744db82d74f016.tar.bz2 openbsd-d82ca953a5e7d61a103ae2e7c9744db82d74f016.zip |
Expose the peer ephemeral public key used for TLSv1.3 key exchange.
SSL_get_server_tmp_key() provides the peer ephemeral public key used
for key exchange. In the case of TLSv1.3 this is essentially the peer
public key from the key share used for TLSv1.3 key exchange, hence make it
availaable via SSL_get_server_tmp_key().
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 8d5d9c4efe..6f5f5197d0 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.62 2020/04/17 17:16:53 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.63 2020/04/18 14:07:56 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> |
@@ -128,6 +128,7 @@ struct tls13_key_share *tls13_key_share_new_nid(int nid); | |||
128 | void tls13_key_share_free(struct tls13_key_share *ks); | 128 | void tls13_key_share_free(struct tls13_key_share *ks); |
129 | 129 | ||
130 | uint16_t tls13_key_share_group(struct tls13_key_share *ks); | 130 | uint16_t tls13_key_share_group(struct tls13_key_share *ks); |
131 | int tls13_key_share_peer_pkey(struct tls13_key_share *ks, EVP_PKEY *pkey); | ||
131 | int tls13_key_share_generate(struct tls13_key_share *ks); | 132 | int tls13_key_share_generate(struct tls13_key_share *ks); |
132 | int tls13_key_share_public(struct tls13_key_share *ks, CBB *cbb); | 133 | int tls13_key_share_public(struct tls13_key_share *ks, CBB *cbb); |
133 | int tls13_key_share_peer_public(struct tls13_key_share *ks, uint16_t group, | 134 | int tls13_key_share_peer_public(struct tls13_key_share *ks, uint16_t group, |