From b3e8f4a7980701599a2efe619be2eb35273abe96 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 12 Sep 2020 17:27:11 +0000 Subject: Use the correct type for tls1_set_ec_id() The curve_id is a uint16, not an int. ok beck jsing --- src/lib/libssl/ssl_srvr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c index cbf7c180b5..eaaa57efb3 100644 --- a/src/lib/libssl/ssl_srvr.c +++ b/src/lib/libssl/ssl_srvr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_srvr.c,v 1.82 2020/09/11 17:36:27 jsing Exp $ */ +/* $OpenBSD: ssl_srvr.c,v 1.83 2020/09/12 17:27:11 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1352,7 +1352,7 @@ ssl3_send_server_kex_dhe(SSL *s, CBB *cbb) static int ssl3_send_server_kex_ecdhe_ecp(SSL *s, int nid, CBB *cbb) { - int curve_id = 0; + uint16_t curve_id; EC_KEY *ecdh; CBB ecpoint; int al; @@ -1414,7 +1414,7 @@ static int ssl3_send_server_kex_ecdhe_ecx(SSL *s, int nid, CBB *cbb) { uint8_t *public_key = NULL, *private_key = NULL; - int curve_id; + uint16_t curve_id; CBB ecpoint; int ret = -1; -- cgit v1.2.3-55-g6feb