mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Replace most of the remaining stdio calls by estream calls.
-- We need to use es_fopen on Windows to cope with non-ascii file names. This is quite a large but fortunately straightforward change. At a very few places we keep using stdio (for example due to the use of popen). GnuPG-bug-id: 5098 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
c94ee1386e
commit
390497ea11
23 changed files with 220 additions and 216 deletions
|
@ -423,7 +423,7 @@ import_openpgp (const char *filename, int dryrun)
|
|||
}
|
||||
else
|
||||
{
|
||||
fflush (stdout);
|
||||
es_fflush (es_stdout);
|
||||
log_info ("%s: failed to parse OpenPGP keyblock: %s\n",
|
||||
filename, gpg_strerror (err));
|
||||
}
|
||||
|
@ -437,17 +437,17 @@ import_openpgp (const char *filename, int dryrun)
|
|||
err = _keybox_create_openpgp_blob (&blob, &info, p, nparsed, 0);
|
||||
if (err)
|
||||
{
|
||||
fflush (stdout);
|
||||
es_fflush (es_stdout);
|
||||
log_error ("%s: failed to create OpenPGP keyblock: %s\n",
|
||||
filename, gpg_strerror (err));
|
||||
}
|
||||
else
|
||||
{
|
||||
err = _keybox_write_blob (blob, stdout);
|
||||
err = _keybox_write_blob (blob, es_stdout, NULL);
|
||||
_keybox_release_blob (blob);
|
||||
if (err)
|
||||
{
|
||||
fflush (stdout);
|
||||
es_fflush (es_stdout);
|
||||
log_error ("%s: failed to write OpenPGP keyblock: %s\n",
|
||||
filename, gpg_strerror (err));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue