chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'branchpoint-5.1' into release
[disorder]
/
lib
/
authhash.c
diff --git
a/lib/authhash.c
b/lib/authhash.c
index 8cc96f904542949d984c5104efe83be04040ff42..c06c233ed26642833a92517ce9ae425a93ba758e 100644
(file)
--- a/
lib/authhash.c
+++ b/
lib/authhash.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder
/*
* 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
*
* 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.
*/
* Computes H(challenge|password) and returns it as a newly allocated hex
* string, or returns NULL on error.
*/
-c
onst c
har *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;
gcrypt_hash_handle h;
- c
onst c
har *res;
+ char *res;
size_t n;
int id;
size_t n;
int id;