gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: GNS: Allow lowercase and uppercase


From: gnunet
Subject: [gnunet] branch master updated: GNS: Allow lowercase and uppercase
Date: Tue, 15 Feb 2022 14:38:56 +0100

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

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new f72ffa1a9 GNS: Allow lowercase and uppercase
     new dbb827aad Merge branch 'master' of git+ssh://git.gnunet.org/gnunet
f72ffa1a9 is described below

commit f72ffa1a93532ef05518e697102519757ef22bfc
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue Feb 15 14:37:56 2022 +0100

    GNS: Allow lowercase and uppercase
    
    According to LSD0001, atm lowercase and uppercase names
    are allowed and different.
---
 src/gns/gnunet-service-gns.c             |  8 ++------
 src/gns/gnunet-service-gns_resolver.c    |  7 +++++++
 src/gnsrecord/gnsrecord_misc.c           |  2 +-
 src/namestore/gnunet-service-namestore.c |  2 +-
 src/reclaim/test_reclaim.conf            |  2 +-
 src/reclaim/test_reclaim_consume.sh      | 14 ++++++++------
 6 files changed, 20 insertions(+), 15 deletions(-)

diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c
index 5833f4d0b..b28236fed 100644
--- a/src/gns/gnunet-service-gns.c
+++ b/src/gns/gnunet-service-gns.c
@@ -420,15 +420,11 @@ handle_lookup (void *cls,
                const struct LookupMessage *sh_msg)
 {
   struct GnsClient *gc = cls;
-  char name[GNUNET_DNSPARSER_MAX_NAME_LENGTH + 1];
   struct ClientLookupHandle *clh;
-  char *nameptr = name;
-  const char *utf_in;
+  const char *name;
 
   GNUNET_SERVICE_client_continue (gc->client);
-  utf_in = (const char *) &sh_msg[1];
-  GNUNET_STRINGS_utf8_tolower (utf_in,
-                               nameptr);
+  name = (const char *) &sh_msg[1];
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received LOOKUP `%s' message\n",
               name);
diff --git a/src/gns/gnunet-service-gns_resolver.c 
b/src/gns/gnunet-service-gns_resolver.c
index 549230abd..67ed48815 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -2531,6 +2531,13 @@ handle_namecache_block_response (void *cls,
 
   GNUNET_assert (NULL != rh->namecache_qe);
   rh->namecache_qe = NULL;
+  if (NULL == block)
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "No block found\n");
+  else
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Got block with expiration %s\n",
+                GNUNET_STRINGS_absolute_time_to_string 
(GNUNET_GNSRECORD_block_get_expiration (block)));
   if (((GNUNET_GNS_LO_DEFAULT == rh->options) ||
        ((GNUNET_GNS_LO_LOCAL_MASTER == rh->options) &&
         (ac != rh->ac_head))) &&
diff --git a/src/gnsrecord/gnsrecord_misc.c b/src/gnsrecord/gnsrecord_misc.c
index 9b5e47c4c..4cc77b59f 100644
--- a/src/gnsrecord/gnsrecord_misc.c
+++ b/src/gnsrecord/gnsrecord_misc.c
@@ -52,7 +52,7 @@ GNUNET_GNSRECORD_string_normalize (const char *src)
 {
   char *res;
   res = GNUNET_strdup (src);
-  GNUNET_STRINGS_utf8_tolower (src, res);
+  //GNUNET_STRINGS_utf8_tolower (src, res);
   GNUNET_STRINGS_utf8_normalize (src, res);
   return res;
 }
diff --git a/src/namestore/gnunet-service-namestore.c 
b/src/namestore/gnunet-service-namestore.c
index c3482cd6a..57147879f 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -968,7 +968,7 @@ refresh_block (struct NamestoreClient *nc,
     return;
   }
   exp_time = GNUNET_GNSRECORD_record_get_expiration_time (res_count, res,
-                                                          
GNUNET_TIME_UNIT_FOREVER_ABS);
+                                                          
GNUNET_TIME_UNIT_ZERO_ABS);
   if (cache_keys)
     GNUNET_assert (GNUNET_OK ==
                    GNUNET_GNSRECORD_block_create2 (zone_key, exp_time, name,
diff --git a/src/reclaim/test_reclaim.conf b/src/reclaim/test_reclaim.conf
index ec19056e4..2dc53fe81 100644
--- a/src/reclaim/test_reclaim.conf
+++ b/src/reclaim/test_reclaim.conf
@@ -15,7 +15,7 @@ PLUGINS =
 
 [reclaim]
 START_ON_DEMAND = YES
-TICKET_REFRESH_INTERVAL = 15s
+TICKET_REFRESH_INTERVAL = 30 s
 #PREFIX = valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes 
--log-file=$GNUNET_TMP/idplog
 
 [gns]
diff --git a/src/reclaim/test_reclaim_consume.sh 
b/src/reclaim/test_reclaim_consume.sh
index 9186d3cb1..c012862c3 100755
--- a/src/reclaim/test_reclaim_consume.sh
+++ b/src/reclaim/test_reclaim_consume.sh
@@ -32,12 +32,14 @@ TEST_KEY=$(gnunet-identity -d -e testego -q -c 
test_reclaim.conf)
 gnunet-reclaim -e testego -a email -V john@doe.gnu -c test_reclaim.conf
 gnunet-reclaim -e testego -a name -V John -c test_reclaim.conf
 TICKET=$(gnunet-reclaim -e testego -i "email,name" -r $SUBJECT_KEY -c 
test_reclaim.conf | awk '{print $1}')
-gnunet-reclaim -e rpego -C $TICKET -c test_reclaim.conf >/dev/null 2>&1
+gnunet-reclaim -e rpego -C $TICKET -c test_reclaim.conf #>/dev/null 2>&1
 
-if test $? != 0
+RES=$?
+gnunet-identity -D testego -c test_reclaim.conf
+gnunet-identity -D rpego -c test_reclaim.conf
+gnunet-arm -e -c test_reclaim.conf
+if test $RES != 0
 then
-  "Failed."
-  exit 1
+  echo "Failed."
 fi
-#curl http://localhost:7776/reclaim/tickets/testego
-gnunet-arm -e -c test_reclaim.conf
+

-- 
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]