From 2d5f1415d73db4aa10c10063e4239f63a1b1cd68 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 4 May 2023 06:45:51 +0000 Subject: [PATCH] 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(-) 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(); -- 2.20.1