gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: refactor to latest libgnunetcur


From: gnunet
Subject: [taler-anastasis] branch master updated: refactor to latest libgnunetcurl
Date: Sun, 15 Mar 2020 22:07:25 +0100

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new e7d14b0  refactor to latest libgnunetcurl
e7d14b0 is described below

commit e7d14b054af4400d5d50fb0326e1d1516e73c19f
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Mar 15 22:07:23 2020 +0100

    refactor to latest libgnunetcurl
---
 src/backend/anastasis-httpd.c | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 85c1ad6..4429206 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -156,24 +156,6 @@ AH_trigger_curl ()
 }
 
 
-/**
- * Return GNUNET_YES if given a valid correlation ID and
- * GNUNET_NO otherwise.
- *
- * @returns GNUNET_YES iff given a valid correlation ID
- */
-static int
-is_valid_correlation_id (const char *correlation_id)
-{
-  if (strlen (correlation_id) >= 64)
-    return GNUNET_NO;
-  for (int i = 0; i < strlen (correlation_id); i++)
-    if (! (isalnum (correlation_id[i]) || (correlation_id[i] == '-')))
-      return GNUNET_NO;
-  return GNUNET_YES;
-}
-
-
 /**
  * A client has requested the given url using the given method
  * (#MHD_HTTP_METHOD_GET, #MHD_HTTP_METHOD_PUT,
@@ -253,7 +235,7 @@ url_handler (void *cls,
                                                   MHD_HEADER_KIND,
                                                   "Anastasis-Correlation-Id");
     if ((NULL != correlation_id) &&
-        (GNUNET_YES != is_valid_correlation_id (correlation_id)))
+        (GNUNET_YES != GNUNET_CURL_is_valid_scope_id (correlation_id)))
     {
       GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                   "illegal incoming correlation ID\n");

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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