{
struct Request *request = cls;
struct GNUNET_NAMESTORE_RecordData r;
- struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub;
+ GNUNET_HashCode pub;
GNUNET_assert (GNUNET_OK ==
- GNUNET_CRYPTO_rsa_public_key_from_string (request->public_key,
- strlen (request->public_key),
- &pub));
+ GNUNET_CRYPTO_hash_from_string2 (request->public_key,
+ strlen (request->public_key),
+ &pub));
request->qe = NULL;
if (0 != rd_count)
{
struct MHD_Response *response;
struct Request *request;
int ret;
- struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub;
+ GNUNET_HashCode pub;
if ( (0 == strcmp (method, MHD_HTTP_METHOD_GET)) ||
(0 == strcmp (method, MHD_HTTP_METHOD_HEAD)) )
request->pp = NULL;
}
if (GNUNET_OK !=
- GNUNET_CRYPTO_rsa_public_key_from_string (request->public_key,
- strlen (request->public_key),
- &pub))
+ GNUNET_CRYPTO_hash_from_string2 (request->public_key,
+ strlen (request->public_key),
+ &pub))
{
/* parse error */
return fill_s_reply ("Failed to parse given public key",