GNUNET_free (cred);
return cred_str;
}
+ case GNUNET_GNSRECORD_TYPE_POLICY:
+ {
+ return GNUNET_strdup (data);
+ }
default:
return NULL;
}
(char**)data);
return GNUNET_OK;
}
+ case GNUNET_GNSRECORD_TYPE_POLICY:
+ {
+ *data_size = strlen (s);
+ *data = GNUNET_strdup (s);
+ return GNUNET_OK;
+ }
default:
return GNUNET_SYSERR;
}
} name_map[] = {
{ "CRED", GNUNET_GNSRECORD_TYPE_CREDENTIAL },
{ "ATTR", GNUNET_GNSRECORD_TYPE_ATTRIBUTE },
+ { "POLICY", GNUNET_GNSRECORD_TYPE_POLICY },
{ NULL, UINT32_MAX }
};
#define GNUNET_GNSRECORD_TYPE_CREDENTIAL 65547
/**
- * Record type for reverse lookups
+ * Record type for policies
*/
-#define GNUNET_GNSRECORD_TYPE_REVERSE 65548
+#define GNUNET_GNSRECORD_TYPE_POLICY 65548
/**
* Record type for reverse lookups