[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: support wildcard cookie dom
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: support wildcard cookie domains starting with . |
Date: |
Fri, 15 Jun 2018 23:14:45 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 15498a268 support wildcard cookie domains starting with .
15498a268 is described below
commit 15498a268e2f38e590d49294a646fe1ef82f134f
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jun 15 23:10:38 2018 +0200
support wildcard cookie domains starting with .
---
src/gns/gnunet-gns-proxy.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index e68d6d540..e8f0854f1 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2012-2014 GNUnet e.V.
+ Copyright (C) 2012-2018 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
@@ -1178,7 +1178,6 @@ curl_check_hdr (void *buffer,
s5r->domain);
continue;
}
- }
else if (0 == strcmp (cookie_domain,
s5r->leho))
{
@@ -1187,6 +1186,15 @@ curl_check_hdr (void *buffer,
s5r->domain);
continue;
}
+ else if ( ('.' == cookie_domain[0]) &&
+ (0 == strcmp (&cookie_domain[1],
+ s5r->leho)) )
+ {
+ offset += sprintf (new_cookie_hdr + offset,
+ " domain=.%s;",
+ s5r->domain);
+ continue;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
_("Cookie domain `%s' supplied by server is invalid\n"),
tok);
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: support wildcard cookie domains starting with .,
gnunet <=