[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: Make gnunet-namestore honour expiration
From: |
gnunet |
Subject: |
[gnunet] branch master updated: Make gnunet-namestore honour expiration dates when importing an URI |
Date: |
Sat, 21 Mar 2020 10:05:41 +0100 |
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 19d73a8fa Make gnunet-namestore honour expiration dates when importing
an URI
19d73a8fa is described below
commit 19d73a8facd4534c2ad2ab37bbdf047e715af2d5
Author: Alessio Vanni <address@hidden>
AuthorDate: Fri Mar 20 15:35:54 2020 +0100
Make gnunet-namestore honour expiration dates when importing an URI
---
src/namestore/gnunet-namestore.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index 4c8fd5ce8..25dfda59b 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -1193,6 +1193,23 @@ run_with_zone_pkey (const struct
GNUNET_CONFIGURATION_Handle *cfg)
ret = 1;
return;
}
+ if (NULL == expirationstring)
+ {
+ fprintf (stderr,
+ _ ("Missing option `%s' for operation `%s'\n"),
+ "-e",
+ _ ("add"));
+ GNUNET_SCHEDULER_shutdown ();
+ ret = 1;
+ return;
+ }
+ if (GNUNET_OK != parse_expiration (expirationstring, &etime_is_rel,
&etime))
+ {
+ fprintf (stderr, _ ("Invalid time format `%s'\n"), expirationstring);
+ GNUNET_SCHEDULER_shutdown ();
+ ret = 1;
+ return;
+ }
memset (&rd, 0, sizeof(rd));
rd.data = &pkey;
rd.data_size = sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey);
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: Make gnunet-namestore honour expiration dates when importing an URI,
gnunet <=