mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
gpg: Fix glitch entering a full expiration time.
* g10/keygen.c (ask_expire_interval): Get the current time after the prompt. -- This almost avoid that an entered full ISO timestamp is not used as given but off by the time the user required to enter the timestamp. GnuPG-bug-id: 1639
This commit is contained in:
parent
6af194038a
commit
3c3d1ab35d
@ -1949,7 +1949,7 @@ ask_expire_interval(int object,const char *def_expire)
|
|||||||
answer = NULL;
|
answer = NULL;
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
u32 curtime=make_timestamp();
|
u32 curtime;
|
||||||
|
|
||||||
xfree(answer);
|
xfree(answer);
|
||||||
if(object==0)
|
if(object==0)
|
||||||
@ -1973,6 +1973,7 @@ ask_expire_interval(int object,const char *def_expire)
|
|||||||
}
|
}
|
||||||
cpr_kill_prompt();
|
cpr_kill_prompt();
|
||||||
trim_spaces(answer);
|
trim_spaces(answer);
|
||||||
|
curtime = make_timestamp ();
|
||||||
interval = parse_expire_string( answer );
|
interval = parse_expire_string( answer );
|
||||||
if( interval == (u32)-1 )
|
if( interval == (u32)-1 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user