diff options
author | Werner Koch <[email protected]> | 2002-03-18 09:30:35 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-03-18 09:30:35 +0000 |
commit | c39b866d2a0396b18560f4eff069299bd30415ec (patch) | |
tree | 7d2c7a08a88f16749f064e78c5bdc6004ac5fa53 /agent | |
parent | * decrypt.c (gpgsm_decrypt): Allow multiple recipients. (diff) | |
download | gnupg-c39b866d2a0396b18560f4eff069299bd30415ec.tar.gz gnupg-c39b866d2a0396b18560f4eff069299bd30415ec.zip |
Doc fixes, moved some fizmes to TODO, fixed minor bugs.
Diffstat (limited to 'agent')
-rw-r--r-- | agent/ChangeLog | 5 | ||||
-rw-r--r-- | agent/cache.c | 2 | ||||
-rw-r--r-- | agent/learncard.c | 8 | ||||
-rw-r--r-- | agent/trustlist.c | 2 |
4 files changed, 11 insertions, 6 deletions
diff --git a/agent/ChangeLog b/agent/ChangeLog index cbc05b1e4..fbc7ed9f7 100644 --- a/agent/ChangeLog +++ b/agent/ChangeLog @@ -1,3 +1,8 @@ +2002-03-11 Werner Koch <[email protected]> + + * learncard.c (kpinfo_cb): Remove the content restrictions from + the keyID. + 2002-03-06 Werner Koch <[email protected]> * learncard.c: New. diff --git a/agent/cache.c b/agent/cache.c index 58cec4253..445c4c5a8 100644 --- a/agent/cache.c +++ b/agent/cache.c @@ -213,7 +213,7 @@ agent_get_cache (const char *key) log_debug ("agent_get_cache `%s'...\n", key); housekeeping (); - /* FIXME: Returning pointers is not thread safe - add a referencense + /* FIXME: Returning pointers is not thread safe - add a reference counter */ for (r=thecache; r; r = r->next, count++) { diff --git a/agent/learncard.c b/agent/learncard.c index 4cd1cb848..fe3e9eff3 100644 --- a/agent/learncard.c +++ b/agent/learncard.c @@ -84,7 +84,7 @@ kpinfo_cb (void *opaque, const char *line) p++; } else if ((p - item->hexgrip) != 40 || !spacep (p)) - { /* not a 20 byte hex keygrip or now followed by a space */ + { /* not a 20 byte hex keygrip or not followed by a space */ parm->error = GNUPG_Invalid_Response; xfree (item); return; @@ -93,9 +93,9 @@ kpinfo_cb (void *opaque, const char *line) while (spacep (p)) p++; item->id = p; - for (; hexdigitp (p) || *p == '.'; p++) - ; - if (!(spacep (p) || !*p)) + while (*p && !spacep (p)) + p++; + if (p == item->id) { /* invalid ID string */ parm->error = GNUPG_Invalid_Response; xfree (item); diff --git a/agent/trustlist.c b/agent/trustlist.c index 15208cedf..d3b8b6d20 100644 --- a/agent/trustlist.c +++ b/agent/trustlist.c @@ -29,7 +29,7 @@ #include <sys/stat.h> #include "agent.h" -#include "../assuan/assuan.h" /* fixme: nned a way to avoid assuna +#include "../assuan/assuan.h" /* fixme: need a way to avoid assuan calls here */ static const char headerblurb[] = |