-fix for #688590: allow user to specify how to install nsslibs
[oweals/gnunet.git] / src / gns / gnunet-gns-fcfsd.c
index fa574830ef6c358cdeb27e794abfa706478fa261..5503000aca79e8a98438664a562a620728d8585c 100644 (file)
@@ -42,7 +42,7 @@
 /**
  * Front page. (/)
  */
-#define MAIN_PAGE "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\"><html><head><title>GNUnet FCFS Authority Name Registration Service</title></head><body><form action=\"S\" method=\"post\">What is your desired domain name? (63 characters, no dots allowed.) <input type=\"text\" name=\"domain\" /> <p> What is your public key? (Copy from gnunet-setup.) <input type=\"text\" name=\"pkey\" /> <input type=\"submit\" value=\"Next\" /><br/><a href=/Zoneinfo> List of all registered names </a></body></html>"
+#define MAIN_PAGE "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\"><html><head><title>GNUnet FCFS Authority Name Registration Service</title></head><body><form action=\"S\" method=\"post\">What is your desired domain name? (at most 63 lowercase characters, no dots allowed.) <input type=\"text\" name=\"domain\" /> <p> What is your public key? (Copy from gnunet-setup.) <input type=\"text\" name=\"pkey\" /> <input type=\"submit\" value=\"Next\" /><br/><a href=./Zoneinfo> List of all registered names </a></body></html>"
 
 /**
  * Second page (/S)
@@ -52,7 +52,7 @@
 /**
  * Fcfs zoneinfo page (/Zoneinfo)
  */
-#define ZONEINFO_PAGE "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\"><html><head><title>%s</title></head><body><h1> FCFS Zoneinfo </h1><table border=\"1\"><th>name</th><th>PKEY</th>%s</table></body></html>"
+#define ZONEINFO_PAGE "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\"><html><head><title>FCFS Zoneinfo</title></head><body><h1> FCFS Zoneinfo </h1><table border=\"1\"><th>name</th><th>PKEY</th>%s</table></body></html>"
 
 #define FCFS_ZONEINFO_URL "/Zoneinfo"
 
@@ -771,6 +771,9 @@ request_completed_callback (void *cls,
 }
 
 
+#define UNSIGNED_MHD_LONG_LONG unsigned MHD_LONG_LONG
+
+
 /**
  * Schedule tasks to run MHD server.
  */
@@ -785,7 +788,7 @@ run_httpd ()
   struct GNUNET_NETWORK_FDSet *wes;
   int max;
   int haveto;
-  unsigned MHD_LONG_LONG timeout;
+  UNSIGNED_MHD_LONG_LONG timeout;
   struct GNUNET_TIME_Relative tv;
 
   FD_ZERO (&rs);
@@ -885,11 +888,9 @@ run (void *cls, char *const *args, const char *cfgfile,
                                             "HTTPPORT",
                                             &port))
   {
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                 _("Option `%s' not specified in configuration section `%s'\n"),
-                 "HTTPPORT",
-                 "fcfsd");
-      return;
+    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+                              "fcfsd", "HTTPPORT");
+    return;
   }
   if (GNUNET_OK !=
       GNUNET_CONFIGURATION_get_value_filename (cfg,
@@ -897,10 +898,8 @@ run (void *cls, char *const *args, const char *cfgfile,
                                               "ZONEKEY",
                                               &keyfile))
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-               _("Option `%s' not specified in configuration section `%s'\n"),
-               "ZONEKEY",
-               "fcfsd");
+    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+                              "fcfsd", "ZONEKEY");
     return;
   }
   fcfs_zone_pkey = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile);