1 #ifndef _GNVPN_BLOCKDNS_H_
2 #define _GNVPN_BLOCKDNS_H_
4 #include "gnunet_common.h"
5 #include "gnunet_crypto_lib.h"
8 * Bitmask describing what IP-protocols are supported by the service
10 enum GNUNET_DNS_ServiceTypes
12 GNUNET_DNS_SERVICE_TYPE_UDP = 1,
13 GNUNET_DNS_SERVICE_TYPE_TCP = 2
18 * This is the structure describing an dns-record such as www.gnunet.
20 struct GNUNET_DNS_Record
23 * Signature of the peer affirming that he is offering the service.
25 struct GNUNET_CRYPTO_RsaSignature signature;
28 * Beginning of signed portion of the record, signs everything until
29 * the end of the struct.
31 struct GNUNET_CRYPTO_RsaSignaturePurpose purpose;
34 * The peer providing this service
36 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded peer;
39 * The descriptor for the service
40 * (a peer may provide more than one service)
42 GNUNET_HashCode service_descriptor GNUNET_PACKED;
45 * When does this record expire?
47 struct GNUNET_TIME_AbsoluteNBO expiration_time;
50 * Four TCP and UDP-Ports that are used by this service, big endian format
52 uint64_t ports GNUNET_PACKED;
55 * What connection-types (UDP, TCP, ...) are supported by the service.
56 * Contains an 'enum GNUNET_DNS_ServiceTypes' in big endian format.
58 uint32_t service_type GNUNET_PACKED;