From fcb721d73382e62addc365630c8bddd25bb64979 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 26 Jul 2019 12:47:16 +0100 Subject: [PATCH] Correct documentation on use of alert pending --- include/mbedtls/ssl_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h index 74c709c5e..d3b426b53 100644 --- a/include/mbedtls/ssl_internal.h +++ b/include/mbedtls/ssl_internal.h @@ -1735,7 +1735,8 @@ static inline unsigned int mbedtls_ssl_conf_get_ems_enforced( * * The check for pending alerts must be done by calling * the function ssl_send_pending_fatal_alert() in ssl_tls.c. - * Currently, it happens only during the handshake loop. + * Currently, it happens only during the handshake loop and after + * calling ssl_get_next_record() in the record processing stack. * * This function must not be called multiple times without * sending the pending fatal alerts in between.