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

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.
This commit is contained in:
Werner Koch 2023-02-16 13:14:30 +01:00
parent af9a1b5599
commit 1d6ed0a1b4
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
3 changed files with 4 additions and 4 deletions

2
NEWS
View file

@ -8,6 +8,8 @@ Noteworthy changes in version 2.2.42 (unreleased)
* gpg: New list-options show-pref and show-pref-verbose.
[rGb6ba7054a0]
* gpg: Add modes 16 and 30 to --gen-random.
* gpgsm: Support ECC certificates. [T6253]
* gpgsm: Also announce AES256-CBC in signatures. [rGaa397fdcdb21]