← Commit list

934bb01d5

Denys Vlasenko
Denys Vlasenko
2021-10-01
SUCCESS Duration: 163s

Subject

tls: "server cert is not RSA" is a fatal error

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/tls.c+1 -1
@@ -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)