From b28f193c68fe343a091de14d2ee39bacf723f1bd Mon Sep 17 00:00:00 2001 From: slontis Date: Fri, 28 Mar 2025 18:57:48 +1100 Subject: [PATCH] Fix c++ comment in ec code. This is a 9 month old change, so I am not sure why it is only causing a compile issue now. Reported by David Makepeace Reviewed-by: Tim Hudson Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27186) (cherry picked from commit ea77608920e88812a5278be351e3ebbfdb81d992) --- crypto/ec/ecp_nistz256.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ecp_nistz256.c b/crypto/ec/ecp_nistz256.c index 36b1d164f4b..dfb63c4ca48 100644 --- a/crypto/ec/ecp_nistz256.c +++ b/crypto/ec/ecp_nistz256.c @@ -1522,7 +1522,7 @@ static int ecp_nistz256group_full_init(EC_GROUP *group, goto err; } if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL - || !BN_set_word(x, (BN_ULONG)1)) { // cofactor is 1 + || !BN_set_word(x, (BN_ULONG)1)) { /* cofactor is 1 */ ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB); goto err; } -- 2.47.2