-getting ATS and transport to compile again (part of #3047)
[oweals/gnunet.git] / src / transport / plugin_transport_http_client.c
index 2d112d4fe1487d318ff7fda02f1a24d8bcd9f58a..d6db3d22dd8e9a641c5dc81f0e427c4ca18aa5d2 100644 (file)
@@ -42,9 +42,8 @@
 #define ENABLE_GET GNUNET_YES
 
 #include "platform.h"
+#include "gnunet_util_lib.h"
 #include "gnunet_protocols.h"
-#include "gnunet_common.h"
-#include "gnunet_server_lib.h"
 #include "gnunet_transport_plugin.h"
 #include "plugin_transport_http_common.h"
 #include <curl/curl.h>
@@ -1405,9 +1404,9 @@ client_connect (struct Session *s)
   }
 
   GNUNET_asprintf (&s->url, "%s/%s;%u",
-      http_common_plugin_address_to_url (NULL, s->addr, s->addrlen),
-                       GNUNET_h2s_full (&plugin->env->my_identity->hashPubKey),
-                       plugin->last_tag);
+                  http_common_plugin_address_to_url (NULL, s->addr, s->addrlen),
+                  GNUNET_i2s_full (plugin->env->my_identity),
+                  plugin->last_tag);
 
   plugin->last_tag++;