From 3822dbb32b05c3d38030d85cc1fd6f9d52256a75 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Thu, 4 May 2023 06:45:52 +0000 Subject: Use size_t instead of int in EC_POINT_point2oct() An int would be perfectly sufficient for this, but then again there would be fewer traps. ok jsing --- lib/libcrypto/ec/ec_oct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libcrypto/ec/ec_oct.c') diff --git a/lib/libcrypto/ec/ec_oct.c b/lib/libcrypto/ec/ec_oct.c index f1b8bc5ffd0..f9de2f13a17 100644 --- a/lib/libcrypto/ec/ec_oct.c +++ b/lib/libcrypto/ec/ec_oct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_oct.c,v 1.13 2023/05/01 21:15:26 tb Exp $ */ +/* $OpenBSD: ec_oct.c,v 1.14 2023/05/04 06:45:51 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -113,7 +113,7 @@ EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx_in) { BN_CTX *ctx; - int ret = 0; + size_t ret = 0; if ((ctx = ctx_in) == NULL) ctx = BN_CTX_new(); -- cgit v1.2.3