-/* $OpenBSD: tls13_internal.h,v 1.103 2024/01/27 14:31:01 jsing Exp $ */
+/* $OpenBSD: tls13_internal.h,v 1.104 2024/09/09 03:32:29 tb Exp $ */
/*
* Copyright (c) 2018 Bob Beck <beck@openbsd.org>
* Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
void tls13_record_layer_set_legacy_version(struct tls13_record_layer *rl,
uint16_t version);
void tls13_record_layer_set_retry_after_phh(struct tls13_record_layer *rl, int retry);
+void tls13_record_layer_alert_sent(struct tls13_record_layer *rl,
+ uint8_t alert_level, uint8_t alert_desc);
void tls13_record_layer_handshake_completed(struct tls13_record_layer *rl);
int tls13_record_layer_set_read_traffic_key(struct tls13_record_layer *rl,
struct tls13_secret *read_key, enum ssl_encryption_level_t read_level);
-/* $OpenBSD: tls13_record_layer.c,v 1.73 2024/01/27 14:23:51 jsing Exp $ */
+/* $OpenBSD: tls13_record_layer.c,v 1.74 2024/09/09 03:32:29 tb Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
*
return ret;
}
+void
+tls13_record_layer_alert_sent(struct tls13_record_layer *rl,
+ uint8_t alert_level, uint8_t alert_desc)
+{
+ rl->cb.alert_sent(alert_level, alert_desc, rl->cb_arg);
+}
+
static ssize_t
tls13_record_layer_send_alert(struct tls13_record_layer *rl)
{
ret = TLS13_IO_ALERT;
}
- rl->cb.alert_sent(rl->alert_level, rl->alert_desc, rl->cb_arg);
+ tls13_record_layer_alert_sent(rl, rl->alert_level, rl->alert_desc);
return ret;
}