summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_run.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 11:54:55 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 11:54:55 +0000
commit380757efd29c33ffefa8e0d1b8c2242278d034da (patch)
tree234079bf5e971d3fad3fcb18667e273f9a04de99 /src/sbearssl/sbearssl_run.c
parent40126b1e5bd64dae465aacf8e68d6ed8b96d1490 (diff)
downloads6-networking-380757efd29c33ffefa8e0d1b8c2242278d034da.tar.xz
Cosmetics
Diffstat (limited to 'src/sbearssl/sbearssl_run.c')
-rw-r--r--src/sbearssl/sbearssl_run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbearssl/sbearssl_run.c b/src/sbearssl/sbearssl_run.c
index 5c6f633..93a2c26 100644
--- a/src/sbearssl/sbearssl_run.c
+++ b/src/sbearssl/sbearssl_run.c
@@ -37,7 +37,7 @@ void sbearssl_run (br_ssl_engine_context *ctx, int *fds, tain_t const *tto, uint
if (state & BR_SSL_CLOSED)
{
r = br_ssl_engine_last_error(ctx) ;
- if (r) strerr_diefu2x(98, "establish or maintain SSL connection to peer: ", sbearssl_error_str(r)) ;
+ if (r) strerr_dief4x(98, "the TLS engine closed the connection ", handshake_done ? "after" : "during", " the handshake: ", sbearssl_error_str(r)) ;
break ;
}
@@ -49,7 +49,7 @@ void sbearssl_run (br_ssl_engine_context *ctx, int *fds, tain_t const *tto, uint
if (!handshake_done)
{
if (!(*cb)(ctx, cbarg))
- strerr_diefu1sys(111, "post-handshake callback failed") ;
+ strerr_dief1sys(111, "post-handshake callback failed") ;
handshake_done = 1 ;
}
}