diff options
| author | tb <> | 2023-05-04 06:45:51 +0000 |
|---|---|---|
| committer | tb <> | 2023-05-04 06:45:51 +0000 |
| commit | 8a02aac9575eea91563def962198bdc21f7540e5 (patch) | |
| tree | a6902b8576b2a5f2a6b0497b104ee0eb40d6ea55 /src | |
| parent | 4ca7859ef012b92557c5138cdf4216bff1b0bff9 (diff) | |
| download | openbsd-8a02aac9575eea91563def962198bdc21f7540e5.tar.gz openbsd-8a02aac9575eea91563def962198bdc21f7540e5.tar.bz2 openbsd-8a02aac9575eea91563def962198bdc21f7540e5.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_oct.c | 4 |
1 files 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 @@ | |||
| 1 | /* $OpenBSD: ec_oct.c,v 1.13 2023/05/01 21:15:26 tb Exp $ */ | 1 | /* $OpenBSD: ec_oct.c,v 1.14 2023/05/04 06:45:51 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -113,7 +113,7 @@ EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, | |||
| 113 | BN_CTX *ctx_in) | 113 | BN_CTX *ctx_in) |
| 114 | { | 114 | { |
| 115 | BN_CTX *ctx; | 115 | BN_CTX *ctx; |
| 116 | int ret = 0; | 116 | size_t ret = 0; |
| 117 | 117 | ||
| 118 | if ((ctx = ctx_in) == NULL) | 118 | if ((ctx = ctx_in) == NULL) |
| 119 | ctx = BN_CTX_new(); | 119 | ctx = BN_CTX_new(); |
