diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2020-05-27 15:01:30 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-27 22:37:08 +0200 |
commit | cf4608196bc02093409dbf6b7a24e6ed08c36f76 (patch) | |
tree | 46c2ecc852810e35d9d5eabcfcb52620e06aaa3f /src/util/os_installation.c | |
parent | 3a966c83d32db67d0e9cb23675f28b7233280aeb (diff) | |
download | gnunet-cf4608196bc02093409dbf6b7a24e6ed08c36f76.tar.gz gnunet-cf4608196bc02093409dbf6b7a24e6ed08c36f76.zip |
Make REQUEST_AGPL messages configurable and add handler by default
This makes two changes:
* Add a field to `struct GNUNET_OS_ProjectData' containing a URL (as a string)
pointing to the source code of the application.
* If the field is not NULL, add a handler for the REQUEST_AGPL messages
sending the specified URL to the client.
The handler is added both in client-service communications (i.e. local
services that don't make requests to other peers in the network) and in
peer-peer communications (CADET.) This way, any client (local or remote with
CADET) can request the source code location using a standardized mechanism
instead of writing ad-hoc solutions (unless the service/peer explicitly
specifies a NULL pointer.)
Signed-off-by: Christian Grothoff <christian@grothoff.org>
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index dcd31dc2c..714df6957 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -70,6 +70,7 @@ static const struct GNUNET_OS_ProjectData default_pd = { | |||
70 | .is_gnu = 1, | 70 | .is_gnu = 1, |
71 | .gettext_domain = PACKAGE, | 71 | .gettext_domain = PACKAGE, |
72 | .gettext_path = NULL, | 72 | .gettext_path = NULL, |
73 | .agpl_url = GNUNET_AGPL_URL, | ||
73 | }; | 74 | }; |
74 | 75 | ||
75 | /** | 76 | /** |