33 #define MAX_NAME_LEN 256
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
A private key for an identity as per LSD0001.
An identity key as per LSD0001.
Time for absolute time used by GNUnet, in microseconds and in network byte order.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP.
struct GNUNET_IDENTITY_PrivateKey zone
The private key of the zone to look up in.
uint32_t label_len
Length of the name.
uint16_t rd_len
Length of serialized record data.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE.
uint16_t rd_count
Number of records contained.
uint16_t name_len
Name length.
int16_t found
Was the label found in the database?? GNUNET_YES or GNUNET_NO.
struct GNUNET_IDENTITY_PrivateKey private_key
The private key of the authority.
Record is returned from the namestore (as authority).
uint16_t rd_len
Length of serialized record data.
uint16_t reserved
always zero (for alignment)
uint16_t name_len
Name length.
struct GNUNET_IDENTITY_PrivateKey private_key
The private key of the authority.
uint16_t rd_count
Number of records contained.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT.
Store a record to the namestore (as authority).
uint16_t reserved
Reserved for alignment.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE.
uint16_t rd_count
Number of records contained.
uint16_t rd_len
Length of serialized record data.
struct GNUNET_TIME_AbsoluteNBO expire
Expiration time.
struct GNUNET_IDENTITY_PrivateKey private_key
The private key of the authority.
uint16_t name_len
Name length.
Response to a record storage request.
uint16_t emsg_len
Error message length.
uint16_t reserved
Reserved for alignment.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE.
int32_t op_result
GNUNET_SYSERR on failure, GNUNET_OK on success
Ask for next result of zone iteration for the given operation.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT.
uint64_t limit
Number of records to return to the iterator in one shot (before GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_IT...
Start a zone iteration for the given zone.
struct GNUNET_IDENTITY_PrivateKey zone
Zone key.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START.
Stop zone iteration for the given operation.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP.
Ask for next result of zone iteration for the given operation.
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT.
uint64_t limit
Number of records to return to the iterator in one shot (before #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_M...
uint32_t reserved
Always zero.
uint32_t iterate_first
GNUNET_YES to first iterate over all records, GNUNET_NO to only monitor changes.o
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START.
struct GNUNET_IDENTITY_PrivateKey zone
Zone key.
Lookup a name for a zone hash.
struct GNUNET_IDENTITY_PrivateKey zone
The private key of the zone to look up in.
struct GNUNET_IDENTITY_PublicKey value_zone
The public key of the target zone.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME.
Respone for zone to name lookup.
int16_t res
result in NBO: GNUNET_OK on success, GNUNET_NO if there were no results, GNUNET_SYSERR on error
uint16_t name_len
Length of the name.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE.
struct GNUNET_IDENTITY_PrivateKey zone
The private key of the zone that contained the name.
uint16_t rd_count
Number of records contained.
uint16_t rd_len
Length of serialized record data.