summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-01 00:59:13 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-01 00:59:13 +0100
commitf0de72ae8d04fcd97c03cc52ac2bc8dc6c2c0527 (patch)
tree86a63dfe0643d3f6de446dcf4b528b6fd5e914ae /src/fastd.h
parent310cc1260fbd47016027bba04bc0c39b9c9144b3 (diff)
downloadfastd-f0de72ae8d04fcd97c03cc52ac2bc8dc6c2c0527.tar
fastd-f0de72ae8d04fcd97c03cc52ac2bc8dc6c2c0527.zip
Add missing const attribute to secret argument of the session init functions
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h
index c47dafd..9c168af 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -88,8 +88,8 @@ struct fastd_method {
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);
+ fastd_method_session_state_t* (*session_init)(fastd_context_t *ctx, const uint8_t *secret, bool initiator);
+ fastd_method_session_state_t* (*session_init_compat)(fastd_context_t *ctx, const 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);
bool (*session_want_refresh)(fastd_context_t *ctx, fastd_method_session_state_t *session);