summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2019-02-14 17:55:32 +0000
committerjsing <>2019-02-14 17:55:32 +0000
commit9507004da76db0b4a0cef78dcdb9e35596e20f68 (patch)
tree8d33d71ecb17eab8b569e6964abf8e5bd7fb0729 /src/lib/libssl/tls13_internal.h
parent5518a6b41f13c34882ea1415c4f1e65ba5678603 (diff)
downloadopenbsd-9507004da76db0b4a0cef78dcdb9e35596e20f68.tar.gz
openbsd-9507004da76db0b4a0cef78dcdb9e35596e20f68.tar.bz2
openbsd-9507004da76db0b4a0cef78dcdb9e35596e20f68.zip
Split tls13_record_layer_set_traffic_keys() into two separate functions.
This allows the read traffic key to be set independently of the write traffic key. This will become necessary for KeyUpdate handling, however also allows for switching to application traffic keys at more appropriate stages of the handshake. ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 2d23e6609b..71abb6c443 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.18 2019/02/14 17:50:07 jsing Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.19 2019/02/14 17:55:32 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>
@@ -114,8 +114,10 @@ void tls13_record_layer_set_aead(struct tls13_record_layer *rl,
114void tls13_record_layer_set_hash(struct tls13_record_layer *rl, 114void tls13_record_layer_set_hash(struct tls13_record_layer *rl,
115 const EVP_MD *hash); 115 const EVP_MD *hash);
116void tls13_record_layer_handshake_completed(struct tls13_record_layer *rl); 116void tls13_record_layer_handshake_completed(struct tls13_record_layer *rl);
117int tls13_record_layer_set_traffic_keys(struct tls13_record_layer *rl, 117int tls13_record_layer_set_read_traffic_key(struct tls13_record_layer *rl,
118 struct tls13_secret *read_key, struct tls13_secret *write_key); 118 struct tls13_secret *read_key);
119int tls13_record_layer_set_write_traffic_key(struct tls13_record_layer *rl,
120 struct tls13_secret *write_key);
119 121
120ssize_t tls13_read_handshake_data(struct tls13_record_layer *rl, uint8_t *buf, size_t n); 122ssize_t tls13_read_handshake_data(struct tls13_record_layer *rl, uint8_t *buf, size_t n);
121ssize_t tls13_write_handshake_data(struct tls13_record_layer *rl, const uint8_t *buf, 123ssize_t tls13_write_handshake_data(struct tls13_record_layer *rl, const uint8_t *buf,