X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..6cad0c845dc5d6f6b4d4cc5e9ae7aee39d279b49:/lib/authhash.c diff --git a/lib/authhash.c b/lib/authhash.c index 9d36fef..d5da9c5 100644 --- a/lib/authhash.c +++ b/lib/authhash.c @@ -28,7 +28,10 @@ /** @brief Structure of algorithm lookup table */ struct algorithm { + /** @brief DisOrder algorithm name */ const char *name; + + /** @brief gcrypt algorithm ID */ int id; }; @@ -56,6 +59,7 @@ static const struct algorithm algorithms[] = { * @param nchallenge Size of challenge * @param password Password * @param algo Algorithm to use + * @return Hex string or NULL on error * * Computes H(challenge|password) and returns it as a newly allocated hex * string, or returns NULL on error.