diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | doc/handbook/chapters/user.texi | 14 | ||||
-rw-r--r-- | src/gns/Makefile.am | 1 | ||||
-rw-r--r-- | src/gns/gnunet-bcd.c | 22 |
4 files changed, 25 insertions, 15 deletions
@@ -34,9 +34,6 @@ HELLO: Fix netdb.h nonsense with h_addr - Martin Schanzenbach | |||
34 | Tue, 23 Feb 2021 10:42:57 +0100 (74a234f0b) | 34 | Tue, 23 Feb 2021 10:42:57 +0100 (74a234f0b) |
35 | HANDBOOK: Add some info on TNG - Martin Schanzenbach | 35 | HANDBOOK: Add some info on TNG - Martin Schanzenbach |
36 | 36 | ||
37 | Sun, 21 Feb 2021 21:02:57 +0100 (03b5746e4) | ||
38 | TNG: Add a the api test; WIP - Martin Schanzenbach | ||
39 | |||
40 | Sun, 21 Feb 2021 20:56:47 +0100 (05040a491) | 37 | Sun, 21 Feb 2021 20:56:47 +0100 (05040a491) |
41 | HELLO: Add test for NG API; fix extraction more - Martin Schanzenbach | 38 | HELLO: Add test for NG API; fix extraction more - Martin Schanzenbach |
42 | 39 | ||
diff --git a/doc/handbook/chapters/user.texi b/doc/handbook/chapters/user.texi index a25dd8bd3..b5889891b 100644 --- a/doc/handbook/chapters/user.texi +++ b/doc/handbook/chapters/user.texi | |||
@@ -254,7 +254,6 @@ and development. | |||
254 | @subsection Creating a Business Card | 254 | @subsection Creating a Business Card |
255 | @c FIXME: Which parts of texlive are needed? Some systems offer a modular | 255 | @c FIXME: Which parts of texlive are needed? Some systems offer a modular |
256 | @c texlive (smaller size). | 256 | @c texlive (smaller size). |
257 | |||
258 | Before we can really use GNS, you should create a business card. | 257 | Before we can really use GNS, you should create a business card. |
259 | Note that this requires having @command{LaTeX} installed on your system. | 258 | Note that this requires having @command{LaTeX} installed on your system. |
260 | If you are using a Debian GNU/Linux based operating system, the | 259 | If you are using a Debian GNU/Linux based operating system, the |
@@ -262,6 +261,19 @@ following command should install the required components. | |||
262 | Keep in mind that this @b{requires 3GB} of downloaded data and possibly | 261 | Keep in mind that this @b{requires 3GB} of downloaded data and possibly |
263 | @b{even more} when unpacked. On a GNU Guix based system texlive 2017 has | 262 | @b{even more} when unpacked. On a GNU Guix based system texlive 2017 has |
264 | returns a DAG size of 5032.4 MiB. | 263 | returns a DAG size of 5032.4 MiB. |
264 | The packages which are confirmed to be required are: | ||
265 | |||
266 | @itemize @bullet | ||
267 | @item texlive-units | ||
268 | @item texlive-labels | ||
269 | @item texlive-pst-barcode | ||
270 | @item texlive-luatex85 | ||
271 | @item texlive-preview | ||
272 | @item texlive-pdfcrop | ||
273 | @item texlive-koma-script | ||
274 | @end itemize | ||
275 | |||
276 | |||
265 | @b{We welcome any help in identifying the required components of the | 277 | @b{We welcome any help in identifying the required components of the |
266 | TexLive Distribution. This way we could just state the required components | 278 | TexLive Distribution. This way we could just state the required components |
267 | without pulling in the full distribution of TexLive.} | 279 | without pulling in the full distribution of TexLive.} |
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am index 9f03311e1..b35836233 100644 --- a/src/gns/Makefile.am +++ b/src/gns/Makefile.am | |||
@@ -156,6 +156,7 @@ gnunet_bcd_SOURCES = \ | |||
156 | gnunet-bcd.c | 156 | gnunet-bcd.c |
157 | gnunet_bcd_LDADD = \ | 157 | gnunet_bcd_LDADD = \ |
158 | $(top_builddir)/src/util/libgnunetutil.la \ | 158 | $(top_builddir)/src/util/libgnunetutil.la \ |
159 | $(top_builddir)/src/identity/libgnunetidentity.la \ | ||
159 | $(GN_LIBINTL) $(MHD_LIBS) | 160 | $(GN_LIBINTL) $(MHD_LIBS) |
160 | gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS) | 161 | gnunet_bcd_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS) |
161 | 162 | ||
diff --git a/src/gns/gnunet-bcd.c b/src/gns/gnunet-bcd.c index f71f477ef..a2e94089c 100644 --- a/src/gns/gnunet-bcd.c +++ b/src/gns/gnunet-bcd.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include <microhttpd.h> | 28 | #include <microhttpd.h> |
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_identity_service.h" | ||
30 | #include "gnunet_mhd_compat.h" | 31 | #include "gnunet_mhd_compat.h" |
31 | 32 | ||
32 | /** | 33 | /** |
@@ -148,7 +149,7 @@ access_handler_callback (void *cls, | |||
148 | char *p; | 149 | char *p; |
149 | char *tmp; | 150 | char *tmp; |
150 | char *deffile; | 151 | char *deffile; |
151 | struct GNUNET_CRYPTO_EcdsaPublicKey pub; | 152 | struct GNUNET_IDENTITY_PublicKey pub; |
152 | size_t slen; | 153 | size_t slen; |
153 | FILE *f; | 154 | FILE *f; |
154 | struct stat st; | 155 | struct stat st; |
@@ -166,9 +167,8 @@ access_handler_callback (void *cls, | |||
166 | MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, "gnskey"); | 167 | MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, "gnskey"); |
167 | if ((NULL == gnskey) || | 168 | if ((NULL == gnskey) || |
168 | (GNUNET_OK != | 169 | (GNUNET_OK != |
169 | GNUNET_CRYPTO_ecdsa_public_key_from_string (gnskey, | 170 | GNUNET_IDENTITY_public_key_from_string (gnskey, |
170 | strlen (gnskey), | 171 | &pub))) |
171 | &pub))) | ||
172 | { | 172 | { |
173 | return MHD_queue_response (connection, | 173 | return MHD_queue_response (connection, |
174 | MHD_HTTP_OK, | 174 | MHD_HTTP_OK, |
@@ -218,10 +218,10 @@ access_handler_callback (void *cls, | |||
218 | (NULL == gns_nick) ? "" : gns_nick); | 218 | (NULL == gns_nick) ? "" : gns_nick); |
219 | fclose (f); | 219 | fclose (f); |
220 | GNUNET_asprintf ( | 220 | GNUNET_asprintf ( |
221 | &p, | 221 | &p, |
222 | "cd %s; cp %s gns-bcd.tex | pdflatex --enable-write18 gns-bcd.tex > /dev/null 2> /dev/null", | 222 | "cd %s; cp %s gns-bcd.tex | pdflatex --enable-write18 gns-bcd.tex > /dev/null 2> /dev/null", |
223 | tmp, | 223 | tmp, |
224 | resfile); | 224 | resfile); |
225 | GNUNET_free (deffile); | 225 | GNUNET_free (deffile); |
226 | ret = system (p); | 226 | ret = system (p); |
227 | if (WIFSIGNALED (ret) || (0 != WEXITSTATUS (ret))) | 227 | if (WIFSIGNALED (ret) || (0 != WEXITSTATUS (ret))) |
@@ -506,7 +506,7 @@ main (int argc, char *const *argv) | |||
506 | "port", | 506 | "port", |
507 | "PORT", | 507 | "PORT", |
508 | gettext_noop ( | 508 | gettext_noop ( |
509 | "Run HTTP serve on port PORT (default is 8888)"), | 509 | "Run HTTP serve on port PORT (default is 8888)"), |
510 | &port), | 510 | &port), |
511 | GNUNET_GETOPT_OPTION_END | 511 | GNUNET_GETOPT_OPTION_END |
512 | }; | 512 | }; |
@@ -523,8 +523,8 @@ main (int argc, char *const *argv) | |||
523 | options, | 523 | options, |
524 | &run, | 524 | &run, |
525 | NULL)) | 525 | NULL)) |
526 | ? 0 | 526 | ? 0 |
527 | : 1; | 527 | : 1; |
528 | GNUNET_free_nz ((void *) argv); | 528 | GNUNET_free_nz ((void *) argv); |
529 | return ret; | 529 | return ret; |
530 | } | 530 | } |