diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-04 06:45:52 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-04 06:45:52 +0000 |
commit | 3822dbb32b05c3d38030d85cc1fd6f9d52256a75 (patch) | |
tree | 2966d8f348bc63171658a1b035fa9ac988ecf7ac | |
parent | a859ebc2e03b55864a8054d5007d6db094e002fc (diff) |
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
-rw-r--r-- | lib/libcrypto/ec/ec_oct.c | 4 |
1 files 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(); |