From ca127fccb899627e9e9a69d139bd27d79b30cd54 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 30 Mar 2012 02:26:30 +0200 Subject: Rework handshake... again. ecfxp protocol broken, will be fixed with next commit. --- src/fastd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index ba5aed0..4db53e4 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -64,7 +64,8 @@ struct _fastd_protocol { size_t (*min_encrypt_head_space)(fastd_context *ctx); size_t (*min_decrypt_head_space)(fastd_context *ctx); - void (*init_peer)(fastd_context *ctx, fastd_peer *peer); + void (*handshake_init)(fastd_context *ctx, fastd_peer *peer); + void (*handshake_handle)(fastd_context *ctx, fastd_peer *peer, const fastd_handshake *handshake); void (*handle_recv)(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); void (*send)(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); @@ -123,7 +124,6 @@ struct _fastd_context { fastd_peer_eth_addr *eth_addr; }; - void fastd_printf(const fastd_context *ctx, const char *format, ...); void fastd_read_config_dir(fastd_context *ctx, fastd_config *conf, const char *dir, int depth); -- cgit v1.2.3