tls: "server did not provide EC key" is fatal
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d005c9f4c7
commit
6ca36077cc
@ -1957,7 +1957,7 @@ static void send_client_key_exchange(tls_state_t *tls)
|
|||||||
uint8_t privkey[CURVE25519_KEYSIZE]; //[32]
|
uint8_t privkey[CURVE25519_KEYSIZE]; //[32]
|
||||||
|
|
||||||
if (!(tls->flags & GOT_EC_KEY))
|
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 */
|
/* Generate random private key, see RFC 7748 */
|
||||||
tls_get_random(privkey, sizeof(privkey));
|
tls_get_random(privkey, sizeof(privkey));
|
||||||
|
Loading…
Reference in New Issue
Block a user