summaryrefslogtreecommitdiff
path: root/fticks.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-09-27 18:03:12 +0200
committerLinus Nordberg <linus@nordu.net>2011-09-27 18:03:12 +0200
commit7f4c1aa892a4f42748aa7c6bbd99f200ef7f8674 (patch)
tree8c9d8ab2b00e0ce7035f99618e9bfae0e9432926 /fticks.h
parent8eeb47547e346475e7cf27a20c949a49d3e54116 (diff)
Sanitise MAC address before hashing it.
Almost closes RADSECPROXY-16.
Diffstat (limited to 'fticks.h')
-rw-r--r--fticks.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fticks.h b/fticks.h
index 8af8633..eb880c0 100644
--- a/fticks.h
+++ b/fticks.h
@@ -6,10 +6,10 @@ int fticks_configure(struct options *options,
uint8_t **reportingp,
uint8_t **macp,
uint8_t **keyp);
-void fticks_hashmac(const uint8_t *in,
- const uint8_t *key,
- size_t out_len,
- uint8_t *out);
+int fticks_hashmac(const uint8_t *in,
+ const uint8_t *key,
+ size_t out_len,
+ uint8_t *out);
void fticks_log(const struct options *options,
const struct client *client,
const struct radmsg *msg,