From 61349d3d273aa23935b0c413c5885005db2669db Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 29 Nov 2013 05:33:12 +0100 Subject: Compile with -std=c99 and restructure some code to ensure there is no invalid aliasing (hopefully) --- src/protocols/ec25519_fhmqvc/util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/protocols/ec25519_fhmqvc/util.c') diff --git a/src/protocols/ec25519_fhmqvc/util.c b/src/protocols/ec25519_fhmqvc/util.c index 07f4724..e653f7f 100644 --- a/src/protocols/ec25519_fhmqvc/util.c +++ b/src/protocols/ec25519_fhmqvc/util.c @@ -59,19 +59,19 @@ void fastd_protocol_ec25519_fhmqvc_generate_key(fastd_context_t *ctx) { void fastd_protocol_ec25519_fhmqvc_show_key(fastd_context_t *ctx) { if (ctx->conf->machine_readable) - print_hexdump("", ctx->conf->protocol_config->key.public.p); + print_hexdump("", ctx->conf->protocol_config->key.public.u8); else - print_hexdump("Public: ", ctx->conf->protocol_config->key.public.p); + print_hexdump("Public: ", ctx->conf->protocol_config->key.public.u8); } void fastd_protocol_ec25519_fhmqvc_set_shell_env(fastd_context_t *ctx, const fastd_peer_t *peer) { char buf[65]; - hexdump(buf, ctx->conf->protocol_config->key.public.p); + hexdump(buf, ctx->conf->protocol_config->key.public.u8); setenv("LOCAL_KEY", buf, 1); if (peer && peer->protocol_config) { - hexdump(buf, peer->protocol_config->public_key.p); + hexdump(buf, peer->protocol_config->public_key.u8); setenv("PEER_KEY", buf, 1); } else { @@ -83,7 +83,7 @@ bool fastd_protocol_ec25519_fhmqvc_describe_peer(const fastd_context_t *ctx UNUS if (peer && peer->protocol_config) { char dumpbuf[65]; - hexdump(dumpbuf, peer->protocol_config->public_key.p); + hexdump(dumpbuf, peer->protocol_config->public_key.u8); snprintf(buf, len, "%.16s", dumpbuf); return true; } -- cgit v1.2.3