aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-proxy.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-12 16:23:48 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-06-12 16:23:48 +0000
commitef7d87aa0e235183bc48f82b3797684a883ec1f3 (patch)
tree0ecf9ca58c3f6dfb4ae4f03014e3fe0ea378edf3 /src/gns/gnunet-gns-proxy.c
parentac5fff04d81839d0d509fb6cc31725a8a753e5bf (diff)
downloadgnunet-ef7d87aa0e235183bc48f82b3797684a883ec1f3.tar.gz
gnunet-ef7d87aa0e235183bc48f82b3797684a883ec1f3.zip
-fix, doxy
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r--src/gns/gnunet-gns-proxy.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index a4f665425..65139beb4 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -488,6 +488,7 @@ curl_download_prepare ();
488 * Callback to free content 488 * Callback to free content
489 * 489 *
490 * @param cls content to free 490 * @param cls content to free
491 * @param tc task context
491 */ 492 */
492static void 493static void
493mhd_content_free (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 494mhd_content_free (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
@@ -550,6 +551,7 @@ process_shorten (void* cls, const char* short_name)
550 * @param pos in buffer 551 * @param pos in buffer
551 * @param buf buffer 552 * @param buf buffer
552 * @param max space in buffer 553 * @param max space in buffer
554 * @return number of bytes written
553 */ 555 */
554static ssize_t 556static ssize_t
555mhd_content_cb (void *cls, 557mhd_content_cb (void *cls,
@@ -1277,6 +1279,8 @@ run_httpds ()
1277 1279
1278/** 1280/**
1279 * schedule mhd 1281 * schedule mhd
1282 *
1283 * @param hd the daemon to run
1280 */ 1284 */
1281static void 1285static void
1282run_httpd (struct MhdHttpList *hd) 1286run_httpd (struct MhdHttpList *hd)
@@ -1550,7 +1554,12 @@ add_handle_to_mhd (struct GNUNET_NETWORK_Handle *h, struct MHD_Daemon *daemon)
1550 return MHD_add_connection (daemon, fd, addr, len); 1554 return MHD_add_connection (daemon, fd, addr, len);
1551} 1555}
1552 1556
1553 1557/**
1558 * Calculate size of file
1559 *
1560 * @param filename name of file
1561 * @return filesize or 0 on error
1562 */
1554static long 1563static long
1555get_file_size (const char* filename) 1564get_file_size (const char* filename)
1556{ 1565{
@@ -1576,6 +1585,7 @@ get_file_size (const char* filename)
1576 * Read file in filename 1585 * Read file in filename
1577 * 1586 *
1578 * @param filename file to read 1587 * @param filename file to read
1588 * @param size pointer where filesize is stored
1579 * @return data 1589 * @return data
1580 */ 1590 */
1581static char* 1591static char*
@@ -1609,8 +1619,6 @@ load_file (const char* filename, unsigned int* size)
1609 return buffer; 1619 return buffer;
1610} 1620}
1611 1621
1612/** SSL stuff **/
1613
1614/** 1622/**
1615 * Load PEM key from file 1623 * Load PEM key from file
1616 * 1624 *
@@ -2210,7 +2218,6 @@ do_shutdown (void *cls,
2210 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 2218 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
2211 "Shutting down...\n"); 2219 "Shutting down...\n");
2212 2220
2213 MHD_fini ();
2214 gnutls_global_deinit (); 2221 gnutls_global_deinit ();
2215 2222
2216 if (GNUNET_SCHEDULER_NO_TASK != curl_download_task) 2223 if (GNUNET_SCHEDULER_NO_TASK != curl_download_task)