]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make fiat 128-bit typedefs work with older gcc 1055/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 24 Mar 2020 06:00:25 +0000 (02:00 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 26 Mar 2020 19:41:53 +0000 (15:41 -0400)
Use the int128_t and uint128_t types defined by edwards25519.c, rather
than [un]signed __int128 which does not compile with gcc 4.4.
Reported by Norm Green.

ticket: 8888
tags: pullup
target_version: 1.18-next
target_version: 1.17-next

src/plugins/preauth/spake/edwards25519.c
src/plugins/preauth/spake/edwards25519_fiat.h

index cbc26e5481ad52a011d27623fec041ac9e0511df..20394115b52f5e378b32b0adaadedc306d9bbffd 100644 (file)
@@ -68,7 +68,9 @@
  *   generation.  The fiat_25519_selectznz and fiat_25519_carry_scmul_121666
  *   functions were removed from both branches as they are not used here (the
  *   former because it is not used by the BoringSSL code and the latter because
- *   it is only used by the X25519 code).
+ *   it is only used by the X25519 code).  The fiat_25519_int128 and
+ *   fiat_25519_uint128 typedefs were adjusted to work with older versions of
+ *   gcc.
  *
  * - fe_cmov() has the initial "Silence an unused function warning" part
  *   removed, as we removed fiat_25519_selectznz instead.
index b61cb490a191f74325f6ce08dd5fa887695f0db8..48ade9210dbd24ad43a62f9afc912401ea97beda 100644 (file)
@@ -11,8 +11,8 @@
 #include <stdint.h>
 typedef unsigned char fiat_25519_uint1;
 typedef signed char fiat_25519_int1;
-typedef signed __int128 fiat_25519_int128;
-typedef unsigned __int128 fiat_25519_uint128;
+typedef int128_t fiat_25519_int128;
+typedef uint128_t fiat_25519_uint128;
 
 
 /*