From 635b183481bbb672d4ab7f44a3a1342bd3eae1dd Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 4 May 2023 06:45:51 +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 --- src/lib/libcrypto/ec/ec_oct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libcrypto/ec/ec_oct.c b/src/lib/libcrypto/ec/ec_oct.c index f1b8bc5ffd..f9de2f13a1 100644 --- a/src/lib/libcrypto/ec/ec_oct.c +++ b/src/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-55-g6feb