From 934bb01d518f28fcefed81345ed6ec89510925be Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 1 Oct 2021 22:03:09 +0200 Subject: tls: "server cert is not RSA" is a fatal error function old new delta tls_handshake 2022 2019 -3 Signed-off-by: Denys Vlasenko --- networking/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/tls.c b/networking/tls.c index d0b976c33..7ae9e5a1f 100644 --- a/networking/tls.c +++ b/networking/tls.c @@ -1940,7 +1940,7 @@ static void send_client_key_exchange(tls_state_t *tls) if (!(tls->flags & NEED_EC_KEY)) { /* RSA */ if (!(tls->flags & GOT_CERT_RSA_KEY_ALG)) - bb_simple_error_msg("server cert is not RSA"); + bb_simple_error_msg_and_die("server cert is not RSA"); tls_get_random(premaster, RSA_PREMASTER_SIZE); if (TLS_DEBUG_FIXED_SECRETS) -- cgit v1.2.3