diff options
author | Werner Koch <[email protected]> | 2023-02-16 12:14:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-02-16 12:14:30 +0000 |
commit | f118e3b101cad615101f88799333a6a5e61ed81f (patch) | |
tree | b448479626e20c26abc6f6fff23ec001780e74ec /g10/getkey.c | |
parent | tools: Return a better error message if sendmail is not usable. (diff) | |
download | gnupg-f118e3b101cad615101f88799333a6a5e61ed81f.tar.gz gnupg-f118e3b101cad615101f88799333a6a5e61ed81f.zip |
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.
Diffstat (limited to 'g10/getkey.c')
-rw-r--r-- | g10/getkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index f0843d154..093ce61b0 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -2707,7 +2707,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; } |