aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-06 03:30:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-06 03:30:06 +0100
commit1aa8364b1767a84ce32ecec424820bdb98a286b1 (patch)
tree904cf4e5c1716d5f414a5be0391a8dadaea6af51 /contrib
parentwg.8: AllowedIPs isn't actually required (diff)
downloadwireguard-tools-1aa8364b1767a84ce32ecec424820bdb98a286b1.tar.xz
wireguard-tools-1aa8364b1767a84ce32ecec424820bdb98a286b1.zip
keygen-html: add missing glue macro
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/keygen-html/src/curve25519_generate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/keygen-html/src/curve25519_generate.c b/contrib/keygen-html/src/curve25519_generate.c
index 1e69d28..1e76787 100644
--- a/contrib/keygen-html/src/curve25519_generate.c
+++ b/contrib/keygen-html/src/curve25519_generate.c
@@ -30,6 +30,7 @@ enum { CURVE25519_KEY_SIZE = 32 };
#else
#define le32_to_cpup(a) __builtin_bswap32(*(a))
#endif
+#define get_unaligned_le32(a) le32_to_cpup((u32 *)(a))
#define memset(a, b, c) __builtin_memset(a, b, c)
#define memcpy(a, b, c) __builtin_memcpy(a, b, c)