summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto
diff options
context:
space:
mode:
authortb <>2025-12-26 18:49:13 +0000
committertb <>2025-12-26 18:49:13 +0000
commitc9338745181f31ae01336081edfdb738c0b76d5f (patch)
tree070d0332b3da12ad9a2f25d9811dc7a36ebd9004 /src/lib/libcrypto
parent0e28e8b910443b64c021ba44af8042b9ae325e5c (diff)
downloadopenbsd-c9338745181f31ae01336081edfdb738c0b76d5f.tar.gz
openbsd-c9338745181f31ae01336081edfdb738c0b76d5f.tar.bz2
openbsd-c9338745181f31ae01336081edfdb738c0b76d5f.zip
Use group method on point_{set_to,is_at}_infinity()
All other public APIs call group->meth->... not point->meth->...
Diffstat (limited to 'src/lib/libcrypto')
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index dc8800dff2..30b2cf95b8 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.130 2025/12/26 18:45:42 tb Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.131 2025/12/26 18:49:13 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 */
@@ -915,7 +915,7 @@ EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point)
915 ECerror(EC_R_INCOMPATIBLE_OBJECTS); 915 ECerror(EC_R_INCOMPATIBLE_OBJECTS);
916 return 0; 916 return 0;
917 } 917 }
918 return point->meth->point_set_to_infinity(group, point); 918 return group->meth->point_set_to_infinity(group, point);
919} 919}
920LCRYPTO_ALIAS(EC_POINT_set_to_infinity); 920LCRYPTO_ALIAS(EC_POINT_set_to_infinity);
921 921
@@ -1219,7 +1219,7 @@ EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *point)
1219 ECerror(EC_R_INCOMPATIBLE_OBJECTS); 1219 ECerror(EC_R_INCOMPATIBLE_OBJECTS);
1220 return 0; 1220 return 0;
1221 } 1221 }
1222 return point->meth->point_is_at_infinity(group, point); 1222 return group->meth->point_is_at_infinity(group, point);
1223} 1223}
1224LCRYPTO_ALIAS(EC_POINT_is_at_infinity); 1224LCRYPTO_ALIAS(EC_POINT_is_at_infinity);
1225 1225