From 380757efd29c33ffefa8e0d1b8c2242278d034da Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 3 Jun 2021 11:54:55 +0000 Subject: Cosmetics --- src/sbearssl/sbearssl_client_init_and_run.c | 1 - src/sbearssl/sbearssl_run.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sbearssl/sbearssl_client_init_and_run.c b/src/sbearssl/sbearssl_client_init_and_run.c index e139820..a15a779 100644 --- a/src/sbearssl/sbearssl_client_init_and_run.c +++ b/src/sbearssl/sbearssl_client_init_and_run.c @@ -70,7 +70,6 @@ void sbearssl_client_init_and_run (int *fds, tain_t const *tto, uint32_t preopti case 0 : break ; default : strerr_diefu3x(96, "get certificate issuer key type", ": ", sbearssl_error_str(r)) ; } - br_ssl_client_set_single_ec(&cc, chain, chainlen, &key.ec, BR_KEYTYPE_KEYX | BR_KEYTYPE_SIGN, kt, br_ec_get_default(), br_ecdsa_sign_asn1_get_default()) ; break ; } 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 ; } } -- cgit v1.2.3