← Commit list

6ca36077c

Denys Vlasenko
Denys Vlasenko
2021-04-24
SUCCESS Duration: 154s

Subject

tls: "server did not provide EC key" is fatal

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
@@ -1957,7 +1957,7 @@ static void send_client_key_exchange(tls_state_t *tls)
uint8_t privkey[CURVE25519_KEYSIZE]; //[32]
if (!(tls->flags & GOT_EC_KEY))
- bb_simple_error_msg("server did not provide EC key");
+ bb_simple_error_msg_and_die("server did not provide EC key");
/* Generate random private key, see RFC 7748 */
tls_get_random(privkey, sizeof(privkey));