diff options
author | David Shaw <[email protected]> | 2002-09-16 14:35:19 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-09-16 14:35:19 +0000 |
commit | 81c8f7daca6d0776c15db65500e765fabac587b4 (patch) | |
tree | c016f862571a45d13d9e49e48fa3b39e98a5d4b0 /keyserver/gpgkeys_hkp.c | |
parent | * gpg.sgml: Add rebuild-keydb-caches. (diff) | |
download | gnupg-81c8f7daca6d0776c15db65500e765fabac587b4.tar.gz gnupg-81c8f7daca6d0776c15db65500e765fabac587b4.zip |
* gpgkeys_mailto.in: Add quasi-RFC-2368 mailto:email@addr?from= syntax so
people can set their own email address to respond to.
* gpgkeys_hkp.c (get_key): Properly respond with KEY FAILED (to gpg) and
"key not found" (to user) on failure.
Diffstat (limited to '')
-rw-r--r-- | keyserver/gpgkeys_hkp.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c index da4ce61fe..f324267c9 100644 --- a/keyserver/gpgkeys_hkp.c +++ b/keyserver/gpgkeys_hkp.c @@ -261,11 +261,7 @@ get_key(char *getkey) { fprintf(output,line); if(strcmp(line,"-----END PGP PUBLIC KEY BLOCK-----\n")==0) - { - gotit=0; - fprintf(output,"KEY 0x%s END\n",getkey); - break; - } + break; } else if(strcmp(line,"-----BEGIN PGP PUBLIC KEY BLOCK-----\n")==0) @@ -274,6 +270,14 @@ get_key(char *getkey) gotit=1; } } + + if(gotit) + fprintf(output,"KEY 0x%s END\n",getkey); + else + { + fprintf(console,"gpgkeys: key %s not found on keyserver\n",getkey); + fprintf(output,"KEY 0x%s FAILED\n",getkey); + } } m_free(line); |