gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 01/32: transport (QUIC): create starter file and update Makefil


From: gnunet
Subject: [gnunet] 01/32: transport (QUIC): create starter file and update Makefile
Date: Tue, 18 Jul 2023 17:15:50 +0200

This is an automated email from the git hooks/post-receive script.

marshall pushed a commit to branch master
in repository gnunet.

commit 15cda8eb2adf35d88afe9a2981688b5975facb78
Author: marshall <stmr@umich.edu>
AuthorDate: Wed May 10 17:05:05 2023 -0400

    transport (QUIC): create starter file and update Makefile
---
 configure.ac                             | 16 +++++++---------
 po/POTFILES.in                           |  1 +
 src/transport/Makefile.am                | 12 +++++++++++-
 src/transport/gnunet-communicator-quic.c | 23 +++++++++++++++++++++++
 4 files changed, 42 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3e7b42a12..4633223a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -768,13 +768,9 @@ AC_CHECK_LIB([kstat], [kstat_open])
 
 # check for libsodium version >= 1.0.18
 libsodium=0
-AC_CHECK_HEADER([sodium.h],
-  [AC_CHECK_LIB([sodium], [crypto_core_ed25519_scalar_mul],
-                [libsodium=1],
-                [libsodium=0])])
-
-AS_IF([test "x$libsodium" = "x0"],
-      [AC_MSG_ERROR([GNUnet requires libsodium >= 1.0.18])])
+CHECK_WITH_LIB([sodium], [crypto_core_ed25519_scalar_mul], [sodium.h], 
[HAVE_SODIUM])
+AS_IF([test "x$sodium" = "x0"],
+  [AC_MSG_ERROR([GNUnet requires libsodium >= 1.0.18])])
 
 # check for libextractor
 CHECK_WITH_LIB([extractor],
@@ -879,8 +875,10 @@ AM_ICONV
 
 # check for libunistring
 gl_LIBUNISTRING
-AS_IF([test "x$HAVE_LIBUNISTRING" != "xyes"],
-      [AC_MSG_ERROR([GNUnet requires libunistring])])
+libunistring=0
+CHECK_WITH_LIB([unistring], [u16_strstr], [unistr.h], [HAVE_UNISTRING])
+AS_IF([test "x$unistring" = "x0"],
+  [AC_MSG_ERROR([GNUnet requires unistring])])
 
 # Currently broken on Debian :-(
 # AS_VERSION_COMPARE([$LIBUNISTRING_VERSION], [0.9.1.1],
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9af5a31c0..519956b34 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -447,6 +447,7 @@ src/testing/testing_api_loop.c
 src/testing/testing_api_traits.c
 src/topology/friends.c
 src/topology/gnunet-daemon-topology.c
+src/transport/gnunet-communicator-quic.c
 src/transport/gnunet-communicator-tcp.c
 src/transport/gnunet-communicator-udp.c
 src/transport/gnunet-communicator-unix.c
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index eeafab840..91583af4b 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -219,7 +219,8 @@ libexec_PROGRAMS = \
  gnunet-service-tng \
  gnunet-communicator-unix \
  gnunet-communicator-udp \
- gnunet-communicator-tcp
+ gnunet-communicator-tcp \
+ gnunet-communicator-quic
 
 
 
@@ -269,6 +270,15 @@ gnunet_communicator_udp_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(LIBGCRYPT_LIBS)
 
+gnunet_communicator_quic_SOURCES = \
+  gnunet-communicator-quic.c
+gnunet_communicator_quic_LDADD = \
+  $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
+  $(top_builddir)/src/nat/libgnunetnatnew.la \
+  $(top_builddir)/src/nt/libgnunetnt.la \
+  $(top_builddir)/src/statistics/libgnunetstatistics.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(LIBGCRYPT_LIBS)
 
 gnunet_helper_transport_wlan_SOURCES = \
  gnunet-helper-transport-wlan.c
diff --git a/src/transport/gnunet-communicator-quic.c 
b/src/transport/gnunet-communicator-quic.c
new file mode 100644
index 000000000..130a76abc
--- /dev/null
+++ b/src/transport/gnunet-communicator-quic.c
@@ -0,0 +1,23 @@
+#include "gnunet_util_lib.h"
+#include "gnunet_core_service.h"
+
+int 
+main(int argc, char *const *argv) 
+{
+    static const struct GNUNET_GETOPT_CommandLineOption options[] = {
+        GNUNET_GETOPT_OPTION_END
+    };
+    
+    int ret;
+    ret =  (GNUNET_OK == GNUNET_PROGRAM_run(argc, 
+                              argv, 
+                              "gnunet-communicator-quic", 
+                              "quic",
+                              options,
+                              NULL,
+                              NULL))
+            ? 0 
+            : 1;
+
+    return ret;
+}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]