From a0be6d31b4da42e854ae1d05cffc193e8072223a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 1 Jul 2012 17:01:13 +0200 Subject: Add support for multiple crypto methods without reconfiguration --- src/handshake.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/handshake.h') diff --git a/src/handshake.h b/src/handshake.h index 2e26194..0db4e2f 100644 --- a/src/handshake.h +++ b/src/handshake.h @@ -45,6 +45,7 @@ typedef enum _fastd_handshake_record_type { RECORD_MTU, RECORD_METHOD_NAME, RECORD_VERSION_NAME, + RECORD_METHOD_LIST, RECORD_MAX, } fastd_handshake_record_type; @@ -68,7 +69,7 @@ struct _fastd_handshake { fastd_buffer fastd_handshake_new_init(fastd_context *ctx, size_t tail_space); -fastd_buffer fastd_handshake_new_reply(fastd_context *ctx, const fastd_handshake *handshake, size_t tail_space); +fastd_buffer fastd_handshake_new_reply(fastd_context *ctx, const fastd_handshake *handshake, const fastd_method *method, size_t tail_space); void fastd_handshake_handle(fastd_context *ctx, const fastd_peer_address *address, const fastd_peer_config *peer_conf, fastd_buffer buffer); -- cgit v1.2.3