From 310cc1260fbd47016027bba04bc0c39b9c9144b3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 1 Nov 2013 00:25:06 +0100 Subject: Implement new session init API --- src/fastd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fastd.h') 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); -- cgit v1.2.3