summaryrefslogtreecommitdiffstats
path: root/src/methods/null/null.c
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/methods/null/null.c
parent310cc1260fbd47016027bba04bc0c39b9c9144b3 (diff)
downloadfastd-f0de72ae8d04fcd97c03cc52ac2bc8dc6c2c0527.tar
fastd-f0de72ae8d04fcd97c03cc52ac2bc8dc6c2c0527.zip
Add missing const attribute to secret argument of the session init functions
Diffstat (limited to 'src/methods/null/null.c')
-rw-r--r--src/methods/null/null.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/methods/null/null.c b/src/methods/null/null.c
index c51b592..f49d94a 100644
--- a/src/methods/null/null.c
+++ b/src/methods/null/null.c
@@ -45,7 +45,7 @@ static size_t method_key_length(fastd_context_t *ctx UNUSED) {
return 0;
}
-static fastd_method_session_state_t* method_session_init(fastd_context_t *ctx UNUSED, uint8_t *secret UNUSED, bool initiator) {
+static fastd_method_session_state_t* method_session_init(fastd_context_t *ctx UNUSED, const uint8_t *secret UNUSED, bool initiator) {
fastd_method_session_state_t *session = malloc(sizeof(fastd_method_session_state_t));
session->valid = true;
@@ -54,7 +54,7 @@ static fastd_method_session_state_t* method_session_init(fastd_context_t *ctx UN
return session;
}
-static fastd_method_session_state_t* method_session_init_compat(fastd_context_t *ctx, uint8_t *secret, size_t length UNUSED, bool initiator) {
+static fastd_method_session_state_t* method_session_init_compat(fastd_context_t *ctx, const uint8_t *secret, size_t length UNUSED, bool initiator) {
return method_session_init(ctx, secret, initiator);
}