#include "namestore.h"
-#define LOG(kind,...) GNUNET_log_from (kind, "gns-api",__VA_ARGS__)
+#define LOG(kind,...) GNUNET_log_from (kind, "namestore-api",__VA_ARGS__)
/**
ret = GNUNET_SYSERR;
emsg = _("Failed to put new set of records in database");
break;
+ case RECORD_REMOVE_RESULT_FAILED_TO_REMOVE:
+ ret = GNUNET_SYSERR;
+ emsg = _("Failed to remove records from database");
+ break;
+ case RECORD_REMOVE_RESULT_FAILED_ACCESS_DATABASE:
+ ret = GNUNET_SYSERR;
+ emsg = _("Failed to access database");
+ break;
+ case RECORD_REMOVE_RESULT_FAILED_INTERNAL_ERROR:
+ ret = GNUNET_SYSERR;
+ emsg = _("unknown internal error in namestore");
+ break;
default:
GNUNET_break (0);
- ret = GNUNET_SYSERR;
- emsg = _("Protocol error");
if (NULL != qe->cont)
qe->cont (qe->cont_cls, GNUNET_SYSERR, _("Protocol error"));
return GNUNET_NO;
{
size_t rd_ser_len;
size_t name_len;
- char * name_tmp;
- char * rd_ser;
+ char *name_tmp;
+ char *rd_ser;
struct GNUNET_CRYPTO_RsaSignaturePurpose *sig_purpose;
struct GNUNET_TIME_AbsoluteNBO *expire_tmp;
struct GNUNET_TIME_AbsoluteNBO expire_nbo = GNUNET_TIME_absolute_hton (freshness);