Home GnuPG
Diffusion GnuPG f118e3b101ca

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
rG3ab6538433fd: tools: Return a better error message if sendmail is not usable.
Branches
Unknown
Tags
Unknown