X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..1c0d78bd318594a3ec6b35a9b7015c010c48ffc2:/lib/authhash.c?ds=sidebyside diff --git a/lib/authhash.c b/lib/authhash.c index 7850c11..a1012ba 100644 --- a/lib/authhash.c +++ b/lib/authhash.c @@ -23,6 +23,7 @@ #include #include +#include #include "hex.h" #include "log.h" @@ -36,7 +37,9 @@ const char *authhash(const void *challenge, size_t nchallenge, const char *password) { gcrypt_hash_handle h; const char *res; - + + assert(challenge != 0); + assert(password != 0); #if HAVE_GCRY_ERROR_T { gcry_error_t e;