summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2019-02-21 17:02:02 +0000
committerjsing <>2019-02-21 17:02:02 +0000
commite76fac4c623c3bc630ce30d524b5f6a9fa699538 (patch)
tree11e960db0ceb2f22df7187b221f1fbd89505511c /src
parentee56f9d53d1b66936b9bda4bb0fc94e85370e540 (diff)
downloadopenbsd-e76fac4c623c3bc630ce30d524b5f6a9fa699538.tar.gz
openbsd-e76fac4c623c3bc630ce30d524b5f6a9fa699538.tar.bz2
openbsd-e76fac4c623c3bc630ce30d524b5f6a9fa699538.zip
Fix a few cases where int was used instead of ssize_t.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/tls13_record_layer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_record_layer.c b/src/lib/libssl/tls13_record_layer.c
index dbb5695d5e..d1b53244c5 100644
--- a/src/lib/libssl/tls13_record_layer.c
+++ b/src/lib/libssl/tls13_record_layer.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_record_layer.c,v 1.2 2019/02/14 17:55:32 jsing Exp $ */ 1/* $OpenBSD: tls13_record_layer.c,v 1.3 2019/02/21 17:02:02 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -176,7 +176,7 @@ tls13_record_layer_handshake_completed(struct tls13_record_layer *rl)
176 rl->handshake_completed = 1; 176 rl->handshake_completed = 1;
177} 177}
178 178
179static int 179static ssize_t
180tls13_record_layer_process_alert(struct tls13_record_layer *rl) 180tls13_record_layer_process_alert(struct tls13_record_layer *rl)
181{ 181{
182 uint8_t alert_level, alert_desc; 182 uint8_t alert_level, alert_desc;
@@ -634,7 +634,7 @@ ssize_t
634tls13_record_layer_read(struct tls13_record_layer *rl, uint8_t content_type, 634tls13_record_layer_read(struct tls13_record_layer *rl, uint8_t content_type,
635 uint8_t *buf, size_t n) 635 uint8_t *buf, size_t n)
636{ 636{
637 int ret; 637 ssize_t ret;
638 638
639 /* XXX - loop here with record and byte limits. */ 639 /* XXX - loop here with record and byte limits. */
640 /* XXX - send alert... */ 640 /* XXX - send alert... */