diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-07-01 17:01:13 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-07-01 17:01:13 +0200 |
commit | a0be6d31b4da42e854ae1d05cffc193e8072223a (patch) | |
tree | 0905a71f3fb64e31daaa702186e1119d4724c8dc /src/handshake.h | |
parent | cb74214fffc7b782f2868a74f834f0b72e0b984f (diff) | |
download | fastd-a0be6d31b4da42e854ae1d05cffc193e8072223a.tar fastd-a0be6d31b4da42e854ae1d05cffc193e8072223a.zip |
Add support for multiple crypto methods without reconfiguration
Diffstat (limited to 'src/handshake.h')
-rw-r--r-- | src/handshake.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |