X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/2e9ba080dd30434f3e8f88e63029280889586a32..f74f4f32805a96d5079b90455264a160d91be3af:/lib/authhash.c diff --git a/lib/authhash.c b/lib/authhash.c index 8cc96f9..c06c233 100644 --- a/lib/authhash.c +++ b/lib/authhash.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2004, 2006, 2007 Richard Kettlewell + * Copyright (C) 2004, 2006, 2007, 2009 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -64,10 +64,10 @@ static const struct algorithm algorithms[] = { * Computes H(challenge|password) and returns it as a newly allocated hex * string, or returns NULL on error. */ -const char *authhash(const void *challenge, size_t nchallenge, - const char *password, const char *algo) { +char *authhash(const void *challenge, size_t nchallenge, + const char *password, const char *algo) { gcrypt_hash_handle h; - const char *res; + char *res; size_t n; int id;