introduce have_rest; fix warnings
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 6 May 2020 09:55:04 +0000 (11:55 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 6 May 2020 09:55:04 +0000 (11:55 +0200)
src/Makefile.am
src/abd/gnunet-abd.c
src/gns/Makefile.am
src/gns/gnunet-gns-proxy.c
src/identity/Makefile.am
src/include/gnunet_identity_service.h
src/namestore/Makefile.am
src/namestore/gnunet-namestore.c
src/peerinfo-tool/Makefile.am
src/reclaim/Makefile.am
src/revocation/gnunet-revocation.c

index c769ac5af5787dd5fe7b0874b42b370d59fc8c54..4642b6215c44a4eb36c15a1ef345fecbe09a8559 100644 (file)
@@ -58,11 +58,9 @@ if HAVE_POSTGRESQL
  POSTGRES_DIR = pq
 endif
 
-if HAVE_MHD
-if HAVE_JSON
+if HAVE_REST
  REST_DIR = rest
 endif
-endif
 
 
 SUBDIRS = \
index 6cf4aab0d33af2ab643acea13c8f1a65da559e28..f7e03fb4a52de642374bb87ff129caebf5124f9b 100644 (file)
@@ -384,7 +384,7 @@ handle_verify_result (void *cls,
  * @param ego an ego known to identity service, or NULL
  */
 static void
-identity_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
+identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego)
 {
   const struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey;
 
@@ -547,7 +547,7 @@ get_existing_record (void *cls,
 
 
 static void
-store_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
+store_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego)
 {
   const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
 
@@ -648,7 +648,7 @@ store_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
 
 
 static void
-sign_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
+sign_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego)
 {
   const struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey;
   struct GNUNET_ABD_Delegate *dele;
index abd5d5b48f9f9ab4e3da54065684246e1ae68dd6..7a5f7cfd825c3cbcbe3e137fcfe9e198bdd7a4ad 100644 (file)
@@ -88,11 +88,9 @@ bin_PROGRAMS += gnunet-bcd
 endif
 endif
 
-if HAVE_MHD
-if HAVE_JSON
+if HAVE_REST
 REST_PLUGIN = libgnunet_plugin_rest_gns.la
 endif
-endif
 
 plugin_LTLIBRARIES = \
   libgnunet_plugin_block_gns.la \
index 956faf9838d0eafd4277337251749bb6fea4848f..eb6c6852ecaaa4cea1526c505f040a60f867d7aa 100644 (file)
@@ -3378,7 +3378,7 @@ do_s5r_read (void *cls)
         s5r->gns_lookup = GNUNET_GNS_lookup_with_tld (gns_handle,
                                                       s5r->domain,
                                                       GNUNET_DNSPARSER_TYPE_A,
-                                                      GNUNET_NO /* only cached */,
+                                                      GNUNET_GNS_LO_LOCAL_MASTER /* only cached */,
                                                       &handle_gns_result,
                                                       s5r);
         break;
index 9f580f0f9e899935f9172e91cb694eb9598b23f2..17e72c78432dfb0837720e78c1300ddb65dd5f58 100644 (file)
@@ -8,11 +8,9 @@ if USE_COVERAGE
   XLIB = -lgcov
 endif
 
-if HAVE_MHD
-if HAVE_JSON
+if HAVE_REST
 plugin_LTLIBRARIES = libgnunet_plugin_rest_identity.la
 endif
-endif
 
 pkgcfgdir= $(pkgdatadir)/config.d/
 
index af5beb5f74f3863b19a61a573a698514e356f21a..81af671e2fecaec3018d72f2f05cb59f62cf9d7d 100644 (file)
@@ -300,7 +300,7 @@ GNUNET_IDENTITY_cancel (struct GNUNET_IDENTITY_Operation *op);
  */
 typedef void
 (*GNUNET_IDENTITY_EgoCallback) (void *cls,
-                                const struct GNUNET_IDENTITY_Ego *ego);
+                                struct GNUNET_IDENTITY_Ego *ego);
 
 /**
  * Handle for ego lookup.
index 12d730f3610b0ee8e2c4c1209fcaf880b2c17683..94861b4784f8bdf0ea5fa74ebfe02c71095c04b4 100644 (file)
@@ -99,11 +99,9 @@ TESTS = \
   $(check_SCRIPTS)
 endif
 
-if HAVE_MHD
-if HAVE_JSON
+if HAVE_REST
 REST_PLUGIN = libgnunet_plugin_rest_namestore.la
 endif
-endif
 
 lib_LTLIBRARIES = \
   libgnunetnamestore.la
index 508566a495b9059dca583a75a39c7b882cd235fb..3514f4fd9491899a67d410564f50c1e6b14fd7c6 100644 (file)
@@ -1265,7 +1265,7 @@ run_with_zone_pkey (const struct GNUNET_CONFIGURATION_Handle *cfg)
  * @param ego an ego known to identity service, or NULL
  */
 static void
-identity_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
+identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego)
 {
   const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
 
index 05173d551097ec6132a3c747538c12b8fec16299..93252570c001d9086c271fc80e5ed7aa4f63a4cb 100644 (file)
@@ -6,11 +6,9 @@ if USE_COVERAGE
   XLIB = -lgcov
 endif
 
-if HAVE_MHD
-if HAVE_JSON
+if HAVE_REST
 REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la
 endif
-endif
 
 plugindir = $(libdir)/gnunet
 
index b2a4e6bac7204cd5c8bb46a1dd234f69887fa5ca..6d448cc3c82802f03ef26e6e1852a64e3971a99c 100644 (file)
@@ -9,13 +9,11 @@ if USE_COVERAGE
 endif
 
 
-if HAVE_MHD
-if HAVE_JSON
+if HAVE_REST
 REST_PLUGIN = \
   libgnunet_plugin_rest_openid_connect.la \
   libgnunet_plugin_rest_reclaim.la
 endif
-endif
 
 if HAVE_JSON
 ATTESTATION_PLUGIN = \
index 1edd98f0ea5567bea1f0cf15ddfe98dded5daeb8..0e1e482aba78752240e21ad2ecd91ba94c27f36a 100644 (file)
@@ -323,7 +323,7 @@ calculate_pow (void *cls)
  * @param ego the ego, NULL if not found
  */
 static void
-ego_callback (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
+ego_callback (void *cls, struct GNUNET_IDENTITY_Ego *ego)
 {
   struct GNUNET_CRYPTO_EcdsaPublicKey key;
   const struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey;