From 9e037307576cb21d9f04b9686d7c41cf4c5e37b0 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 27 Apr 2015 19:14:13 +0000 Subject: - refactor kx handling --- src/cadet/cadet_protocol.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/cadet/cadet_protocol.h') diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h index dc91af304..1c0a1a89f 100644 --- a/src/cadet/cadet_protocol.h +++ b/src/cadet/cadet_protocol.h @@ -72,6 +72,7 @@ struct GNUNET_CADET_ConnectionCreate /* struct GNUNET_PeerIdentity peers[path_length]; */ }; + /** * Message for ack'ing a connection */ @@ -109,6 +110,26 @@ struct GNUNET_CADET_KX }; + +/** + * Message for encapsulation of a Key eXchange message in a connection. + */ +struct GNUNET_CADET_AX_KX +{ + /** + * Type: GNUNET_MESSAGE_TYPE_CADET_AX_KX. + */ + struct GNUNET_MessageHeader header; + + /** + * Ephemeral public ECC key (always for NIST P-521) encoded in a format + * suitable for network transmission as created using 'gcry_sexp_sprint'. + */ + struct GNUNET_CRYPTO_EcdhePublicKey ephemeral_key; + +}; + + /** * Message transmitted with the signed ephemeral key of a peer. The * session key is then derived from the two ephemeral keys (ECDHE). -- cgit v1.2.3