const struct GNUNET_CRYPTO_RsaSignature *signature)
{
int failed = GNUNET_NO;
-
- if ((NULL == zone_key) || (0 != memcmp(zone_key, &pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded))))
+ /* We expect zone key != NULL, name != NULL, rd_count 0, rd NULL, signature NULL */
+ if (NULL == zone_key)
{
GNUNET_break(0);
failed = GNUNET_YES;
}
- if ((NULL == n) || (0 != strcmp(n, s_name)))
+ if (NULL == n)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Name %s!\n", n);
GNUNET_break(0);
failed = GNUNET_YES;
}
if (success == GNUNET_OK)
{
res = 0;
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Looking up non-existing record type %u for name `%s'\n", TEST_RECORD_LOOKUP_TYPE_NOT_EXISTING, name);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Looking up non-existing record type %u for name `%s'\n", TEST_RECORD_LOOKUP_TYPE_NOT_EXISTING, name);
GNUNET_NAMESTORE_lookup_record (nsh, &s_zone, name, TEST_RECORD_LOOKUP_TYPE_NOT_EXISTING, &name_lookup_non_existing_record_type, NULL);
}
else