diff options
author | t3sserakt <t3ss@posteo.de> | 2023-06-19 15:39:36 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-06-19 15:39:36 +0200 |
commit | b78f99388e82b61cd6fde7e2f153c50b96dca3dc (patch) | |
tree | f367da4faee0cdc8ba4279469a2b0fc79b90b9ed /src/core/gnunet-service-core_kx.c | |
parent | 823fbe0ecac89397d8a3ab15cf7ef9b3f84a883f (diff) | |
download | gnunet-b78f99388e82b61cd6fde7e2f153c50b96dca3dc.tar.gz gnunet-b78f99388e82b61cd6fde7e2f153c50b96dca3dc.zip |
NEWS: Removed all usage of old transport api, beside peerinfo tool, gnunet-transport cli and usage in transport layer itself.
Diffstat (limited to 'src/core/gnunet-service-core_kx.c')
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index b203f4902..774f967e3 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -26,14 +26,12 @@ | |||
26 | */ | 26 | */ |
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet-service-core_kx.h" | 28 | #include "gnunet-service-core_kx.h" |
29 | #include "gnunet-service-core.h" | 29 | #include "gnunet_transport_core_service.h" |
30 | #include "gnunet-service-core_sessions.h" | 30 | #include "gnunet-service-core_sessions.h" |
31 | #include "gnunet_statistics_service.h" | 31 | #include "gnunet-service-core.h" |
32 | #include "gnunet_transport_service.h" | ||
33 | #include "gnunet_constants.h" | 32 | #include "gnunet_constants.h" |
34 | #include "gnunet_signatures.h" | 33 | #include "gnunet_signatures.h" |
35 | #include "gnunet_protocols.h" | 34 | #include "gnunet_protocols.h" |
36 | #include "core.h" | ||
37 | 35 | ||
38 | /** | 36 | /** |
39 | * Enable expensive (and possibly problematic for privacy!) logging of KX. | 37 | * Enable expensive (and possibly problematic for privacy!) logging of KX. |
@@ -1678,28 +1676,6 @@ handle_encrypted (void *cls, const struct EncryptedMessage *m) | |||
1678 | 1676 | ||
1679 | 1677 | ||
1680 | /** | 1678 | /** |
1681 | * One of our neighbours has excess bandwidth, remember this. | ||
1682 | * | ||
1683 | * @param cls NULL | ||
1684 | * @param pid identity of the peer with excess bandwidth | ||
1685 | * @param connect_cls the `struct Neighbour` | ||
1686 | */ | ||
1687 | static void | ||
1688 | handle_transport_notify_excess_bw (void *cls, | ||
1689 | const struct GNUNET_PeerIdentity *pid, | ||
1690 | void *connect_cls) | ||
1691 | { | ||
1692 | struct GSC_KeyExchangeInfo *kx = connect_cls; | ||
1693 | |||
1694 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1695 | "Peer %s has excess bandwidth available\n", | ||
1696 | GNUNET_i2s (pid)); | ||
1697 | kx->has_excess_bandwidth = GNUNET_YES; | ||
1698 | GSC_SESSIONS_solicit (pid); | ||
1699 | } | ||
1700 | |||
1701 | |||
1702 | /** | ||
1703 | * Setup the message that links the ephemeral key to our persistent | 1679 | * Setup the message that links the ephemeral key to our persistent |
1704 | * public key and generate the appropriate signature. | 1680 | * public key and generate the appropriate signature. |
1705 | */ | 1681 | */ |
@@ -1835,8 +1811,7 @@ GSC_KX_init (struct GNUNET_CRYPTO_EddsaPrivateKey *pk) | |||
1835 | handlers, | 1811 | handlers, |
1836 | NULL, | 1812 | NULL, |
1837 | &handle_transport_notify_connect, | 1813 | &handle_transport_notify_connect, |
1838 | &handle_transport_notify_disconnect, | 1814 | &handle_transport_notify_disconnect); |
1839 | &handle_transport_notify_excess_bw); | ||
1840 | if (NULL == transport) | 1815 | if (NULL == transport) |
1841 | { | 1816 | { |
1842 | GSC_KX_done (); | 1817 | GSC_KX_done (); |