/*
This file is part of GNUnet
- Copyright (C) 2013, 2014 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2013, 2014 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
* @return the value, 0 if not found
*/
static unsigned int
-rfc4394_mnemonic_to_value (const char *mnemonic)
+rfc4398_mnemonic_to_value (const char *mnemonic)
{
static struct {
const char *mnemonic;
sdup = GNUNET_strdup (s);
typep = strtok (sdup, " ");
if ( (NULL == typep) ||
- ( (0 == (type = rfc4394_mnemonic_to_value (typep))) &&
+ ( (0 == (type = rfc4398_mnemonic_to_value (typep))) &&
( (1 != SSCANF (typep,
"%u",
&type)) ||
GNUNET_free (sdup);
return GNUNET_SYSERR;
}
+ alg = 0;
algp = strtok (NULL, " ");
if ( (NULL == algp) ||
( (0 == (type = rfc4034_mnemonic_to_value (typep))) &&