diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-12 17:27:12 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-09-12 17:27:12 +0000 |
commit | 3bb37d54c61dcee3196f0c2b271b7729ef2e15a4 (patch) | |
tree | 1edef500d65b397bcd37937570698db774f25bef /lib/libssl | |
parent | 5118b1667ca80e4c272a71bae3bb5dfd2154ce3c (diff) |
Use the correct type for tls1_set_ec_id()
The curve_id is a uint16, not an int.
ok beck jsing
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/ssl_srvr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/ssl_srvr.c b/lib/libssl/ssl_srvr.c index cbf7c180b5d..eaaa57efb39 100644 --- a/lib/libssl/ssl_srvr.c +++ b/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; |