projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
EC_POINT_is_on_curve does not return a boolean
[openssl.git]
/
crypto
/
ec
/
ec2_oct.c
diff --git
a/crypto/ec/ec2_oct.c
b/crypto/ec/ec2_oct.c
index 821c3710096aeb70e3c2a86fd388e5e6c2ab7e43..33f703b168bf56e58a98b4c9a3393388a351fe6b 100644
(file)
--- a/
crypto/ec/ec2_oct.c
+++ b/
crypto/ec/ec2_oct.c
@@
-384,7
+384,7
@@
int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
}
/* test required by X9.62 */
- if (
!EC_POINT_is_on_curve(group, point, ctx)
) {
+ if (
EC_POINT_is_on_curve(group, point, ctx) <= 0
) {
ECerr(EC_F_EC_GF2M_SIMPLE_OCT2POINT, EC_R_POINT_IS_NOT_ON_CURVE);
goto err;
}