diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-06-03 11:54:55 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-06-03 11:54:55 +0000 |
commit | 380757efd29c33ffefa8e0d1b8c2242278d034da (patch) | |
tree | 234079bf5e971d3fad3fcb18667e273f9a04de99 | |
parent | 40126b1e5bd64dae465aacf8e68d6ed8b96d1490 (diff) | |
download | s6-networking-380757efd29c33ffefa8e0d1b8c2242278d034da.tar.xz |
Cosmetics
-rw-r--r-- | src/sbearssl/sbearssl_client_init_and_run.c | 1 | ||||
-rw-r--r-- | 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 ; } } |