search for: hexvalue

Displaying 1 result from an estimated 1 matches for "hexvalue".

Did you mean: hex_value
2001 Jun 06
0
snk authentication
...lib.h> +#include <string.h> +#include <pwd.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <errno.h> + +#include "snk.h" + + +/* + * originaly written by Brian Wellington and / or Jeff Cook + * modified by Larry D'Anna + */ + + +#define hexvalue(c) ((tolower(c) < 'a') ? (tolower(c) - '0') : (tolower(c) - 'a' + 10)) + +char *keyfile, *outfile = NULL; + +static void +usage() { + fprintf (stderr, "Usage:\n"); + fprintf (stderr, "snk [-f keyfile] [challenge] Compute response\n"); + fprintf...