s);
return GNUNET_SYSERR;
}
- *data = GNUNET_malloc (sizeof (struct in_addr));
+ *data = GNUNET_new (struct in_addr);
memcpy (*data, &value_a, sizeof (value_a));
*data_size = sizeof (value_a);
return GNUNET_OK;
sdup = GNUNET_strdup (s);
typep = strtok (sdup, " ");
+ /* TODO: add typep mnemonic conversion according to RFC 4398 */
if ( (NULL == typep) ||
(1 != sscanf (typep,
"%u",
return GNUNET_SYSERR;
}
algp = strtok (NULL, " ");
+ /* TODO: add algp mnemonic conversion according to RFC 4398/RFC 4034 */
if ( (NULL == algp) ||
(1 != sscanf (algp,
"%u",
s);
return GNUNET_SYSERR;
}
- *data = GNUNET_malloc (sizeof (struct in6_addr));
+ *data = GNUNET_new (struct in6_addr);
*data_size = sizeof (struct in6_addr);
memcpy (*data, &value_aaaa, sizeof (value_aaaa));
return GNUNET_OK;