chiark / gitweb /
put the newline in the right place
[disorder] / lib / authhash.c
index 360d7ef9e7e6781886df728ec88f6ddc74049179..a1012ba0e9ba570ee8c905dc4c2cf823d917b13a 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <stddef.h>
 #include <gcrypt.h>
+#include <assert.h>
 
 #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 */