1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* 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.
This commit is contained in:
David Shaw 2002-09-16 14:33:32 +00:00
parent 8d8e90b52d
commit 62760da457
3 changed files with 43 additions and 6 deletions

View file

@ -255,11 +255,7 @@ int 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)
@ -268,6 +264,14 @@ int 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);