mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* main.h, keygen.c (ask_expire_interval, parse_expire_string): Pass in
the time to use to calculate the expiration offset, rather than querying it internally. Change all callers.
This commit is contained in:
parent
67c18b8c3c
commit
ef8f2e2f6f
6 changed files with 39 additions and 27 deletions
|
@ -2397,7 +2397,7 @@ main (int argc, char **argv )
|
|||
case oDefSigExpire:
|
||||
if(*pargs.r.ret_str!='\0')
|
||||
{
|
||||
if(parse_expire_string(pargs.r.ret_str)==(u32)-1)
|
||||
if(parse_expire_string(0,pargs.r.ret_str)==(u32)-1)
|
||||
log_error(_("`%s' is not a valid signature expiration\n"),
|
||||
pargs.r.ret_str);
|
||||
else
|
||||
|
@ -2409,7 +2409,7 @@ main (int argc, char **argv )
|
|||
case oDefCertExpire:
|
||||
if(*pargs.r.ret_str!='\0')
|
||||
{
|
||||
if(parse_expire_string(pargs.r.ret_str)==(u32)-1)
|
||||
if(parse_expire_string(0,pargs.r.ret_str)==(u32)-1)
|
||||
log_error(_("`%s' is not a valid signature expiration\n"),
|
||||
pargs.r.ret_str);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue