mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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:
parent
af9a1b5599
commit
1d6ed0a1b4
3 changed files with 4 additions and 4 deletions
|
@ -2763,7 +2763,7 @@ merge_selfsigs_main (ctrl_t ctrl, kbnode_t keyblock, int *r_revoked,
|
|||
* and there was no way to change it, so we start with the one
|
||||
* from the key packet. We do not support v3 keys anymore but
|
||||
* we keep the code in case a future key versions introduces a
|
||||
* hadr expire time again. */
|
||||
* hard expire time again. */
|
||||
key_expire = pk->max_expiredate;
|
||||
key_expire_seen = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue