deprecate USE_SSL for USE_TLS, rename in code
authorChristian Grothoff <christian@grothoff.org>
Tue, 11 Oct 2016 16:13:03 +0000 (16:13 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 11 Oct 2016 16:13:03 +0000 (16:13 +0000)
src/gns/gnunet-gns-proxy.c
src/my/my.c
src/mysql/mysql.c
src/transport/plugin_transport_http_server.c

index ef9c7bf6262290cee19b9a41a8964a139228cb75..477444919554d9a7f4428a5d4d722855c8b6ad03 100644 (file)
@@ -2302,7 +2302,7 @@ lookup_ssl_httpd (const char* domain)
   hd->is_ssl = GNUNET_YES;
   hd->domain = GNUNET_strdup (domain);
   hd->proxy_cert = pgc;
-  hd->daemon = MHD_start_daemon (MHD_USE_DEBUG | MHD_USE_SSL | MHD_USE_NO_LISTEN_SOCKET,
+  hd->daemon = MHD_start_daemon (MHD_USE_DEBUG | MHD_USE_TLS | MHD_USE_NO_LISTEN_SOCKET,
                                  0,
                                  NULL, NULL,
                                  &create_response, hd,
index 5816663b6ddb12edb729350272df2b339c31f6b7..459f09b6a4b65227c88ad532db1d4ea18c054357 100644 (file)
@@ -181,6 +181,7 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh,
                         stmt,
                         field_off,
                         &result[field_off]))
+
       {
         GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                     "Pre-conversion for MySQL result failed at offset %u\n",
index acd54a2882c01c47a0d71eab2f9ffebf21eea419..bebbfbe0f9a35108125abca8c6fbeb187de866b1 100644 (file)
@@ -197,7 +197,7 @@ get_my_cnf_path (const struct GNUNET_CONFIGURATION_Handle *cfg,
  * our default options).
  *
  * @param mc database context to initialze
- * @return GNUNET_OK on success
+ * @return #GNUNET_OK on success
  */
 static int
 iopen (struct GNUNET_MYSQL_Context *mc)
@@ -300,7 +300,8 @@ GNUNET_MYSQL_context_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
   mc = GNUNET_new (struct GNUNET_MYSQL_Context);
   mc->cfg = cfg;
   mc->section = section;
-  mc->cnffile = get_my_cnf_path (cfg, section);
+  mc->cnffile = get_my_cnf_path (cfg,
+                                 section);
 
   return mc;
 }
@@ -383,18 +384,22 @@ GNUNET_MYSQL_statement_prepare (struct GNUNET_MYSQL_Context *mc,
  *
  * @param mc mysql context
  * @param sql SQL statement to run
- * @return GNUNET_OK on success
- *         GNUNET_SYSERR if there was a problem
+ * @return #GNUNET_OK on success
+ *         #GNUNET_SYSERR if there was a problem
  */
 int
-GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc, const char *sql)
+GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc,
+                            const char *sql)
 {
-  if ((NULL == mc->dbf) && (GNUNET_OK != iopen (mc)))
+  if ( (NULL == mc->dbf) &&
+       (GNUNET_OK != iopen (mc)) )
     return GNUNET_SYSERR;
   mysql_query (mc->dbf, sql);
   if (mysql_error (mc->dbf)[0])
   {
-    LOG_MYSQL (GNUNET_ERROR_TYPE_ERROR, "mysql_query", mc);
+    LOG_MYSQL (GNUNET_ERROR_TYPE_ERROR,
+               "mysql_query",
+               mc);
     GNUNET_MYSQL_statements_invalidate (mc);
     return GNUNET_SYSERR;
   }
@@ -407,7 +412,7 @@ GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc, const char *sql)
  *
  * @param mc mysql context
  * @param sh statement handle to prepare
- * @return GNUNET_OK on success
+ * @return #GNUNET_OK on success
  */
 static int
 prepare_statement (struct GNUNET_MYSQL_StatementHandle *sh)
index 5088f2e774e83fee43cc43bba1305f2c5279fce8..1a2f5d21a8251f19eb95de9923ac502c209f81e0 100644 (file)
@@ -2200,7 +2200,7 @@ run_mhd_start_daemon (struct HTTP_Server_Plugin *plugin,
                              MHD_USE_DEBUG |
 #endif
 #if BUILD_HTTPS
-                             MHD_USE_SSL |
+                             MHD_USE_TLS |
 #endif
                              MHD_USE_SUSPEND_RESUME |
                              v6,