From 32a5ae4e65844615cb3e32aaefcdb7abe4af54c9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Feb 2019 17:10:20 +0100 Subject: Add HMAC and use void * instead of char * for binary data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- marshal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'marshal.c') diff --git a/marshal.c b/marshal.c index ed0cce5..ba00af2 100644 --- a/marshal.c +++ b/marshal.c @@ -10,8 +10,9 @@ * @return The number of bytes marshalled to `buf` */ size_t -libsha2_marshal(const struct libsha2_state *restrict state, char *restrict buf) +libsha2_marshal(const struct libsha2_state *restrict state, void *restrict buf_) { + char *restrict buf = buf_; size_t off = 0; if (buf) -- cgit v1.2.3-70-g09d2