summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_record_layer.c
diff options
context:
space:
mode:
authorjsing <>2020-05-11 17:46:46 +0000
committerjsing <>2020-05-11 17:46:46 +0000
commit7c5ba230fb08375f5c6d8d074afcf25d0fdb429c (patch)
treeb2fa73b5afe4f2d2dd7f646fa971a43e0c549c0f /src/lib/libssl/tls13_record_layer.c
parent7fc47fb1fd67ca9212681c6ffdaa77fe0f2e7332 (diff)
downloadopenbsd-7c5ba230fb08375f5c6d8d074afcf25d0fdb429c.tar.gz
openbsd-7c5ba230fb08375f5c6d8d074afcf25d0fdb429c.tar.bz2
openbsd-7c5ba230fb08375f5c6d8d074afcf25d0fdb429c.zip
Provide an alert sent record layer callback.
Use this to push an error on to the SSL error stack so that we report the details of the alert that we sent, rather than failing with an unknown error. ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_record_layer.c')
-rw-r--r--src/lib/libssl/tls13_record_layer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_record_layer.c b/src/lib/libssl/tls13_record_layer.c
index 62b32e4631..e7650b1ecc 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.38 2020/05/11 17:28:33 jsing Exp $ */ 1/* $OpenBSD: tls13_record_layer.c,v 1.39 2020/05/11 17:46:46 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 *
@@ -321,6 +321,8 @@ tls13_record_layer_send_alert(struct tls13_record_layer *rl)
321 ret = TLS13_IO_ALERT; 321 ret = TLS13_IO_ALERT;
322 } 322 }
323 323
324 rl->cb.alert_sent(rl->alert_desc, rl->cb_arg);
325
324 return ret; 326 return ret;
325} 327}
326 328