aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2020-09-08 13:35:15 +0200
committert3sserakt <t3ss@posteo.de>2020-09-08 13:35:15 +0200
commita7d0275e63ddd9780c5a44caeee3646d3af1a396 (patch)
tree054ea845a0807dc5e1f096052210cb8943384c10 /src
parent9e012a7a5c3991d224018b2d390b09d8e32c57ae (diff)
parentab142f088793e5fcf926eb1a352793df49f80c34 (diff)
downloadgnunet-a7d0275e63ddd9780c5a44caeee3646d3af1a396.tar.gz
gnunet-a7d0275e63ddd9780c5a44caeee3646d3af1a396.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src')
-rw-r--r--src/gns/test_gns_proxy.c8
-rw-r--r--src/include/Makefile.am2
-rw-r--r--src/reclaim/gnunet-reclaim.c2
-rw-r--r--src/reclaim/plugin_reclaim_credential_jwt.c2
-rw-r--r--src/seti/Makefile.am2
-rw-r--r--src/setu/Makefile.am2
-rw-r--r--src/setu/test_setu.conf32
-rw-r--r--src/util/gnunet-qr.c7
-rw-r--r--src/util/gnunet-uri.c2
9 files changed, 48 insertions, 11 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c
index 13764d520..579de774f 100644
--- a/src/gns/test_gns_proxy.c
+++ b/src/gns/test_gns_proxy.c
@@ -189,7 +189,7 @@ copy_buffer (void *ptr, size_t size, size_t nmemb, void *ctx)
189} 189}
190 190
191 191
192static int 192static enum MHD_Result
193mhd_ahc (void *cls, 193mhd_ahc (void *cls,
194 struct MHD_Connection *connection, 194 struct MHD_Connection *connection,
195 const char *url, 195 const char *url,
@@ -528,8 +528,6 @@ run (void *cls,
528int 528int
529main (int argc, char *const *argv) 529main (int argc, char *const *argv)
530{ 530{
531 char *tmp_argv;
532
533 struct GNUNET_GETOPT_CommandLineOption options[] = { 531 struct GNUNET_GETOPT_CommandLineOption options[] = {
534 GNUNET_GETOPT_option_uint16 ('p', 532 GNUNET_GETOPT_option_uint16 ('p',
535 "port", 533 "port",
@@ -559,7 +557,7 @@ main (int argc, char *const *argv)
559 } 557 }
560 if (GNUNET_OK != 558 if (GNUNET_OK !=
561 GNUNET_STRINGS_get_utf8_args (argc, argv, 559 GNUNET_STRINGS_get_utf8_args (argc, argv,
562 &argc, &tmp_argv)) 560 &argc, &argv))
563 return 2; 561 return 2;
564 GNUNET_log_setup ("gnunet-gns-proxy-test", 562 GNUNET_log_setup ("gnunet-gns-proxy-test",
565 "WARNING", 563 "WARNING",
@@ -570,7 +568,7 @@ main (int argc, char *const *argv)
570 options, 568 options,
571 &run, NULL)) 569 &run, NULL))
572 return 1; 570 return 1;
573 GNUNET_free (tmp_argv); 571 GNUNET_free_nz ((void*) argv);
574 return global_ret; 572 return global_ret;
575} 573}
576 574
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
index e542038d3..202abb7ac 100644
--- a/src/include/Makefile.am
+++ b/src/include/Makefile.am
@@ -99,6 +99,8 @@ gnunetinclude_HEADERS = \
99 gnunet_secretsharing_service.h \ 99 gnunet_secretsharing_service.h \
100 gnunet_service_lib.h \ 100 gnunet_service_lib.h \
101 gnunet_set_service.h \ 101 gnunet_set_service.h \
102 gnunet_seti_service.h \
103 gnunet_setu_service.h \
102 gnunet_signal_lib.h \ 104 gnunet_signal_lib.h \
103 gnunet_signatures.h \ 105 gnunet_signatures.h \
104 gnunet_socks.h \ 106 gnunet_socks.h \
diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c
index ab281a645..b9306b802 100644
--- a/src/reclaim/gnunet-reclaim.c
+++ b/src/reclaim/gnunet-reclaim.c
@@ -862,7 +862,7 @@ main (int argc, char *const argv[])
862 gettext_noop ("List credentials for EGO"), 862 gettext_noop ("List credentials for EGO"),
863 &list_credentials), 863 &list_credentials),
864 GNUNET_GETOPT_option_string ('I', 864 GNUNET_GETOPT_option_string ('I',
865 "Credential ID", 865 "credential-id",
866 "CREDENTIAL_ID", 866 "CREDENTIAL_ID",
867 gettext_noop ( 867 gettext_noop (
868 "Credential to use for attribute"), 868 "Credential to use for attribute"),
diff --git a/src/reclaim/plugin_reclaim_credential_jwt.c b/src/reclaim/plugin_reclaim_credential_jwt.c
index 148865223..6f52f3a4e 100644
--- a/src/reclaim/plugin_reclaim_credential_jwt.c
+++ b/src/reclaim/plugin_reclaim_credential_jwt.c
@@ -177,6 +177,8 @@ jwt_parse_attributes (void *cls,
177 json_object_foreach (json_val, key, value) { 177 json_object_foreach (json_val, key, value) {
178 if (0 == strcmp ("iss", key)) 178 if (0 == strcmp ("iss", key))
179 continue; 179 continue;
180 if (0 == strcmp ("jti", key))
181 continue;
180 if (0 == strcmp ("exp", key)) 182 if (0 == strcmp ("exp", key))
181 continue; 183 continue;
182 if (0 == strcmp ("iat", key)) 184 if (0 == strcmp ("iat", key))
diff --git a/src/seti/Makefile.am b/src/seti/Makefile.am
index b4980b670..522f33ece 100644
--- a/src/seti/Makefile.am
+++ b/src/seti/Makefile.am
@@ -37,7 +37,7 @@ gnunet_seti_profiler_LDADD = \
37 37
38gnunet_service_seti_SOURCES = \ 38gnunet_service_seti_SOURCES = \
39 gnunet-service-seti.c \ 39 gnunet-service-seti.c \
40 gnunet-service-set_protocol.h 40 gnunet-service-seti_protocol.h
41gnunet_service_seti_LDADD = \ 41gnunet_service_seti_LDADD = \
42 $(top_builddir)/src/util/libgnunetutil.la \ 42 $(top_builddir)/src/util/libgnunetutil.la \
43 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 43 $(top_builddir)/src/statistics/libgnunetstatistics.la \
diff --git a/src/setu/Makefile.am b/src/setu/Makefile.am
index b37ceba51..cc7711462 100644
--- a/src/setu/Makefile.am
+++ b/src/setu/Makefile.am
@@ -46,7 +46,7 @@ gnunet_setu_ibf_profiler_LDADD = \
46 $(GN_LIBINTL) 46 $(GN_LIBINTL)
47 47
48gnunet_service_setu_SOURCES = \ 48gnunet_service_setu_SOURCES = \
49 gnunet-service-setu.c gnunet-service-setu.h \ 49 gnunet-service-setu.c gnunet-service-setu_protocol.h \
50 ibf.c ibf.h \ 50 ibf.c ibf.h \
51 gnunet-service-setu_strata_estimator.c gnunet-service-setu_strata_estimator.h \ 51 gnunet-service-setu_strata_estimator.c gnunet-service-setu_strata_estimator.h \
52 gnunet-service-setu_protocol.h 52 gnunet-service-setu_protocol.h
diff --git a/src/setu/test_setu.conf b/src/setu/test_setu.conf
new file mode 100644
index 000000000..4eaf3f0c0
--- /dev/null
+++ b/src/setu/test_setu.conf
@@ -0,0 +1,32 @@
1@INLINE@ ../../contrib/conf/gnunet/no_forcestart.conf
2
3[PATHS]
4GNUNET_TEST_HOME = $GNUNET_TMP/test-gnunet-set/
5
6[setu]
7START_ON_DEMAND = YES
8#PREFIX = valgrind --leak-check=full
9#PREFIX = gdbserver :1234
10OPTIONS = -L INFO
11
12[transport]
13PLUGINS = unix
14OPTIONS = -LERROR
15
16[nat]
17RETURN_LOCAL_ADDRESSES = YES
18DISABLEV6 = YES
19USE_LOCALADDR = YES
20
21[peerinfo]
22NO_IO = YES
23
24[nat]
25# Use addresses from the local network interfaces (inluding loopback, but also others)
26USE_LOCALADDR = YES
27
28# Disable IPv6 support
29DISABLEV6 = NO
30
31# Do we use addresses from localhost address ranges? (::1, 127.0.0.0/8)
32RETURN_LOCAL_ADDRESSES = YES
diff --git a/src/util/gnunet-qr.c b/src/util/gnunet-qr.c
index 83b2af2fc..451d61d40 100644
--- a/src/util/gnunet-qr.c
+++ b/src/util/gnunet-qr.c
@@ -36,7 +36,7 @@
36/** 36/**
37 * Video device to capture from. Sane default for GNU/Linux systems. 37 * Video device to capture from. Sane default for GNU/Linux systems.
38 */ 38 */
39static char *device = "/dev/video0"; 39static char *device;
40 40
41/** 41/**
42 * --verbose option 42 * --verbose option
@@ -51,7 +51,7 @@ static int silent = false;
51/** 51/**
52 * Handler exit code 52 * Handler exit code
53 */ 53 */
54static long unsigned int exit_code = 1; 54static long unsigned int exit_code = 0;
55 55
56/** 56/**
57 * Helper process we started. 57 * Helper process we started.
@@ -228,6 +228,8 @@ get_symbol (zbar_processor_t *proc)
228 } 228 }
229 229
230 /* initialize the Processor */ 230 /* initialize the Processor */
231 if (NULL == device)
232 device = GNUNET_strdup ("/dev/video0");
231 if (0 != (rc = zbar_processor_init (proc, device, 1))) 233 if (0 != (rc = zbar_processor_init (proc, device, 1)))
232 { 234 {
233 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 235 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -306,6 +308,7 @@ run_zbar ()
306 ret = GNUNET_strdup (data); 308 ret = GNUNET_strdup (data);
307 /* clean up */ 309 /* clean up */
308 zbar_processor_destroy (proc); 310 zbar_processor_destroy (proc);
311 GNUNET_free (device);
309 return ret; 312 return ret;
310} 313}
311 314
diff --git a/src/util/gnunet-uri.c b/src/util/gnunet-uri.c
index 9443c9120..de0ff1f92 100644
--- a/src/util/gnunet-uri.c
+++ b/src/util/gnunet-uri.c
@@ -29,7 +29,7 @@
29/** 29/**
30 * Handler exit code 30 * Handler exit code
31 */ 31 */
32static long unsigned int exit_code = 1; 32static long unsigned int exit_code = 0;
33 33
34/** 34/**
35 * Helper process we started. 35 * Helper process we started.