From 49068deeca118969162ea5680e55dfd6aa3d1f00 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 30 Oct 2024 18:18:35 +0000 Subject: Replace hardcoded 1U with EC_OCT_YBIT --- src/lib/libcrypto/ec/ec_convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/ec/ec_convert.c b/src/lib/libcrypto/ec/ec_convert.c index 123cf90ef9..f6ee1f9702 100644 --- a/src/lib/libcrypto/ec/ec_convert.c +++ b/src/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; -- cgit v1.2.3-55-g6feb