1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

A small step for GnuPG but a huge leap for error codes.

(Sorry, it does not build currently - I need to check it in to avoid
duplicate work.)
This commit is contained in:
Werner Koch 2003-06-05 07:14:21 +00:00
parent 4d3fecee56
commit bd820bad4f
21 changed files with 273 additions and 308 deletions

View file

@ -365,8 +365,13 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
else
log_error ("failed to find the certificate: %s\n",
gnupg_strerror(rc));
gpgsm_status2 (ctrl, STATUS_ERROR, "verify.findkey",
gnupg_error_token (rc), NULL);
{
char numbuf[50];
sprintf (numbuf, "%d", rc);
gpgsm_status2 (ctrl, STATUS_ERROR, "verify.findkey",
numbuf, NULL);
}
/* fixme: we might want to append the issuer and serial
using our standard notation */
goto next_signer;
@ -533,8 +538,13 @@ gpgsm_verify (CTRL ctrl, int in_fd, int data_fd, FILE *out_fp)
fclose (fp);
if (rc)
gpgsm_status2 (ctrl, STATUS_ERROR, "verify.leave",
gnupg_error_token (rc), NULL);
{
char numbuf[50];
sprintf (numbuf, "%d", rc );
gpgsm_status2 (ctrl, STATUS_ERROR, "verify.leave",
numbuf, NULL);
}
return rc;
}