summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ec/ec_convert.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-10-30 18:18:36 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-10-30 18:18:36 +0000
commitb161b676108006136f44fbb6c6ec71d0402674a8 (patch)
treea96880e8b97e0d8a1c46ea92c5d0f6329b3c1838 /lib/libcrypto/ec/ec_convert.c
parent447702e8e8476a7732047c94a8d04413aa3636cb (diff)
Replace hardcoded 1U with EC_OCT_YBIT
Diffstat (limited to 'lib/libcrypto/ec/ec_convert.c')
-rw-r--r--lib/libcrypto/ec/ec_convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ec/ec_convert.c b/lib/libcrypto/ec/ec_convert.c
index 123cf90ef94..f6ee1f97022 100644
--- a/lib/libcrypto/ec/ec_convert.c
+++ b/lib/libcrypto/ec/ec_convert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_convert.c,v 1.2 2024/10/30 18:16:34 tb Exp $ */
+/* $OpenBSD: ec_convert.c,v 1.3 2024/10/30 18:18:35 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
@@ -417,7 +417,7 @@ ec_point_from_octets(const EC_GROUP *group, const unsigned char *buf, size_t buf
goto err;
if (out_form != NULL)
- *out_form = buf[0] & ~1U; /* XXX - EC_OCT_YBIT */
+ *out_form = buf[0] & ~EC_OCT_YBIT;
*out_point = point;
point = NULL;