summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_record_layer.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-10-03 17:22:27 +0000
committerjsing <jsing@openbsd.org>2020-10-03 17:22:27 +0000
commit59628146b6276c51486c7e694d0b15ce561f182a (patch)
tree550dd33fdcd41a5cabe8e6444a319bff7c748b10 /lib/libssl/tls13_record_layer.c
parentMake dtls1_copy_record() take a DTLS1_RECORD_DATA_INTERNAL *. (diff)
downloadwireguard-openbsd-59628146b6276c51486c7e694d0b15ce561f182a.tar.xz
wireguard-openbsd-59628146b6276c51486c7e694d0b15ce561f182a.zip
Rename tls13_record_layer_alert() to tls13_record_layer_enqueue_alert()
This avoids naming confusion with an upcoming TLSv1.2 record layer change and is more descriptive of this function. Requested by tb@
Diffstat (limited to 'lib/libssl/tls13_record_layer.c')
-rw-r--r--lib/libssl/tls13_record_layer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libssl/tls13_record_layer.c b/lib/libssl/tls13_record_layer.c
index 1d75d9e5a48..e951d39e217 100644
--- a/lib/libssl/tls13_record_layer.c
+++ b/lib/libssl/tls13_record_layer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_record_layer.c,v 1.53 2020/09/11 15:03:36 jsing Exp $ */
+/* $OpenBSD: tls13_record_layer.c,v 1.54 2020/10/03 17:22:27 jsing Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
*
@@ -383,7 +383,7 @@ tls13_record_layer_send_pending(struct tls13_record_layer *rl)
}
static ssize_t
-tls13_record_layer_alert(struct tls13_record_layer *rl,
+tls13_record_layer_enqueue_alert(struct tls13_record_layer *rl,
uint8_t alert_level, uint8_t alert_desc)
{
CBB cbb;
@@ -1193,7 +1193,8 @@ tls13_send_alert(struct tls13_record_layer *rl, uint8_t alert_desc)
alert_level = TLS13_ALERT_LEVEL_WARNING;
do {
- ret = tls13_record_layer_alert(rl, alert_level, alert_desc);
+ ret = tls13_record_layer_enqueue_alert(rl, alert_level,
+ alert_desc);
} while (ret == TLS13_IO_WANT_RETRY);
return ret;