summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-07-25 06:57:26 +0000
committertb <>2023-07-25 06:57:26 +0000
commitb3f7fe3351523e30decc71fc0d9c918fb611bed7 (patch)
treefe87d2bd09a3ae606c3167eeb7ac9cfd3234bbb7
parent5a4b210f922083e52c19fbfc639d6fbf928b75f7 (diff)
downloadopenbsd-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.c4
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();