diff options
author | jsing <> | 2024-01-27 14:23:51 +0000 |
---|---|---|
committer | jsing <> | 2024-01-27 14:23:51 +0000 |
commit | 340a6fc865a1f962157425333362f1ccd2f6fc4d (patch) | |
tree | 9cbd5fde21560efd1f35dcf0b36726c3ac48b0c5 /src/lib/libssl/tls13_record_layer.c | |
parent | d01a2efdc6e392ca2ff82cecb4ec37c80c960b94 (diff) | |
download | openbsd-340a6fc865a1f962157425333362f1ccd2f6fc4d.tar.gz openbsd-340a6fc865a1f962157425333362f1ccd2f6fc4d.tar.bz2 openbsd-340a6fc865a1f962157425333362f1ccd2f6fc4d.zip |
Add message callbacks for alerts in the TLSv1.3 stack.
This will make it easier to regress test shutdown behaviour in the TLSv1.3
stack. Additionally, `openssl -msg` now shows alerts for TLSv1.3
connections.
ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_record_layer.c')
-rw-r--r-- | src/lib/libssl/tls13_record_layer.c | 6 |
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 4ae4e298eb..5432744cd7 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.72 2022/11/11 17:15:27 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_record_layer.c,v 1.73 2024/01/27 14:23:51 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 | * |
@@ -327,7 +327,7 @@ tls13_record_layer_process_alert(struct tls13_record_layer *rl) | |||
327 | return tls13_send_alert(rl, TLS13_ALERT_ILLEGAL_PARAMETER); | 327 | return tls13_send_alert(rl, TLS13_ALERT_ILLEGAL_PARAMETER); |
328 | } | 328 | } |
329 | 329 | ||
330 | rl->cb.alert_recv(alert_desc, rl->cb_arg); | 330 | rl->cb.alert_recv(alert_level, alert_desc, rl->cb_arg); |
331 | 331 | ||
332 | return ret; | 332 | return ret; |
333 | } | 333 | } |
@@ -361,7 +361,7 @@ tls13_record_layer_send_alert(struct tls13_record_layer *rl) | |||
361 | ret = TLS13_IO_ALERT; | 361 | ret = TLS13_IO_ALERT; |
362 | } | 362 | } |
363 | 363 | ||
364 | rl->cb.alert_sent(rl->alert_desc, rl->cb_arg); | 364 | rl->cb.alert_sent(rl->alert_level, rl->alert_desc, rl->cb_arg); |
365 | 365 | ||
366 | return ret; | 366 | return ret; |
367 | } | 367 | } |