X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/460b9539a7c15580e41a71bbc0f47ae776238915..902b7f9d095cc888d9482a77ca5aec9ec4341352:/lib/authhash.c diff --git a/lib/authhash.c b/lib/authhash.c index 360d7ef..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; @@ -63,4 +66,3 @@ comment-column:40 fill-column:79 End: */ -/* arch-tag:fbc5c3876475fbeca3f7813dff16352d */