aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.h')
-rw-r--r--src/transport/gnunet-service-transport_validation.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h
index 73d346678..bdf8bd9ed 100644
--- a/src/transport/gnunet-service-transport_validation.h
+++ b/src/transport/gnunet-service-transport_validation.h
@@ -34,15 +34,13 @@
34/** 34/**
35 * Start the validation subsystem. 35 * Start the validation subsystem.
36 */ 36 */
37void 37void GST_validation_start (void);
38GST_validation_start (void);
39 38
40 39
41/** 40/**
42 * Stop the validation subsystem. 41 * Stop the validation subsystem.
43 */ 42 */
44void 43void GST_validation_stop (void);
45GST_validation_stop (void);
46 44
47 45
48/** 46/**
@@ -58,11 +56,11 @@ GST_validation_stop (void);
58 */ 56 */
59void 57void
60GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, 58GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender,
61 const struct GNUNET_MessageHeader *hdr, 59 const struct GNUNET_MessageHeader *hdr,
62 const char *plugin_name, 60 const char *plugin_name,
63 struct Session *session, 61 struct Session *session,
64 const void *sender_address, 62 const void *sender_address,
65 size_t sender_address_len); 63 size_t sender_address_len);
66 64
67 65
68/** 66/**
@@ -74,7 +72,7 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender,
74 */ 72 */
75void 73void
76GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, 74GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
77 const struct GNUNET_MessageHeader *hdr); 75 const struct GNUNET_MessageHeader *hdr);
78 76
79 77
80/** 78/**
@@ -83,8 +81,7 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
83 * 81 *
84 * @param hello the HELLO we received 82 * @param hello the HELLO we received
85 */ 83 */
86void 84void GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello);
87GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello);
88 85
89 86
90/** 87/**
@@ -103,14 +100,19 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello);
103 * @param plugin_address binary address 100 * @param plugin_address binary address
104 * @param plugin_address_len length of address 101 * @param plugin_address_len length of address
105 */ 102 */
106typedef void (*GST_ValidationAddressCallback)(void *cls, 103typedef void (*GST_ValidationAddressCallback) (void *cls,
107 const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *public_key, 104 const struct
108 const struct GNUNET_PeerIdentity *target, 105 GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded
109 struct GNUNET_TIME_Absolute valid_until, 106 * public_key,
110 struct GNUNET_TIME_Absolute validation_block, 107 const struct GNUNET_PeerIdentity
111 const char *plugin_name, 108 * target,
112 const void *plugin_address, 109 struct GNUNET_TIME_Absolute
113 size_t plugin_address_len); 110 valid_until,
111 struct GNUNET_TIME_Absolute
112 validation_block,
113 const char *plugin_name,
114 const void *plugin_address,
115 size_t plugin_address_len);
114 116
115 117
116/** 118/**
@@ -124,8 +126,7 @@ typedef void (*GST_ValidationAddressCallback)(void *cls,
124 */ 126 */
125void 127void
126GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target, 128GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target,
127 GST_ValidationAddressCallback cb, 129 GST_ValidationAddressCallback cb, void *cb_cls);
128 void *cb_cls);
129 130
130 131
131#endif 132#endif