diff options
author | tb <> | 2023-05-04 06:45:51 +0000 |
---|---|---|
committer | tb <> | 2023-05-04 06:45:51 +0000 |
commit | 635b183481bbb672d4ab7f44a3a1342bd3eae1dd (patch) | |
tree | a6902b8576b2a5f2a6b0497b104ee0eb40d6ea55 | |
parent | 1a43c80732d3fdedb0f9c563fa55592ab28901ff (diff) | |
download | openbsd-635b183481bbb672d4ab7f44a3a1342bd3eae1dd.tar.gz openbsd-635b183481bbb672d4ab7f44a3a1342bd3eae1dd.tar.bz2 openbsd-635b183481bbb672d4ab7f44a3a1342bd3eae1dd.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
-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(); |