command line tool to manipulate the local zone More...
#include "platform.h"
#include "gnunet_common.h"
#include <gnunet_util_lib.h>
#include <gnunet_identity_service.h>
#include <gnunet_gnsrecord_lib.h>
#include <gnunet_gns_service.h>
#include <gnunet_namestore_service.h>
#include <inttypes.h>
Go to the source code of this file.
Data Structures | |
struct | RecordSetEntry |
Entry in record set for bulk processing. More... | |
struct | MarkedRecord |
The record marked for deletion. More... | |
struct | EgoEntry |
The default namestore ego. More... | |
Macros | |
#define | WARN_RELATIVE_EXPIRATION_LIMIT |
The upper bound for the zone iteration interval (per record). More... | |
#define | INITIAL_RI_BUFFER_SIZE 5000 |
#define | MAX_LINE_LEN 4086 |
#define | MAX_ARGS 20 |
Functions | |
static int | parse_expiration (const char *exp_str, int *is_rel, uint64_t *exptime) |
Parse expiration time. More... | |
static int | parse_recordline (const char *line) |
static void | clear_recordset () |
static void | reset_handles (void) |
static void | do_shutdown (void *cls) |
Task run on shutdown. More... | |
static void | process_command_stdin (void) |
static void | batch_insert_recordinfo (const struct GNUNET_CONFIGURATION_Handle *cfg) |
We have obtained the zone's private key, so now process the main commands using it. More... | |
static void | finish_command (void) |
static void | add_continuation (void *cls, enum GNUNET_ErrorCode ec) |
static void | del_continuation (void *cls, enum GNUNET_ErrorCode ec) |
static void | purge_next_record (void *cls) |
static void | marked_deleted (void *cls, enum GNUNET_ErrorCode ec) |
static void | zone_iteration_finished (void *cls) |
Function called when we are done with a zone iteration. More... | |
static void | zone_iteration_error_cb (void *cls) |
Function called when we encountered an error in a zone iteration. More... | |
static void | collect_zone_records_to_purge (const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd) |
static void | collect_orphans (const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd) |
static void | display_record (const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd) |
Process a record that was stored in the namestore. More... | |
static void | purge_zone_iterator (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd, struct GNUNET_TIME_Absolute expiry) |
static void | purge_orphans_iterator (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd, struct GNUNET_TIME_Absolute expiry) |
static void | display_record_iterator (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd, struct GNUNET_TIME_Absolute expiry) |
Process a record that was stored in the namestore. More... | |
static void | display_record_monitor (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd, struct GNUNET_TIME_Absolute expiry) |
Process a record that was stored in the namestore. More... | |
static void | display_record_lookup (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rname, unsigned int rd_len, const struct GNUNET_GNSRECORD_Data *rd) |
Process a record that was stored in the namestore. More... | |
static void | sync_cb (void *cls) |
Function called once we are in sync in monitor mode. More... | |
static void | monitor_error_cb (void *cls) |
Function called on errors while monitoring. More... | |
static void | lookup_error_cb (void *cls) |
Function called on errors while monitoring. More... | |
static void | add_error_cb (void *cls) |
Function called if lookup fails. More... | |
static void | get_existing_record (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone_key, const char *rec_name, unsigned int rd_count, const struct GNUNET_GNSRECORD_Data *rd) |
We're storing a record; this function is given the existing record so that we can merge the information. More... | |
static void | reverse_error_cb (void *cls) |
Function called if we encountered an error in zone-to-name. More... | |
static void | handle_reverse_lookup (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone, const char *label, unsigned int rd_count, const struct GNUNET_GNSRECORD_Data *rd) |
Function called with the result of our attempt to obtain a name for a given public key. More... | |
static void | del_lookup_error_cb (void *cls) |
Function called if lookup for deletion fails. More... | |
static void | del_monitor (void *cls, const struct GNUNET_CRYPTO_PrivateKey *zone, const char *label, unsigned int rd_count, const struct GNUNET_GNSRECORD_Data *rd) |
We were asked to delete something; this function is called with the existing records. More... | |
static void | schedule_finish (void *cls) |
static void | replace_cont (void *cls, enum GNUNET_ErrorCode ec) |
static void | run_with_zone_pkey (const struct GNUNET_CONFIGURATION_Handle *cfg_) |
We have obtained the zone's private key, so now process the main commands using it. More... | |
static int | get_identity_for_string (const char *str, struct GNUNET_CRYPTO_PrivateKey *zk) |
static void | id_connect_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego, void **ctx, const char *ego_name_tmp) |
Function called with ALL of the egos known to the identity service, used on startup if the user did not specify a zone on the command-line. More... | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *_cfg) |
Main function that will be run. More... | |
int | main (int argc, char *const *argv) |
The main function for gnunet-namestore. More... | |
Variables | |
static struct GNUNET_NAMESTORE_Handle * | ns |
Handle to the namestore. More... | |
static struct GNUNET_CRYPTO_PrivateKey | zone_pkey |
Private key for the our zone. More... | |
static struct GNUNET_IDENTITY_Handle * | idh |
Identity service handle. More... | |
static char * | ego_name |
Name of the ego controlling the zone. More... | |
static struct GNUNET_NAMESTORE_QueueEntry * | add_qe_uri |
Queue entry for the 'add-uri' operation. More... | |
static struct GNUNET_NAMESTORE_QueueEntry * | add_qe |
Queue entry for the 'add' operation. More... | |
static struct GNUNET_NAMESTORE_QueueEntry * | get_qe |
Queue entry for the 'lookup' operation. More... | |
static struct GNUNET_NAMESTORE_QueueEntry * | reverse_qe |
Queue entry for the 'reverse lookup' operation (in combination with a name). More... | |
static struct MarkedRecord * | marked_head |
Marked record list. More... | |
static struct MarkedRecord * | marked_tail |
Marked record list. More... | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
Configuration handle. More... | |
static struct EgoEntry * | ego_head |
Ego list. More... | |
static struct EgoEntry * | ego_tail |
Ego list. More... | |
static struct GNUNET_NAMESTORE_ZoneIterator * | list_it |
List iterator for the 'list' operation. More... | |
static int | read_from_stdin |
Run in read from stdin mode. More... | |
static int | list |
Desired action is to list records. More... | |
static int | add |
Desired action is to add a record. More... | |
static int | del |
Desired action is to remove a record. More... | |
static int | is_public |
Is record public (opposite of GNUNET_GNSRECORD_RF_PRIVATE) More... | |
static int | is_shadow |
Is record a shadow record (GNUNET_GNSRECORD_RF_SHADOW) More... | |
static int | is_maintenance |
Is record a maintenance record (GNUNET_GNSRECORD_RF_MAINTENANCE) More... | |
static int | omit_private |
Filter private records. More... | |
static int | output_recordline |
Output in recordline format. More... | |
static int | purge_zone |
Purge zone contents. More... | |
static int | include_maintenance |
Do not filter maintenance records. More... | |
static int | purge_orphaned |
Purge orphaned records. More... | |
static int | list_orphaned |
List records and zone keys of orphaned records. More... | |
static struct GNUNET_NAMESTORE_QueueEntry * | del_qe |
Queue entry for the 'del' operation. More... | |
static struct GNUNET_NAMESTORE_QueueEntry * | set_qe |
Queue entry for the 'set/replace' operation. More... | |
static struct GNUNET_NAMESTORE_QueueEntry * | ns_qe |
Queue entry for begin/commit. More... | |
static char * | name |
Name of the records to add/list/remove. More... | |
static char * | value |
Value of the record to add/remove. More... | |
static char * | uri |
URI to import. More... | |
static char * | reverse_pkey |
Reverse lookup to perform. More... | |
static char * | typestring |
Type of the record to add/remove, NULL to remove all. More... | |
static char * | expirationstring |
Desired expiration time. More... | |
static char * | nickstring |
Desired nick name. More... | |
static int | ret |
Global return value. More... | |
static uint32_t | type |
Type string converted to DNS type value. More... | |
static void * | data |
Value in binary format. More... | |
static size_t | data_size |
Number of bytes in data. More... | |
static uint64_t | etime |
Expiration string converted to numeric value. More... | |
static int | etime_is_rel = GNUNET_SYSERR |
Is expiration time relative or absolute time? More... | |
static struct GNUNET_NAMESTORE_ZoneMonitor * | zm |
Monitor handle. More... | |
static int | monitor |
Enables monitor mode. More... | |
static struct RecordSetEntry * | recordset |
Entry in record set for processing records in bulk. More... | |
static struct GNUNET_SCHEDULER_Task * | purge_task |
Purge task. More... | |
static unsigned int | ri_count = 0 |
static struct GNUNET_NAMESTORE_RecordInfo * | record_info |
static unsigned int | record_info_capacity = 0 |
Maximum capacity of record_info array. More... | |
static unsigned int | max_batch_size = 1000 |
static unsigned int | ri_sent = 0 |
#define WARN_RELATIVE_EXPIRATION_LIMIT |
The upper bound for the zone iteration interval (per record).
Definition at line 41 of file gnunet-namestore.c.
#define INITIAL_RI_BUFFER_SIZE 5000 |
Definition at line 349 of file gnunet-namestore.c.
#define MAX_LINE_LEN 4086 |
Definition at line 1833 of file gnunet-namestore.c.
#define MAX_ARGS 20 |
Definition at line 1835 of file gnunet-namestore.c.
|
static |
Parse expiration time.
expirationstring | text to parse | |
[out] | etime_is_rel | set to GNUNET_YES if time is relative |
[out] | etime | set to expiration time (abs or rel) |
Definition at line 370 of file gnunet-namestore.c.
References GNUNET_TIME_Absolute::abs_value_us, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_WARNING, GNUNET_log, GNUNET_NO, GNUNET_OK, GNUNET_STRINGS_absolute_time_to_string(), GNUNET_STRINGS_fancy_time_to_absolute(), GNUNET_STRINGS_fancy_time_to_relative(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_SYSERR, GNUNET_TIME_relative_cmp, GNUNET_TIME_UNIT_FOREVER_ABS, GNUNET_YES, GNUNET_TIME_Relative::rel_value_us, and WARN_RELATIVE_EXPIRATION_LIMIT.
Referenced by run_with_zone_pkey().
|
static |
Definition at line 415 of file gnunet-namestore.c.
References _, GNUNET_ERROR_TYPE_ERROR, GNUNET_free, GNUNET_GNSRECORD_number_to_typename(), GNUNET_GNSRECORD_RF_CRITICAL, GNUNET_GNSRECORD_RF_NONE, GNUNET_GNSRECORD_RF_PRIVATE, GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION, GNUNET_GNSRECORD_RF_SHADOW, GNUNET_GNSRECORD_RF_SUPPLEMENTAL, GNUNET_GNSRECORD_string_to_value(), GNUNET_GNSRECORD_typename_to_number(), GNUNET_log, GNUNET_malloc, GNUNET_OK, GNUNET_strdup, GNUNET_SYSERR, line, RecordSetEntry::next, RecordSetEntry::record, record(), and recordset.
Referenced by process_command_stdin().
|
static |
Definition at line 502 of file gnunet-namestore.c.
References GNUNET_free, RecordSetEntry::next, and recordset.
Referenced by process_command_stdin(), and reset_handles().
|
static |
Definition at line 516 of file gnunet-namestore.c.
References add_qe, add_qe_uri, clear_recordset(), data, del_qe, ego_name, expirationstring, get_qe, GNUNET_free, GNUNET_NAMESTORE_cancel(), GNUNET_NAMESTORE_zone_iteration_stop(), GNUNET_NAMESTORE_zone_monitor_stop(), GNUNET_SCHEDULER_cancel(), is_maintenance, is_public, is_shadow, list, list_it, marked_head, MarkedRecord::name, name, MarkedRecord::next, purge_task, purge_zone, reverse_qe, set_qe, typestring, uri, value, zm, and zone_pkey.
Referenced by do_shutdown().
|
static |
Task run on shutdown.
Cleans up everything.
cls | unused |
Definition at line 623 of file gnunet-namestore.c.
References ego_head, GNUNET_free, GNUNET_IDENTITY_disconnect(), GNUNET_NAMESTORE_cancel(), GNUNET_NAMESTORE_disconnect(), EgoEntry::identifier, idh, EgoEntry::next, ns, ns_qe, record_info, and reset_handles().
Referenced by run().
|
static |
Check if this is a new name. If yes, and we have records, store them.
One last time
Definition at line 1877 of file gnunet-namestore.c.
References GNUNET_NAMESTORE_RecordInfo::a_label, GNUNET_NAMESTORE_RecordInfo::a_rd, GNUNET_NAMESTORE_RecordInfo::a_rd_count, batch_insert_recordinfo(), cfg, clear_recordset(), data, GNUNET_GNSRECORD_Data::data, data_size, GNUNET_GNSRECORD_Data::data_size, finished, get_identity_for_string(), GNUNET_array_grow, GNUNET_DNSPARSER_MAX_NAME_LENGTH, GNUNET_ERROR_TYPE_DEBUG, GNUNET_free, GNUNET_log, GNUNET_malloc, GNUNET_memcmp, GNUNET_new_array, GNUNET_NO, GNUNET_OK, GNUNET_SCHEDULER_shutdown(), GNUNET_strdup, GNUNET_YES, max_batch_size, MAX_LINE_LEN, RecordSetEntry::next, parse_recordline(), rd_count, record(), record_info, record_info_capacity, recordset, ret, ri_count, ri_sent, and zone_pkey.
Referenced by finish_command(), and id_connect_cb().
|
static |
We have obtained the zone's private key, so now process the main commands using it.
cfg | configuration to use |
Definition at line 1396 of file gnunet-namestore.c.
References GNUNET_NAMESTORE_RecordInfo::a_rd, GNUNET_assert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_free, GNUNET_log, GNUNET_NAMESTORE_records_store(), ns, record_info, replace_cont(), ri_count, ri_sent, set_qe, and zone_pkey.
Referenced by process_command_stdin().
|
static |
Definition at line 673 of file gnunet-namestore.c.
References GNUNET_SCHEDULER_shutdown(), process_command_stdin(), and read_from_stdin.
Referenced by add_continuation(), add_error_cb(), del_continuation(), del_lookup_error_cb(), del_monitor(), display_record_lookup(), get_existing_record(), handle_reverse_lookup(), lookup_error_cb(), purge_next_record(), run_with_zone_pkey(), schedule_finish(), zone_iteration_error_cb(), and zone_iteration_finished().
|
static |
Definition at line 691 of file gnunet-namestore.c.
References _, finish_command(), GNUNET_EC_NAMESTORE_RECORD_EXISTS, GNUNET_EC_NONE, GNUNET_ErrorCode_get_hint(), GNUNET_SCHEDULER_shutdown(), qe, and ret.
Referenced by get_existing_record(), and run_with_zone_pkey().
|
static |
Definition at line 712 of file gnunet-namestore.c.
References _, del_qe, finish_command(), GNUNET_EC_NAMESTORE_RECORD_NOT_FOUND, and GNUNET_ErrorCode_get_hint().
Referenced by del_monitor().
|
static |
Definition at line 744 of file gnunet-namestore.c.
References del_qe, finish_command(), GNUNET_CONTAINER_DLL_remove, GNUNET_free, GNUNET_NAMESTORE_record_set_store(), MarkedRecord::key, marked_deleted(), marked_head, marked_tail, MarkedRecord::name, ns, purge_task, and ret.
Referenced by marked_deleted(), and zone_iteration_finished().
|
static |
Definition at line 730 of file gnunet-namestore.c.
References _, del_qe, GNUNET_EC_NONE, GNUNET_ErrorCode_get_hint(), GNUNET_SCHEDULER_add_now(), purge_next_record(), and purge_task.
Referenced by purge_next_record().
|
static |
Function called when we are done with a zone iteration.
Definition at line 774 of file gnunet-namestore.c.
References finish_command(), GNUNET_SCHEDULER_add_now(), list_it, purge_next_record(), purge_orphaned, purge_task, purge_zone, and ret.
Referenced by run_with_zone_pkey().
|
static |
Function called when we encountered an error in a zone iteration.
Definition at line 792 of file gnunet-namestore.c.
References finish_command(), list_it, and ret.
Referenced by run_with_zone_pkey().
|
static |
Definition at line 803 of file gnunet-namestore.c.
References GNUNET_CONTAINER_DLL_insert, GNUNET_new, GNUNET_strdup, MarkedRecord::key, marked_head, marked_tail, and MarkedRecord::name.
Referenced by purge_zone_iterator().
|
static |
Definition at line 821 of file gnunet-namestore.c.
References EgoEntry::ego, ego_head, GNUNET_CONTAINER_DLL_insert, GNUNET_IDENTITY_ego_get_private_key(), GNUNET_new, GNUNET_strdup, MarkedRecord::key, marked_head, marked_tail, MarkedRecord::name, and EgoEntry::next.
Referenced by purge_orphans_iterator().
|
static |
Process a record that was stored in the namestore.
rname | name that is being mapped (at most 255 characters long) |
rd_len | number of entries in rd array |
rd | array of records with data to store |
Definition at line 860 of file gnunet-namestore.c.
References _, GNUNET_TIME_Absolute::abs_value_us, data, data_size, EgoEntry::ego, ego_head, GNUNET_GNSRECORD_Data::expiration_time, GNUNET_CRYPTO_private_key_to_string(), GNUNET_free, GNUNET_GNS_EMPTY_LABEL_AT, GNUNET_GNSRECORD_number_to_typename(), GNUNET_GNSRECORD_RF_CRITICAL, GNUNET_GNSRECORD_RF_MAINTENANCE, GNUNET_GNSRECORD_RF_PRIVATE, GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION, GNUNET_GNSRECORD_RF_SHADOW, GNUNET_GNSRECORD_RF_SUPPLEMENTAL, GNUNET_GNSRECORD_TYPE_ANY, GNUNET_GNSRECORD_TYPE_NICK, GNUNET_GNSRECORD_typename_to_number(), GNUNET_GNSRECORD_value_to_string(), GNUNET_IDENTITY_ego_get_private_key(), GNUNET_NO, GNUNET_STRINGS_absolute_time_to_string(), GNUNET_STRINGS_relative_time_to_string(), GNUNET_YES, list_orphaned, name, output_recordline, rd, GNUNET_TIME_Relative::rel_value_us, type, and typestring.
Referenced by display_record_iterator(), display_record_lookup(), and display_record_monitor().
|
static |
Definition at line 977 of file gnunet-namestore.c.
References collect_zone_records_to_purge(), GNUNET_NAMESTORE_zone_iterator_next(), list_it, and rd.
Referenced by run_with_zone_pkey().
|
static |
Definition at line 993 of file gnunet-namestore.c.
References collect_orphans(), GNUNET_NAMESTORE_zone_iterator_next(), list_it, and rd.
Referenced by run_with_zone_pkey().
|
static |
Process a record that was stored in the namestore.
cls | closure |
zone_key | private key of the zone |
rname | name that is being mapped (at most 255 characters long) |
rd_len | number of entries in rd array |
rd | array of records with data to store |
Definition at line 1018 of file gnunet-namestore.c.
References display_record(), GNUNET_NAMESTORE_zone_iterator_next(), list_it, and rd.
Referenced by run_with_zone_pkey().
|
static |
Process a record that was stored in the namestore.
cls | closure |
zone_key | private key of the zone |
rname | name that is being mapped (at most 255 characters long) |
rd_len | number of entries in rd array |
rd | array of records with data to store |
Definition at line 1043 of file gnunet-namestore.c.
References display_record(), GNUNET_NAMESTORE_zone_monitor_next(), rd, and zm.
Referenced by run_with_zone_pkey().
|
static |
Process a record that was stored in the namestore.
cls | closure |
zone_key | private key of the zone |
rname | name that is being mapped (at most 255 characters long) |
rd_len | number of entries in rd array |
rd | array of records with data to store |
Definition at line 1068 of file gnunet-namestore.c.
References display_record(), finish_command(), get_qe, and rd.
Referenced by run_with_zone_pkey().
|
static |
Function called once we are in sync in monitor mode.
cls | NULL |
Definition at line 1088 of file gnunet-namestore.c.
Referenced by GNUNET_NAMESTORE_zone_monitor_start(), GNUNET_NAMESTORE_zone_monitor_start2(), GNUNET_PEERSTORE_monitor_start(), and run_with_zone_pkey().
|
static |
Function called on errors while monitoring.
cls | NULL |
Definition at line 1101 of file gnunet-namestore.c.
Referenced by run_with_zone_pkey().
|
static |
Function called on errors while monitoring.
cls | NULL |
Definition at line 1114 of file gnunet-namestore.c.
References finish_command(), and get_qe.
Referenced by run_with_zone_pkey().
|
static |
Function called if lookup fails.
Definition at line 1127 of file gnunet-namestore.c.
References add_qe, finish_command(), GNUNET_break, and ret.
Referenced by run_with_zone_pkey().
|
static |
We're storing a record; this function is given the existing record so that we can merge the information.
cls | closure, unused |
zone_key | private key of the zone |
rec_name | name that is being mapped (at most 255 characters long) |
rd_count | number of entries in rd array |
rd | array of records with data to store |
Definition at line 1148 of file gnunet-namestore.c.
References _, add_continuation(), add_qe, data, GNUNET_GNSRECORD_Data::data, data_size, GNUNET_GNSRECORD_Data::data_size, etime, etime_is_rel, GNUNET_GNSRECORD_Data::expiration_time, finish_command(), GNUNET_GNSRECORD_Data::flags, GNUNET_assert, GNUNET_break, GNUNET_DNSPARSER_TYPE_SOA, GNUNET_ERROR_TYPE_DEBUG, GNUNET_GNSRECORD_RF_MAINTENANCE, GNUNET_GNSRECORD_RF_PRIVATE, GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION, GNUNET_GNSRECORD_RF_SHADOW, GNUNET_log, GNUNET_memcpy, GNUNET_NAMESTORE_record_set_store(), GNUNET_NO, GNUNET_TIME_UNIT_FOREVER_ABS, GNUNET_YES, is_maintenance, is_public, is_shadow, name, ns, rd, rd_count, GNUNET_GNSRECORD_Data::record_type, ret, type, and zone_pkey.
Referenced by run_with_zone_pkey().
|
static |
Function called if we encountered an error in zone-to-name.
Definition at line 1223 of file gnunet-namestore.c.
References reverse_pkey, and reverse_qe.
Referenced by run_with_zone_pkey().
|
static |
Function called with the result of our attempt to obtain a name for a given public key.
cls | NULL |
zone | private key of the zone; NULL on disconnect |
label | label of the records; NULL on disconnect |
rd_count | number of entries in rd array, 0 if label was deleted |
rd | array of records with data to store |
Definition at line 1242 of file gnunet-namestore.c.
References ego_name, finish_command(), rd, rd_count, reverse_pkey, and reverse_qe.
Referenced by run_with_zone_pkey().
|
static |
Function called if lookup for deletion fails.
Definition at line 1265 of file gnunet-namestore.c.
References del_qe, finish_command(), GNUNET_break, and ret.
Referenced by run_with_zone_pkey().
|
static |
We were asked to delete something; this function is called with the existing records.
Now we should determine what should be deleted and then issue the deletion operation.
cls | NULL |
zone | private key of the zone we are deleting from |
label | name of the records we are editing |
rd_count | size of the rd array |
rd | existing records |
Definition at line 1287 of file gnunet-namestore.c.
References _, data, data_size, del_continuation(), del_qe, finish_command(), GNUNET_free, GNUNET_GNSRECORD_TYPE_ANY, GNUNET_GNSRECORD_typename_to_number(), GNUNET_GNSRECORD_value_to_string(), GNUNET_NAMESTORE_record_set_store(), name, ns, rd, rd_count, GNUNET_GNSRECORD_Data::record_type, ret, typestring, value, and zone_pkey.
Referenced by run_with_zone_pkey().
|
static |
Definition at line 1366 of file gnunet-namestore.c.
References finish_command().
Referenced by replace_cont().
|
static |
Definition at line 1373 of file gnunet-namestore.c.
References _, GNUNET_EC_NONE, GNUNET_ERROR_TYPE_MESSAGE, GNUNET_ErrorCode_get_hint(), GNUNET_log, GNUNET_SCHEDULER_add_now(), ret, schedule_finish(), and set_qe.
Referenced by batch_insert_recordinfo(), and run_with_zone_pkey().
|
static |
We have obtained the zone's private key, so now process the main commands using it.
cfg | configuration to use |
Definition at line 1432 of file gnunet-namestore.c.
References _, add, add_continuation(), add_error_cb(), add_qe, add_qe_uri, data, GNUNET_GNSRECORD_Data::data, data_size, GNUNET_GNSRECORD_Data::data_size, del, del_lookup_error_cb(), del_monitor(), del_qe, display_record_iterator(), display_record_lookup(), display_record_monitor(), ego_name, etime, etime_is_rel, GNUNET_GNSRECORD_Data::expiration_time, expirationstring, finish_command(), GNUNET_GNSRECORD_Data::flags, get_existing_record(), get_qe, GNUNET_CRYPTO_public_key_from_string(), GNUNET_CRYPTO_public_key_get_length(), GNUNET_DNSPARSER_TYPE_OPENPGPKEY, GNUNET_DNSPARSER_TYPE_SMIMEA, GNUNET_DNSPARSER_TYPE_SRV, GNUNET_DNSPARSER_TYPE_TLSA, GNUNET_free, GNUNET_GNS_EMPTY_LABEL_AT, GNUNET_GNSRECORD_FILTER_INCLUDE_MAINTENANCE, GNUNET_GNSRECORD_FILTER_NONE, GNUNET_GNSRECORD_FILTER_OMIT_PRIVATE, GNUNET_GNSRECORD_number_to_typename(), GNUNET_GNSRECORD_RF_MAINTENANCE, GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION, GNUNET_GNSRECORD_RF_SHADOW, GNUNET_GNSRECORD_string_to_value(), GNUNET_GNSRECORD_TYPE_NICK, GNUNET_GNSRECORD_typename_to_number(), GNUNET_NAMESTORE_record_set_store(), GNUNET_NAMESTORE_records_lookup(), GNUNET_NAMESTORE_records_lookup2(), GNUNET_NAMESTORE_zone_iteration_start2(), GNUNET_NAMESTORE_zone_monitor_start2(), GNUNET_NAMESTORE_zone_to_name(), GNUNET_new_array, GNUNET_OK, GNUNET_strdup, GNUNET_YES, handle_reverse_lookup(), include_maintenance, is_maintenance, is_public, is_shadow, list, list_it, list_orphaned, lookup_error_cb(), monitor, monitor_error_cb(), name, RecordSetEntry::next, nickstring, ns, omit_private, parse_expiration(), pkey, pubkey, purge_orphaned, purge_orphans_iterator(), purge_zone, purge_zone_iterator(), rd, rd_count, GNUNET_GNSRECORD_Data::record_type, recordset, replace_cont(), ret, reverse_error_cb(), reverse_pkey, reverse_qe, set_qe, sh, sync_cb(), type, typestring, uri, value, zm, zone_iteration_error_cb(), zone_iteration_finished(), and zone_pkey.
Referenced by id_connect_cb().
|
static |
FIXME: Check for zTLD?
Definition at line 1838 of file gnunet-namestore.c.
References EgoEntry::ego, ego_head, GNUNET_CRYPTO_public_key_from_string(), GNUNET_IDENTITY_ego_get_private_key(), GNUNET_IDENTITY_ego_get_public_key(), GNUNET_NO, GNUNET_OK, EgoEntry::identifier, EgoEntry::next, and pubkey.
Referenced by process_command_stdin().
|
static |
Function called with ALL of the egos known to the identity service, used on startup if the user did not specify a zone on the command-line.
Once the iteration is done (ego is NULL), we ask for the default ego for "namestore".
cls | a struct GNUNET_CONFIGURATION_Handle |
ego | an ego, NULL for end of iteration |
ctx | NULL |
name | name associated with ego |
Definition at line 2054 of file gnunet-namestore.c.
References cfg, ctx, EgoEntry::ego, ego_head, ego_name, ego_tail, GNUNET_CONTAINER_DLL_insert_tail, GNUNET_IDENTITY_ego_get_private_key(), GNUNET_IDENTITY_ego_get_public_key(), GNUNET_new, GNUNET_strdup, EgoEntry::identifier, pk, process_command_stdin(), read_from_stdin, run_with_zone_pkey(), and zone_pkey.
Referenced by run().
|
static |
Main function that will be run.
cls | closure |
args | remaining command-line arguments |
cfgfile | name of the configuration file used (for saving, can be NULL!) |
cfg | configuration |
Definition at line 2098 of file gnunet-namestore.c.
References _, consensus-simulation::args, cfg, do_shutdown(), GNUNET_ERROR_TYPE_WARNING, GNUNET_IDENTITY_connect(), GNUNET_log, GNUNET_NAMESTORE_connect(), GNUNET_SCHEDULER_add_shutdown(), GNUNET_SCHEDULER_shutdown(), id_connect_cb(), idh, ns, and ret.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
The main function for gnunet-namestore.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 2139 of file gnunet-namestore.c.
References _, add, del, ego_name, expirationstring, gettext_noop, GNUNET_free_nz, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_flag(), GNUNET_GETOPT_option_string(), GNUNET_GETOPT_option_uint(), GNUNET_log_setup(), GNUNET_OK, GNUNET_PROGRAM_run(), GNUNET_STRINGS_get_utf8_args(), include_maintenance, is_maintenance, is_public, is_shadow, list, list_orphaned, max_batch_size, monitor, name, nickstring, omit_private, options, output_recordline, purge_orphaned, purge_zone, read_from_stdin, ret, reverse_pkey, run(), typestring, uri, and value.
|
static |
Handle to the namestore.
Definition at line 115 of file gnunet-namestore.c.
Referenced by batch_insert_recordinfo(), del_monitor(), do_shutdown(), get_existing_record(), purge_next_record(), run(), and run_with_zone_pkey().
|
static |
Private key for the our zone.
Definition at line 120 of file gnunet-namestore.c.
Referenced by batch_insert_recordinfo(), del_monitor(), get_existing_record(), id_connect_cb(), process_command_stdin(), reset_handles(), and run_with_zone_pkey().
|
static |
Identity service handle.
Definition at line 125 of file gnunet-namestore.c.
Referenced by do_shutdown(), and run().
|
static |
Name of the ego controlling the zone.
Definition at line 130 of file gnunet-namestore.c.
Referenced by handle_reverse_lookup(), id_connect_cb(), main(), reset_handles(), and run_with_zone_pkey().
|
static |
Queue entry for the 'add-uri' operation.
Definition at line 135 of file gnunet-namestore.c.
Referenced by reset_handles(), and run_with_zone_pkey().
|
static |
Queue entry for the 'add' operation.
Definition at line 140 of file gnunet-namestore.c.
Referenced by add_error_cb(), get_existing_record(), reset_handles(), and run_with_zone_pkey().
|
static |
Queue entry for the 'lookup' operation.
Definition at line 145 of file gnunet-namestore.c.
Referenced by display_record_lookup(), lookup_error_cb(), reset_handles(), and run_with_zone_pkey().
|
static |
Queue entry for the 'reverse lookup' operation (in combination with a name).
Definition at line 150 of file gnunet-namestore.c.
Referenced by handle_reverse_lookup(), reset_handles(), reverse_error_cb(), and run_with_zone_pkey().
|
static |
Marked record list.
Definition at line 155 of file gnunet-namestore.c.
Referenced by collect_orphans(), collect_zone_records_to_purge(), purge_next_record(), and reset_handles().
|
static |
Marked record list.
Definition at line 160 of file gnunet-namestore.c.
Referenced by collect_orphans(), collect_zone_records_to_purge(), and purge_next_record().
const struct GNUNET_CONFIGURATION_Handle* cfg |
Configuration handle.
Handle to our configuration.
Definition at line 165 of file gnunet-namestore.c.
Referenced by id_connect_cb(), process_command_stdin(), and run().
|
static |
Ego list.
Definition at line 170 of file gnunet-namestore.c.
Referenced by collect_orphans(), display_record(), do_shutdown(), get_identity_for_string(), and id_connect_cb().
|
static |
|
static |
List iterator for the 'list' operation.
Definition at line 180 of file gnunet-namestore.c.
Referenced by display_record_iterator(), purge_orphans_iterator(), purge_zone_iterator(), reset_handles(), run_with_zone_pkey(), zone_iteration_error_cb(), and zone_iteration_finished().
|
static |
Run in read from stdin mode.
Definition at line 185 of file gnunet-namestore.c.
Referenced by finish_command(), id_connect_cb(), and main().
|
static |
Desired action is to list records.
Definition at line 190 of file gnunet-namestore.c.
Referenced by main(), reset_handles(), and run_with_zone_pkey().
|
static |
Desired action is to add a record.
Definition at line 195 of file gnunet-namestore.c.
Referenced by check_ipv4_listed(), check_notify_client(), main(), notify_client(), notify_client_external_ipv4_change(), notify_clients(), notify_clients_stun_change(), notify_monitors_external_ipv4_change(), and run_with_zone_pkey().
|
static |
Desired action is to remove a record.
Definition at line 200 of file gnunet-namestore.c.
Referenced by forward_resolution(), GNUNET_ABD_delegate_issue(), main(), run_with_zone_pkey(), and send_lookup_response().
|
static |
Is record public (opposite of GNUNET_GNSRECORD_RF_PRIVATE)
Definition at line 205 of file gnunet-namestore.c.
Referenced by get_existing_record(), main(), reset_handles(), and run_with_zone_pkey().
|
static |
Is record a shadow record (GNUNET_GNSRECORD_RF_SHADOW)
Definition at line 210 of file gnunet-namestore.c.
Referenced by get_existing_record(), main(), reset_handles(), and run_with_zone_pkey().
|
static |
Is record a maintenance record (GNUNET_GNSRECORD_RF_MAINTENANCE)
Definition at line 215 of file gnunet-namestore.c.
Referenced by get_existing_record(), main(), reset_handles(), and run_with_zone_pkey().
|
static |
Filter private records.
Definition at line 220 of file gnunet-namestore.c.
Referenced by main(), and run_with_zone_pkey().
|
static |
Output in recordline format.
Definition at line 225 of file gnunet-namestore.c.
Referenced by display_record(), and main().
|
static |
Purge zone contents.
Definition at line 231 of file gnunet-namestore.c.
Referenced by main(), reset_handles(), run_with_zone_pkey(), and zone_iteration_finished().
|
static |
Do not filter maintenance records.
Definition at line 236 of file gnunet-namestore.c.
Referenced by main(), and run_with_zone_pkey().
|
static |
Purge orphaned records.
Definition at line 241 of file gnunet-namestore.c.
Referenced by main(), run_with_zone_pkey(), and zone_iteration_finished().
|
static |
List records and zone keys of orphaned records.
Definition at line 246 of file gnunet-namestore.c.
Referenced by display_record(), main(), and run_with_zone_pkey().
|
static |
Queue entry for the 'del' operation.
Definition at line 251 of file gnunet-namestore.c.
Referenced by del_continuation(), del_lookup_error_cb(), del_monitor(), marked_deleted(), purge_next_record(), reset_handles(), and run_with_zone_pkey().
|
static |
Queue entry for the 'set/replace' operation.
Definition at line 256 of file gnunet-namestore.c.
Referenced by batch_insert_recordinfo(), replace_cont(), reset_handles(), and run_with_zone_pkey().
|
static |
Queue entry for begin/commit.
Definition at line 261 of file gnunet-namestore.c.
Referenced by do_shutdown().
|
static |
Name of the records to add/list/remove.
Definition at line 266 of file gnunet-namestore.c.
Referenced by del_monitor(), display_record(), get_existing_record(), main(), reset_handles(), and run_with_zone_pkey().
|
static |
Value of the record to add/remove.
Definition at line 271 of file gnunet-namestore.c.
Referenced by add_get_request_to_pending(), add_global_addresses(), add_known_to_bloom(), add_section_contents(), add_sections(), add_setter_action(), attr_in_claims_request(), auto_conf_iter(), bandwidth_stats_iterator(), bind_loose_channel(), build_result_set(), bulk_tx_start(), call_iterator(), cancel_pending_request(), change_peer_respect(), channel_destroy_iterator(), check_connection_quality(), check_known_address(), check_known_challenge(), check_validation_request_pending(), check_vectors(), clean_local_client(), clean_request(), cleanup_channel(), cleanup_destination(), cleanup_hashmap(), cleanup_url_map(), clear_linked_hash(), client_release_ports(), close_files_iter(), collector(), compare_entries(), compute_service_response(), compute_square_sum_mpi_elements(), con_val_iter(), consume_cont(), contains_address(), cookie_identity_interpretation(), copy_element_cb(), copy_entry(), create_randomized_element_iterator(), create_response(), debug_channel(), decrementBit(), del_monitor(), delete_linked_hash(), delete_value(), destroy_active_client_request(), destroy_channel_cb(), destroy_elements_iterator(), destroy_it(), destroy_iterator_cb(), destroy_key_to_element_iter(), destroy_paths_now(), destroy_port_cb(), destroy_remaining_channels(), destroy_tunnels_now(), determinate_avg_element_size_iterator(), determinate_done_message_iterator(), disconnect_and_free_peer_entry(), dns_string_to_value(), dns_value_to_string(), do_flood(), do_notify(), do_restart_typemap_message(), dv_neighbour_selection(), dv_neighbour_transmission(), escape_name(), execute_get(), expire_blocks(), filter_all(), filtered_map_initialization(), find_advertisable_hello(), find_by_message_uuid(), find_by_unique_id(), find_closest(), find_linked_hash(), find_result_set(), find_store_peer(), find_trees(), flush_respect(), format_help(), forward_reply(), free_ack_cummulator_cb(), free_backtalker_cb(), free_carriers_cb(), free_dv_routes_cb(), free_ego(), free_element_cb(), free_entry(), free_item(), free_iterate(), free_neighbour_cb(), free_peer(), free_pending_ack_cb(), free_reassembly_cb(), free_request_it(), free_result(), free_service_record(), free_subnets_cb(), free_sug_handle(), free_validation_state_cb(), free_value(), free_value_cb(), free_values_iter(), free_waiting_entry(), full_sync_plausibility_check(), get_all_peers_iterator(), get_all_tunnels_iterator(), get_cb(), get_connection_delete_it(), get_iterator(), get_lt_delete_it(), get_peer_delete_it(), get_queue_delete_it(), get_rand_peer_iterator(), get_receiver_delete_it(), get_result_present(), get_sender_delete_it(), get_stream_delete_it(), get_url_parameter_copy(), getopt_set_keywords(), getopt_set_metadata(), GNUNET_CONFIGURATION_append_value_filename(), GNUNET_CONFIGURATION_config_tool_run(), GNUNET_CONFIGURATION_deserialize(), GNUNET_CONFIGURATION_get_value_choice(), GNUNET_CONFIGURATION_get_value_filename(), GNUNET_CONFIGURATION_get_value_string(), GNUNET_CONFIGURATION_remove_value_filename(), GNUNET_CONFIGURATION_set_value_string(), GNUNET_CONTAINER_multihashmap32_contains_value(), GNUNET_CONTAINER_multihashmap32_iterator_next(), GNUNET_CONTAINER_multihashmap32_put(), GNUNET_CONTAINER_multihashmap32_remove(), GNUNET_CONTAINER_multihashmap_contains_value(), GNUNET_CONTAINER_multihashmap_iterator_next(), GNUNET_CONTAINER_multihashmap_put(), GNUNET_CONTAINER_multihashmap_remove(), GNUNET_CONTAINER_multipeermap_contains_value(), GNUNET_CONTAINER_multipeermap_iterator_next(), GNUNET_CONTAINER_multipeermap_put(), GNUNET_CONTAINER_multipeermap_remove(), GNUNET_CONTAINER_multishortmap_contains_value(), GNUNET_CONTAINER_multishortmap_iterator_next(), GNUNET_CONTAINER_multishortmap_put(), GNUNET_CONTAINER_multishortmap_remove(), GNUNET_CONTAINER_multiuuidmap_contains_value(), GNUNET_CONTAINER_multiuuidmap_iterator_next(), GNUNET_CONTAINER_multiuuidmap_put(), GNUNET_CONTAINER_multiuuidmap_remove(), GNUNET_NETWORK_socket_disable_corking(), GNUNET_PEERSTORE_store(), GNUNET_STATISTICS_set(), GNUNET_TESTING_set_label(), GSF_cadet_release_clients(), handle_ack(), handle_ack_by_sender(), handle_alice_client_message(), handle_bob_client_message(), handle_set(), header_iterator(), heap_plugin_get_expiration(), heap_plugin_get_replication(), heap_plugin_get_zero_anonymity(), heap_plugin_put(), host_processor(), http_recv_header_cb(), increment_value(), incrementBit(), init_key_to_element_iterator(), initialize_map_unfiltered(), inspect_attrs(), iterate_channels_cb(), iterate_close_room(), iterate_copy_history(), iterate_destroy_contacts(), iterate_destroy_entries(), iterate_destroy_link(), iterate_destroy_links(), iterate_destroy_members(), iterate_destroy_message(), iterate_destroy_messages(), iterate_destroy_operations(), iterate_destroy_peers(), iterate_destroy_room(), iterate_destroy_rooms(), iterate_destroy_session(), iterate_destroy_subscription(), iterate_destroy_tunnels(), iterate_find_member(), iterate_find_room(), iterate_flag_for_cleanup_discourse_message(), iterate_free_values(), iterate_load_next_member_sessions(), iterate_load_next_session(), iterate_local_members(), iterate_member_sessions_it(), iterate_message_control(), iterate_next_member_ids(), iterate_reachables(), iterate_reset_room(), iterate_save_entries(), iterate_save_links(), iterate_save_member_session_history_hentries(), iterate_save_members(), iterate_save_messages(), iterate_save_operations(), iterate_save_peers(), iterate_save_session(), iterate_search_session(), iterate_send_room_message(), iterate_store_members_it(), iterate_sync_member_contacts(), iterate_sync_session_contact(), iterate_zones(), iterator_bf_create(), iterator_bf_reduce(), jwt_parse_attributes(), link_room_message(), log_namespaces(), log_nodes(), lookup_queue_it(), main(), make_nv(), migrate_and_drop_keywords(), migrate_and_drop_metadata(), move_to_pending(), move_to_queue(), mpi_to_sexp(), neighbour_delete(), nibble_to_regex(), notify_client_about_session(), notify_client_connect_info(), notify_client_queues(), notify_tunnel_up_cb(), num_to_regex(), op_get_element_iterator(), open_port_cb(), parse_record(), parse_record_data(), peermap_clear_iterator(), PEERSTORE_create_record_mq_envelope(), peerstore_sqlite_store_record(), pending_reversals_delete_it(), prepare_ibf_iterator(), print_option(), print_version(), printer(), printer_watch(), process(), process_client_result(), process_reply(), process_result_with_request(), process_stat(), process_stat_in(), process_stats(), process_update_node(), put_cb(), reachability_iterator(), read_service_conf(), regex_cancel_dht_get(), regex_free_result(), regex_result_iterator(), register_notify(), remove_all(), remove_by_unique_id(), remove_global_addresses(), remove_iterator(), reschedule_hellos(), reset_handles(), resume_communicators(), rsa_sign_mpi(), run_with_zone_pkey(), schedule_current_round(), search_result_free(), search_result_freeze_probes(), search_result_resume_probes(), search_result_stop(), search_result_suspend(), send_full_element_iterator(), send_missing_full_elements_iter(), send_offers_iterator(), send_simple_cb(), set_absolute_time(), set_attributes_from_idtoken(), set_base32(), set_cont(), set_filename(), set_json(), set_one(), set_relative_time(), set_string(), set_timestamp(), set_timetravel_time(), set_uint(), set_uint16(), set_ulong(), set_value(), signal_result_resume(), socket_set_nodelay(), start_carriers(), start_subnets(), stats_iterator(), stop_peer_request(), store_and_free_entries(), store_peer_presistently_iterator(), stun_attr2str(), stun_msg2str(), test_exist_cb(), test_result_present(), tld_iter(), transmit_client_response(), transmit_suggestion(), try_add_peers(), try_combine_recent(), update_config(), update_flood_times(), update_iterator(), update_sre_result_maps(), url_iterator(), valid_peer_iterator(), verify_store_peer(), write_item(), and zone_to_name().
|
static |
URI to import.
Definition at line 276 of file gnunet-namestore.c.
Referenced by main(), reset_handles(), and run_with_zone_pkey().
|
static |
Reverse lookup to perform.
Definition at line 281 of file gnunet-namestore.c.
Referenced by handle_reverse_lookup(), main(), reverse_error_cb(), and run_with_zone_pkey().
|
static |
Type of the record to add/remove, NULL to remove all.
Definition at line 286 of file gnunet-namestore.c.
Referenced by del_monitor(), display_record(), display_records_from_block(), main(), reset_handles(), and run_with_zone_pkey().
|
static |
Desired expiration time.
Definition at line 291 of file gnunet-namestore.c.
Referenced by main(), reset_handles(), and run_with_zone_pkey().
|
static |
Desired nick name.
Definition at line 296 of file gnunet-namestore.c.
Referenced by main(), and run_with_zone_pkey().
|
static |
Global return value.
Definition at line 301 of file gnunet-namestore.c.
Referenced by add_continuation(), add_error_cb(), del_lookup_error_cb(), del_monitor(), get_existing_record(), main(), process_command_stdin(), purge_next_record(), replace_cont(), run(), run_with_zone_pkey(), zone_iteration_error_cb(), and zone_iteration_finished().
|
static |
Type string converted to DNS type value.
Definition at line 306 of file gnunet-namestore.c.
Referenced by abd_number_to_typename(), abd_string_to_value(), abd_value_to_string(), add_record(), add_setter_action(), add_to_meta_counter(), attr_collect(), auto_config_cb(), basic_number_to_typename(), basic_string_to_value(), basic_value_to_string(), block_plugin_dht_check_block(), block_plugin_dht_check_query(), block_plugin_dht_check_reply(), block_plugin_dht_create_group(), block_plugin_dht_get_key(), block_plugin_dns_check_block(), block_plugin_dns_check_query(), block_plugin_dns_check_reply(), block_plugin_dns_create_group(), block_plugin_dns_get_key(), block_plugin_fs_check_block(), block_plugin_fs_check_query(), block_plugin_fs_check_reply(), block_plugin_fs_create_group(), block_plugin_fs_get_key(), block_plugin_gns_check_block(), block_plugin_gns_check_query(), block_plugin_gns_check_reply(), block_plugin_gns_create_group(), block_plugin_gns_get_key(), block_plugin_regex_check_block(), block_plugin_regex_check_query(), block_plugin_regex_check_reply(), block_plugin_regex_create_group(), block_plugin_regex_get_key(), block_plugin_revocation_check_block(), block_plugin_revocation_check_query(), block_plugin_revocation_check_reply(), block_plugin_revocation_get_key(), block_plugin_seti_test_check_block(), block_plugin_seti_test_check_query(), block_plugin_seti_test_check_reply(), block_plugin_seti_test_get_key(), block_plugin_setu_test_check_block(), block_plugin_setu_test_check_query(), block_plugin_setu_test_check_reply(), block_plugin_setu_test_get_key(), block_plugin_template_create_group(), block_plugin_test_check_block(), block_plugin_test_check_query(), block_plugin_test_check_reply(), block_plugin_test_create_group(), block_plugin_test_get_key(), block_proc(), cadet_reply_proc(), callback_operation(), change_service(), check_key_type(), check_p2p_put(), child_completed_callback(), client_response_handler(), conversation_number_to_typename(), conversation_string_to_value(), conversation_value_to_string(), cred_collect(), display_record(), dns_number_to_typename(), dns_string_to_value(), dns_value_to_string(), ego_create(), gnunet-chk::encode_data_to_string(), execute_get(), expired_processor(), find_full_data(), find_plugin(), for_matching_monitors(), gather_uri_data(), GDS_CLIENTS_process_get(), GDS_DATACACHE_get_closest(), GDS_DATACACHE_handle_get(), GDS_NEIGHBOURS_handle_get(), GDS_ROUTING_add(), get_app(), get_audiobin(), get_callback(), get_cb(), get_coder(), get_existing_record(), get_resp_callback(), get_result_iterator(), get_type(), get_typed(), getopt_set_metadata(), gns_is_critical(), gns_number_to_typename(), gns_string_to_value(), gns_value_to_string(), GNUNET_BLOCK_check_block(), GNUNET_BLOCK_check_query(), GNUNET_BLOCK_check_reply(), GNUNET_BLOCK_get_key(), GNUNET_BLOCK_GROUP_bf_create(), GNUNET_BLOCK_group_create(), GNUNET_CADET_drop_message(), GNUNET_CRYPTO_signature_get_raw_length_by_type(), GNUNET_DATACACHE_get(), GNUNET_DATACACHE_get_closest(), GNUNET_DATASTORE_get_key(), GNUNET_DATASTORE_get_zero_anonymity(), GNUNET_DATASTORE_put(), GNUNET_DHT_get_start(), GNUNET_DHT_monitor_start(), GNUNET_DHT_put(), GNUNET_FS_meta_data_delete(), GNUNET_FS_meta_data_get_by_type(), GNUNET_FS_meta_data_get_first_by_types(), GNUNET_FS_meta_data_insert(), GNUNET_GNS_lookup(), GNUNET_GNS_lookup_limited(), GNUNET_GNS_lookup_with_tld(), GNUNET_GNSRECORD_data_from_identity(), GNUNET_GNSRECORD_identity_from_data(), GNUNET_GNSRECORD_is_critical(), GNUNET_GNSRECORD_is_zonekey_type(), GNUNET_GNSRECORD_number_to_typename(), GNUNET_GNSRECORD_string_to_value(), GNUNET_GNSRECORD_value_to_string(), GNUNET_MQ_msg_(), GNUNET_MQ_msg_nested_mh_(), GNUNET_MQ_preference_to_string(), GNUNET_NETWORK_socket_create(), GNUNET_NT_scanner_get_type(), GNUNET_OS_process_status(), GNUNET_OS_process_wait_status(), GNUNET_PQ_exec_sql(), GNUNET_RECLAIM_attribute_list_add(), GNUNET_RECLAIM_attribute_new(), GNUNET_RECLAIM_attribute_number_to_typename(), GNUNET_RECLAIM_attribute_string_to_value(), GNUNET_RECLAIM_attribute_value_to_string(), GNUNET_RECLAIM_credential_new(), GNUNET_RECLAIM_credential_number_to_typename(), GNUNET_RECLAIM_credential_string_to_value(), GNUNET_RECLAIM_credential_value_to_string(), GNUNET_RECLAIM_presentation_new(), GNUNET_RECLAIM_presentation_number_to_typename(), GNUNET_RECLAIM_presentation_string_to_value(), GNUNET_RECLAIM_presentation_value_to_string(), GSC_SESSIONS_add_to_typemap(), GSF_cadet_query(), GSF_pending_request_create_(), handle_auto_result(), handle_client_accept(), handle_client_start_search(), handle_datastore_reply(), handle_dht_p2p_get(), handle_dht_reply(), handle_dht_response(), handle_get_zero_anonymity(), handle_local_data(), handle_p2p_put(), handle_p2p_reply(), handle_reply(), handle_result(), heap_plugin_get(), heap_plugin_get_closest(), heap_plugin_get_key(), heap_plugin_get_zero_anonymity(), heap_plugin_put(), initialize_network_handle(), insert_pending_message(), item_printer(), iter_finished(), jwt_number_to_typename(), jwt_string_to_value(), jwt_value_to_string(), main(), maint_child_death(), match_full_data(), merge_helper(), messenger_number_to_typename(), messenger_string_to_value(), messenger_value_to_string(), meta_printer(), number_to_typename(), pabc_number_to_typename(), pabc_string_to_value(), pabc_value_to_string(), pack(), parse(), parse_attr(), parse_credential(), postgres_plugin_get(), postgres_plugin_get_closest(), postgres_plugin_get_key(), postgres_plugin_get_zero_anonymity(), postgres_plugin_put(), process_client_result(), process_dht_put_content(), process_kblock_for_unindex(), process_local_reply(), process_migration_content(), process_status(), put_callback(), queue_send_msg(), quota_processor(), refresh_bloomfilter(), repl_proc(), resolve_and_cache(), run_with_zone_pkey(), send_message(), sqlite_plugin_get(), sqlite_plugin_get_closest(), sqlite_plugin_get_key(), sqlite_plugin_get_zero_anonymity(), sqlite_plugin_put(), start_operation(), string_to_value(), stun_get_mapped(), submit_request(), transmit_item(), try_handle_plaintext(), try_transmission(), type_match(), unindex_process(), union_accept(), use_store_operation(), value_to_string(), and work_test().
|
static |
Value in binary format.
Definition at line 311 of file gnunet-namestore.c.
Referenced by del_monitor(), display_record(), get_existing_record(), process_command_stdin(), reset_handles(), and run_with_zone_pkey().
|
static |
Number of bytes in data.
Definition at line 316 of file gnunet-namestore.c.
Referenced by abd_string_to_value(), abd_value_to_string(), add_dns_result(), add_host(), basic_string_to_value(), basic_value_to_string(), buffer_append(), buffer_init(), cadet_reply_proc(), check_pkey(), consistency_iter(), consume_ticket(), conversation_string_to_value(), conversation_value_to_string(), count_and_separate_strings(), create_string_array(), del_monitor(), display_record(), display_records_from_block(), dns_string_to_value(), dns_value_to_string(), dv_hmac(), filter_tickets_cb(), forward_resolution(), GDS_CLIENTS_handle_reply(), GDS_helper_sign_path(), GDS_NEIGHBOURS_handle_reply(), get_existing_record(), get_records_and_call_iterator(), gns_string_to_value(), gns_value_to_string(), GNUNET_ABD_delegate_deserialize(), GNUNET_CONFIGURATION_get_data(), GNUNET_DHT_verify_path(), GNUNET_DNSPARSER_bin_to_hex(), GNUNET_DNSPARSER_hex_to_bin(), GNUNET_FS_meta_data_delete(), GNUNET_FS_meta_data_insert(), GNUNET_GNSRECORD_data_from_identity(), GNUNET_GNSRECORD_identity_from_data(), GNUNET_GNSRECORD_JSON_from_gnsrecord(), GNUNET_GNSRECORD_records_deserialize(), GNUNET_GNSRECORD_records_get_size(), GNUNET_GNSRECORD_records_serialize(), GNUNET_GNSRECORD_string_to_value(), GNUNET_GNSRECORD_value_to_string(), GNUNET_NAT_stun_handle_packet(), GNUNET_RECLAIM_attribute_deserialize(), GNUNET_RECLAIM_attribute_list_add(), GNUNET_RECLAIM_attribute_list_deserialize(), GNUNET_RECLAIM_attribute_new(), GNUNET_RECLAIM_attribute_serialize(), GNUNET_RECLAIM_attribute_serialize_get_size(), GNUNET_RECLAIM_attribute_string_to_value(), GNUNET_RECLAIM_attribute_value_to_string(), GNUNET_RECLAIM_credential_deserialize(), GNUNET_RECLAIM_credential_list_deserialize(), GNUNET_RECLAIM_credential_new(), GNUNET_RECLAIM_credential_serialize(), GNUNET_RECLAIM_credential_serialize_get_size(), GNUNET_RECLAIM_credential_string_to_value(), GNUNET_RECLAIM_credential_value_to_string(), GNUNET_RECLAIM_presentation_deserialize(), GNUNET_RECLAIM_presentation_list_deserialize(), GNUNET_RECLAIM_presentation_new(), GNUNET_RECLAIM_presentation_serialize(), GNUNET_RECLAIM_presentation_serialize_get_size(), GNUNET_RECLAIM_presentation_string_to_value(), GNUNET_RECLAIM_presentation_value_to_string(), handle_delegate_collection_cb(), handle_gns2dns_result(), handle_gns_resolution_result(), handle_gns_response(), issue_ticket(), item_printer(), iter_finished(), jwt_get_expiration(), jwt_get_issuer(), jwt_parse_attributes(), jwt_string_to_value(), jwt_value_to_string(), lookup_authz_cb(), lookup_nick_it(), lookup_redirect_uri_result(), merge_helper(), merge_with_nick_records(), messenger_string_to_value(), messenger_value_to_string(), namestore_flat_store_records(), namestore_postgres_store_records(), namestore_sqlite_store_records(), pabc_string_to_value(), pabc_value_to_string(), parse(), parse_attr(), parse_credential(), parse_result_call_iterator(), play(), process_command_stdin(), process_lookup_result(), process_parallel_lookup_result(), read_stdio(), record(), recursive_gns2dns_resolution(), reply_to_dns(), result_processor(), run_with_zone_pkey(), rvk_move_attr_cb(), sqlite_plugin_del(), store_and_free_entries(), string_to_value(), transmit_call_audio(), transmit_phone_audio(), update_tickets(), and value_to_string().
|
static |
Expiration string converted to numeric value.
Definition at line 321 of file gnunet-namestore.c.
Referenced by generate_gns_certificate(), get_existing_record(), run(), and run_with_zone_pkey().
|
static |
Is expiration time relative or absolute time?
Definition at line 326 of file gnunet-namestore.c.
Referenced by get_existing_record(), and run_with_zone_pkey().
|
static |
Monitor handle.
Definition at line 331 of file gnunet-namestore.c.
Referenced by check_result(), client_disconnect_cb(), continue_store_activity(), display_record_monitor(), GNUNET_NAMESTORE_zone_monitor_next(), GNUNET_NAMESTORE_zone_monitor_start(), GNUNET_NAMESTORE_zone_monitor_start2(), GNUNET_NAMESTORE_zone_monitor_stop(), GNUNET_PEERSTORE_monitor_next(), GNUNET_PEERSTORE_monitor_stop(), handle_monitor_next(), handle_monitor_start(), handle_result(), handle_sync(), monitor_iterate_cb(), monitor_iteration_next(), monitor_sync(), monitor_unblock(), mq_error_handler(), reconnect(), reset_handles(), run_with_zone_pkey(), and warn_monitor_slow().
|
static |
Enables monitor mode.
Definition at line 336 of file gnunet-namestore.c.
Referenced by main(), and run_with_zone_pkey().
|
static |
Entry in record set for processing records in bulk.
Definition at line 341 of file gnunet-namestore.c.
Referenced by clear_recordset(), parse_recordline(), process_command_stdin(), and run_with_zone_pkey().
|
static |
Purge task.
Definition at line 346 of file gnunet-namestore.c.
Referenced by marked_deleted(), purge_next_record(), reset_handles(), and zone_iteration_finished().
|
static |
Definition at line 351 of file gnunet-namestore.c.
Referenced by batch_insert_recordinfo(), and process_command_stdin().
|
static |
Definition at line 353 of file gnunet-namestore.c.
Referenced by batch_insert_recordinfo(), do_shutdown(), GNUNET_NAMESTORE_records_store(), and process_command_stdin().
|
static |
Maximum capacity of record_info array.
Definition at line 356 of file gnunet-namestore.c.
Referenced by process_command_stdin().
|
static |
Definition at line 359 of file gnunet-namestore.c.
Referenced by main(), and process_command_stdin().
|
static |
Definition at line 661 of file gnunet-namestore.c.
Referenced by batch_insert_recordinfo(), and process_command_stdin().