diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-10-01 22:03:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-10-01 22:03:09 +0200 |
commit | 934bb01d518f28fcefed81345ed6ec89510925be (patch) | |
tree | a02b0fc566263c21f44337f0a63d1ae4226384ef | |
parent | ed9aa89269569c58bd47d085f25eece0a6221973 (diff) | |
download | busybox-w32-934bb01d518f28fcefed81345ed6ec89510925be.tar.gz busybox-w32-934bb01d518f28fcefed81345ed6ec89510925be.tar.bz2 busybox-w32-934bb01d518f28fcefed81345ed6ec89510925be.zip |
tls: "server cert is not RSA" is a fatal error
function old new delta
tls_handshake 2022 2019 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1940 | if (!(tls->flags & NEED_EC_KEY)) { | 1940 | if (!(tls->flags & NEED_EC_KEY)) { |
1941 | /* RSA */ | 1941 | /* RSA */ |
1942 | if (!(tls->flags & GOT_CERT_RSA_KEY_ALG)) | 1942 | if (!(tls->flags & GOT_CERT_RSA_KEY_ALG)) |
1943 | bb_simple_error_msg("server cert is not RSA"); | 1943 | bb_simple_error_msg_and_die("server cert is not RSA"); |
1944 | 1944 | ||
1945 | tls_get_random(premaster, RSA_PREMASTER_SIZE); | 1945 | tls_get_random(premaster, RSA_PREMASTER_SIZE); |
1946 | if (TLS_DEBUG_FIXED_SECRETS) | 1946 | if (TLS_DEBUG_FIXED_SECRETS) |