mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Add rmd160.c.
Emit anotehr error code status line.
This commit is contained in:
parent
713b80543c
commit
fb12b4fad3
5 changed files with 444 additions and 0 deletions
13
g10/cpr.c
13
g10/cpr.c
|
@ -157,6 +157,19 @@ write_status_text ( int no, const char *text)
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
write_status_error (const char *where, int errcode)
|
||||
{
|
||||
if (!statusfp || !status_currently_allowed (STATUS_ERROR))
|
||||
return; /* Not enabled or allowed. */
|
||||
|
||||
fprintf (statusfp, "[GNUPG:] %s %s %u\n",
|
||||
get_status_string (STATUS_ERROR), where, gpg_err_code (errcode));
|
||||
if (fflush (statusfp) && opt.exit_on_status_write_error)
|
||||
g10_exit (0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write a status line with a buffer using %XX escapes. If WRAP is >
|
||||
* 0 wrap the line after this length. If STRING is not NULL it will
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue