Home GnuPG
Diffusion GnuPG 1d6ed0a1b4e1

gpg: --gen-random code cleanup by using es_set_binary.

Description

gpg: --gen-random code cleanup by using es_set_binary.

* g10/gpg.c (main): Replace setmode by es_set_binary and use only when
needed.

It is better to use our es_set_binary than to use a Windows specific
method which still worked but is fragile because estream might be
changed. We now set binary only when needed. Note that it does not
harm to call es_set_binary more often than needed.

Details

Provenance
wernerAuthored on Feb 16 2023, 1:14 PM
Parents
rGaf9a1b5599f9: agent: Do not consider --min-passphrase-len for the magic wand.
Branches
Unknown
Tags
Unknown