diff options
author | jsing <> | 2019-11-17 21:47:01 +0000 |
---|---|---|
committer | jsing <> | 2019-11-17 21:47:01 +0000 |
commit | 6a29f6c11055ec2099ab6780e23aa0d6af56da21 (patch) | |
tree | 20680a1e517e3612a9942c1281b329b4e10da94b /src/lib/libssl/tls13_internal.h | |
parent | fc37d72d0cd2021205ee99d8110ad1648055fde7 (diff) | |
download | openbsd-6a29f6c11055ec2099ab6780e23aa0d6af56da21.tar.gz openbsd-6a29f6c11055ec2099ab6780e23aa0d6af56da21.tar.bz2 openbsd-6a29f6c11055ec2099ab6780e23aa0d6af56da21.zip |
Change tls13_record_layer_phh() to take a CBS as this avoids ownership
issues and makes call sites cleaner.
ok beck@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 05e108952a..df5f13eb66 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.31 2019/11/17 17:20:16 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.32 2019/11/17 21:47:01 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> |
@@ -122,8 +122,7 @@ int tls13_record_layer_set_write_traffic_key(struct tls13_record_layer *rl, | |||
122 | struct tls13_secret *write_key); | 122 | struct tls13_secret *write_key); |
123 | ssize_t tls13_record_layer_alert(struct tls13_record_layer *rl, | 123 | ssize_t tls13_record_layer_alert(struct tls13_record_layer *rl, |
124 | uint8_t alert_level, uint8_t alert_desc); | 124 | uint8_t alert_level, uint8_t alert_desc); |
125 | ssize_t tls13_record_layer_phh(struct tls13_record_layer *rl, uint8_t *data, | 125 | ssize_t tls13_record_layer_phh(struct tls13_record_layer *rl, CBS *cbs); |
126 | size_t len); | ||
127 | 126 | ||
128 | ssize_t tls13_read_handshake_data(struct tls13_record_layer *rl, uint8_t *buf, size_t n); | 127 | ssize_t tls13_read_handshake_data(struct tls13_record_layer *rl, uint8_t *buf, size_t n); |
129 | ssize_t tls13_write_handshake_data(struct tls13_record_layer *rl, const uint8_t *buf, | 128 | ssize_t tls13_write_handshake_data(struct tls13_record_layer *rl, const uint8_t *buf, |