]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix c++ comment in ec code.
authorslontis <shane.lontis@oracle.com>
Fri, 28 Mar 2025 07:57:48 +0000 (18:57 +1100)
committerTomas Mraz <tomas@openssl.org>
Mon, 31 Mar 2025 12:03:38 +0000 (14:03 +0200)
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 <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27186)

crypto/ec/ecp_nistz256.c

index 36b1d164f4bfeb38118b756e8da1b554bd70c1b1..dfb63c4ca48b791bf4f8e35d8d1d21db0f3bf78a 100644 (file)
@@ -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;
     }