diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-11 13:40:05 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-11 13:40:05 +0200 |
commit | f390dabd6cf746840484d4f19846a083b49d23da (patch) | |
tree | 5689b4805681277acaebc2b3640d43a36a30d54c /src/transport/gnunet-service-tng.c | |
parent | c1f06ac28fef5498952994e0399312b1fc567f22 (diff) | |
download | gnunet-f390dabd6cf746840484d4f19846a083b49d23da.tar.gz gnunet-f390dabd6cf746840484d4f19846a083b49d23da.zip |
remove duplicate API
Diffstat (limited to 'src/transport/gnunet-service-tng.c')
-rw-r--r-- | src/transport/gnunet-service-tng.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c index b8c5ea9f8..2141bc8e1 100644 --- a/src/transport/gnunet-service-tng.c +++ b/src/transport/gnunet-service-tng.c | |||
@@ -24,7 +24,6 @@ | |||
24 | * | 24 | * |
25 | * TODO: | 25 | * TODO: |
26 | * Implement next: | 26 | * Implement next: |
27 | * - remove duplicate HELLO vs. URI API code | ||
28 | * - add (more) logging (beyond line ~7500) | 27 | * - add (more) logging (beyond line ~7500) |
29 | * - properly encrypt *all* DV traffic, not only backchannel; | 28 | * - properly encrypt *all* DV traffic, not only backchannel; |
30 | * rename BackchannelEncapsulation logic to DVEncapsulation! | 29 | * rename BackchannelEncapsulation logic to DVEncapsulation! |
@@ -8702,25 +8701,6 @@ handle_suggest_cancel (void *cls, const struct ExpressPreferenceMessage *msg) | |||
8702 | 8701 | ||
8703 | 8702 | ||
8704 | /** | 8703 | /** |
8705 | * Check #GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_CONSIDER_VERIFY | ||
8706 | * messages. We do nothing here, real verification is done later. | ||
8707 | * | ||
8708 | * @param cls a `struct TransportClient *` | ||
8709 | * @param msg message to verify | ||
8710 | * @return #GNUNET_OK | ||
8711 | */ | ||
8712 | static int | ||
8713 | check_address_consider_verify ( | ||
8714 | void *cls, | ||
8715 | const struct GNUNET_TRANSPORT_AddressToVerify *hdr) | ||
8716 | { | ||
8717 | (void) cls; | ||
8718 | (void) hdr; | ||
8719 | return GNUNET_OK; | ||
8720 | } | ||
8721 | |||
8722 | |||
8723 | /** | ||
8724 | * Closure for #check_known_address. | 8704 | * Closure for #check_known_address. |
8725 | */ | 8705 | */ |
8726 | struct CheckKnownAddressContext | 8706 | struct CheckKnownAddressContext |
@@ -8907,46 +8887,6 @@ handle_suggest (void *cls, const struct ExpressPreferenceMessage *msg) | |||
8907 | 8887 | ||
8908 | 8888 | ||
8909 | /** | 8889 | /** |
8910 | * Given another peers address, consider checking it for validity | ||
8911 | * and then adding it to the Peerstore. | ||
8912 | * | ||
8913 | * @param cls a `struct TransportClient` | ||
8914 | * @param hdr message containing the raw address data and | ||
8915 | * signature in the body, see #GNUNET_HELLO_extract_address() | ||
8916 | */ | ||
8917 | static void | ||
8918 | handle_address_consider_verify ( | ||
8919 | void *cls, | ||
8920 | const struct GNUNET_TRANSPORT_AddressToVerify *hdr) | ||
8921 | { | ||
8922 | struct TransportClient *tc = cls; | ||
8923 | char *address; | ||
8924 | enum GNUNET_NetworkType nt; | ||
8925 | struct GNUNET_TIME_Absolute mono_time; | ||
8926 | |||
8927 | (void) cls; | ||
8928 | // OPTIMIZE-FIXME: checking that we know this address already should | ||
8929 | // be done BEFORE checking the signature => HELLO API change! | ||
8930 | // OPTIMIZE-FIXME: pre-check: rate-limit signature verification / | ||
8931 | // validation?! | ||
8932 | address = | ||
8933 | GNUNET_HELLO_extract_address (&hdr[1], | ||
8934 | ntohs (hdr->header.size) - sizeof (*hdr), | ||
8935 | &hdr->peer, | ||
8936 | &nt, | ||
8937 | &mono_time); | ||
8938 | if (NULL == address) | ||
8939 | { | ||
8940 | GNUNET_break_op (0); | ||
8941 | return; | ||
8942 | } | ||
8943 | start_address_validation (&hdr->peer, address); | ||
8944 | GNUNET_free (address); | ||
8945 | GNUNET_SERVICE_client_continue (tc->client); | ||
8946 | } | ||
8947 | |||
8948 | |||
8949 | /** | ||
8950 | * Check #GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_HELLO_VALIDATION | 8890 | * Check #GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_HELLO_VALIDATION |
8951 | * messages. | 8891 | * messages. |
8952 | * | 8892 | * |
@@ -9326,10 +9266,6 @@ GNUNET_SERVICE_MAIN ( | |||
9326 | GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_SETUP, | 9266 | GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_SETUP, |
9327 | struct GNUNET_TRANSPORT_AddQueueMessage, | 9267 | struct GNUNET_TRANSPORT_AddQueueMessage, |
9328 | NULL), | 9268 | NULL), |
9329 | GNUNET_MQ_hd_var_size (address_consider_verify, | ||
9330 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_CONSIDER_VERIFY, | ||
9331 | struct GNUNET_TRANSPORT_AddressToVerify, | ||
9332 | NULL), | ||
9333 | GNUNET_MQ_hd_fixed_size (del_queue_message, | 9269 | GNUNET_MQ_hd_fixed_size (del_queue_message, |
9334 | GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_TEARDOWN, | 9270 | GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_TEARDOWN, |
9335 | struct GNUNET_TRANSPORT_DelQueueMessage, | 9271 | struct GNUNET_TRANSPORT_DelQueueMessage, |