/**
* Private key for this peer.
*/
-static struct GNUNET_CRYPTO_EccPrivateKey *my_private_key;
+static struct GNUNET_CRYPTO_EddsaPrivateKey *my_private_key;
/**
struct GNUNET_SERVER_Client *client,
const struct GNUNET_MessageHeader *message)
{
- const struct SearchMessage *sm;
+ const struct RegexSearchMessage *sm;
const char *string;
struct ClientEntry *ce;
uint16_t size;
size = ntohs (message->size);
- sm = (const struct SearchMessage *) message;
+ sm = (const struct RegexSearchMessage *) message;
string = (const char *) &sm[1];
- if ( (size <= sizeof (struct SearchMessage)) ||
- ('\0' != string[size - sizeof (struct SearchMessage) - 1]) )
+ if ( (size <= sizeof (struct RegexSearchMessage)) ||
+ ('\0' != string[size - sizeof (struct RegexSearchMessage) - 1]) )
{
GNUNET_break (0);
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
{NULL, NULL, 0, 0}
};
- my_private_key = GNUNET_CRYPTO_ecc_key_create_from_configuration (cfg);
+ my_private_key = GNUNET_CRYPTO_eddsa_key_create_from_configuration (cfg);
if (NULL == my_private_key)
{
GNUNET_SCHEDULER_shutdown ();