diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-01 00:25:06 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-01 00:25:06 +0100 |
commit | 310cc1260fbd47016027bba04bc0c39b9c9144b3 (patch) | |
tree | ffecc2bea19317757528e57d3621f30fbc51e077 /src/fastd.h | |
parent | 542861816d8305afa113653a84073be2fca68e50 (diff) | |
download | fastd-310cc1260fbd47016027bba04bc0c39b9c9144b3.tar fastd-310cc1260fbd47016027bba04bc0c39b9c9144b3.zip |
Implement new session init API
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h index 2c3de6a..c47dafd 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -87,6 +87,8 @@ struct fastd_method { size_t (*min_encrypt_tail_space)(fastd_context_t *ctx); size_t (*min_decrypt_tail_space)(fastd_context_t *ctx); + size_t (*key_length)(fastd_context_t *ctx); + fastd_method_session_state_t* (*session_init)(fastd_context_t *ctx, uint8_t *secret, bool initiator); fastd_method_session_state_t* (*session_init_compat)(fastd_context_t *ctx, uint8_t *secret, size_t length, bool initiator); bool (*session_is_valid)(fastd_context_t *ctx, fastd_method_session_state_t *session); bool (*session_is_initiator)(fastd_context_t *ctx, fastd_method_session_state_t *session); |