diff options
author | tb <> | 2023-07-25 06:57:26 +0000 |
---|---|---|
committer | tb <> | 2023-07-25 06:57:26 +0000 |
commit | b3f7fe3351523e30decc71fc0d9c918fb611bed7 (patch) | |
tree | fe87d2bd09a3ae606c3167eeb7ac9cfd3234bbb7 | |
parent | 5a4b210f922083e52c19fbfc639d6fbf928b75f7 (diff) | |
download | openbsd-b3f7fe3351523e30decc71fc0d9c918fb611bed7.tar.gz openbsd-b3f7fe3351523e30decc71fc0d9c918fb611bed7.tar.bz2 openbsd-b3f7fe3351523e30decc71fc0d9c918fb611bed7.zip |
EC_POINT_is_on_curve() error is -1, not 0.
ok miod
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index b5788492cc..00a4a703f8 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_lib.c,v 1.64 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.65 2023/07/25 06:57:26 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 | */ |
@@ -1062,7 +1062,7 @@ EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, | |||
1062 | BN_CTX *ctx_in) | 1062 | BN_CTX *ctx_in) |
1063 | { | 1063 | { |
1064 | BN_CTX *ctx; | 1064 | BN_CTX *ctx; |
1065 | int ret = 0; | 1065 | int ret = -1; |
1066 | 1066 | ||
1067 | if ((ctx = ctx_in) == NULL) | 1067 | if ((ctx = ctx_in) == NULL) |
1068 | ctx = BN_CTX_new(); | 1068 | ctx = BN_CTX_new(); |