diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-05 18:10:11 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-05 18:10:11 +0200 |
commit | 0f14f5562917c85cbe35eb8eeed6ab1e27922af3 (patch) | |
tree | 5c53a7fa1b583c8d44f250addb25284e0bb1e7cd /src/fastd.h | |
parent | 227af67a3cbf665f46c172dfd5147065c9ae95aa (diff) | |
download | fastd-0f14f5562917c85cbe35eb8eeed6ab1e27922af3.tar fastd-0f14f5562917c85cbe35eb8eeed6ab1e27922af3.zip |
Fix possible duplicate session establishment
This is causing duplicate nonces in the worst case.
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h index 8d7ce59..90dcb7c 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -86,7 +86,7 @@ struct _fastd_method { size_t (*min_encrypt_head_space)(fastd_context *ctx); size_t (*min_decrypt_head_space)(fastd_context *ctx); - fastd_method_session_state* (*session_init)(fastd_context *ctx, uint8_t *secret, size_t length, bool initiator); + fastd_method_session_state* (*session_init)(fastd_context *ctx, uint8_t *secret, size_t length, bool initiator, fastd_method_session_state *prev_session); bool (*session_is_valid)(fastd_context *ctx, fastd_method_session_state *session); bool (*session_is_initiator)(fastd_context *ctx, fastd_method_session_state *session); bool (*session_want_refresh)(fastd_context *ctx, fastd_method_session_state *session); |