[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 23/70: DID:Initial commit
From: |
gnunet |
Subject: |
[gnunet] 23/70: DID:Initial commit |
Date: |
Wed, 31 Aug 2022 18:00:17 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 841bf3572b8b8e10a4a06d3ba439028746439742
Author: Tristan Schwieren <tristan.schwieren@tum.de>
AuthorDate: Fri Nov 19 10:46:02 2021 +0100
DID:Initial commit
---
configure.ac | 1 +
src/Makefile.am | 3 ++-
src/did/Makefile.am | 17 +++++++++++++++
src/did/gnunet-did.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 81 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index feee06f9f..096a9f768 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1367,6 +1367,7 @@ src/dht/Makefile
src/dht/dht.conf
src/dhtu/Makefile
src/dns/Makefile
+src/did/Makefile
src/dns/dns.conf
src/exit/Makefile
src/fragmentation/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 4c665c3b3..06d018c56 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,8 @@ TESTBED = testbed-logger testbed
if HAVE_EXPERIMENTAL
EXP_DIR = \
rps \
- abd
+ abd \
+ did
if HAVE_ABE
EXP_DIR += \
abe
diff --git a/src/did/Makefile.am b/src/did/Makefile.am
new file mode 100644
index 000000000..db2fb1f00
--- /dev/null
+++ b/src/did/Makefile.am
@@ -0,0 +1,17 @@
+# This Makefile.am is in the public domain
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
+
+ plugindir = $(libdir)/gnunet
+
+if USE_COVERAGE
+ AM_CFLAGS = --coverage -O0
+ XLIB = -lgcov
+endif
+
+bin_PROGRAMS = \
+ gnunet-did
+
+gnunet_did_SOURCES = \
+ gnunet-did.c
+gnunet_did_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la
\ No newline at end of file
diff --git a/src/did/gnunet-did.c b/src/did/gnunet-did.c
new file mode 100644
index 000000000..c5d83976d
--- /dev/null
+++ b/src/did/gnunet-did.c
@@ -0,0 +1,61 @@
+/*
+ This file is part of GNUnet.
+ Copyright (C) 2012-2015 GNUnet e.V.
+
+ GNUnet is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License,
+ or (at your option) any later version.
+
+ GNUnet is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: AGPL3.0-or-later
+ */
+/**
+ * @author Tristan Schwieren
+ * @file src/did/gnunet-did.c
+ * @brief DID Method Wrapper
+ *
+ */
+#include "platform.h"
+#include "gnunet_util_lib.h"
+
+/**
+ * return value
+ */
+static int ret;
+
+static void
+run (void *cls,
+ char *const *args,
+ const char *cfgfile,
+ const struct GNUNET_CONFIGURATION_Handle *c)
+{
+ printf("Hello World!\n");
+ ret = 0;
+}
+
+int
+main (int argc, char *const argv[])
+{
+ struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_OPTION_END
+ };
+
+ if (GNUNET_OK != GNUNET_PROGRAM_run (argc,
+ argv,
+ "gnunet-did",
+ ("did command line tool"),
+ options,
+ &run,
+ NULL))
+ return 1;
+ else
+ return ret;
+}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] 27/70: remove binary, (continued)
- [gnunet] 27/70: remove binary, gnunet, 2022/08/31
- [gnunet] 19/70: -did expiration time fix, gnunet, 2022/08/31
- [gnunet] 03/70: -forgot the .c..., gnunet, 2022/08/31
- [gnunet] 26/70: - DID remove, gnunet, 2022/08/31
- [gnunet] 16/70: -did not working remove abstraction, gnunet, 2022/08/31
- [gnunet] 14/70: -did show did and refactor, gnunet, 2022/08/31
- [gnunet] 15/70: Merge branch 'dev/trizuz/dids' of git+ssh://git.gnunet.org/gnunet into dev/trizuz/dids, gnunet, 2022/08/31
- [gnunet] 20/70: -did not working key check, gnunet, 2022/08/31
- [gnunet] 29/70: - did working remove, gnunet, 2022/08/31
- [gnunet] 32/70: -did show did and refactor, gnunet, 2022/08/31
- [gnunet] 23/70: DID:Initial commit,
gnunet <=
- [gnunet] 34/70: -proper license header, gnunet, 2022/08/31
- [gnunet] 28/70: - Not working did remove, gnunet, 2022/08/31
- [gnunet] 37/70: -did not working remove, gnunet, 2022/08/31
- [gnunet] 40/70: -did not working key check, gnunet, 2022/08/31
- [gnunet] 48/70: - started DID refactor, gnunet, 2022/08/31
- [gnunet] 41/70: -did key check, gnunet, 2022/08/31
- [gnunet] 56/70: -header DID core, gnunet, 2022/08/31
- [gnunet] 58/70: - missing lib bug, gnunet, 2022/08/31
- [gnunet] 70/70: -fixup merge, gnunet, 2022/08/31
- [gnunet] 52/70: - working did lib and 1. test for did helper, gnunet, 2022/08/31