mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-21 19:48:05 +01:00
* sign.c (sign_file, clearsign_file, sign_symencrypt_file): Use the
default sig expire value when signing in batchmode.
This commit is contained in:
parent
89055cca85
commit
10f51e0714
@ -1,3 +1,8 @@
|
||||
2005-05-06 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* sign.c (sign_file, clearsign_file, sign_symencrypt_file): Use
|
||||
the default sig expire value when signing in batchmode.
|
||||
|
||||
2005-05-05 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* Makefile.am, packet.h, main.h, comment.c: Remove comment.c. We
|
||||
|
12
g10/sign.c
12
g10/sign.c
@ -744,9 +744,9 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr,
|
||||
&& (rc=setup_symkey(&efx.symkey_s2k,&efx.symkey_dek)))
|
||||
goto leave;
|
||||
|
||||
if(!opt.force_v3_sigs && !opt.batch && !RFC1991)
|
||||
if(!opt.force_v3_sigs && !RFC1991)
|
||||
{
|
||||
if(opt.ask_sig_expire)
|
||||
if(opt.ask_sig_expire && !opt.batch)
|
||||
duration=ask_expire_interval(1,opt.def_sig_expire);
|
||||
else
|
||||
duration=parse_expire_string(opt.def_sig_expire)*86400L;
|
||||
@ -1014,9 +1014,9 @@ clearsign_file( const char *fname, STRLIST locusr, const char *outfile )
|
||||
memset( &afx, 0, sizeof afx);
|
||||
init_packet( &pkt );
|
||||
|
||||
if(!opt.force_v3_sigs && !opt.batch && !RFC1991)
|
||||
if(!opt.force_v3_sigs && !RFC1991)
|
||||
{
|
||||
if(opt.ask_sig_expire)
|
||||
if(opt.ask_sig_expire && !opt.batch)
|
||||
duration=ask_expire_interval(1,opt.def_sig_expire);
|
||||
else
|
||||
duration=parse_expire_string(opt.def_sig_expire)*86400L;
|
||||
@ -1173,9 +1173,9 @@ sign_symencrypt_file (const char *fname, STRLIST locusr)
|
||||
memset( &cfx, 0, sizeof cfx);
|
||||
init_packet( &pkt );
|
||||
|
||||
if(!opt.force_v3_sigs && !opt.batch && !RFC1991)
|
||||
if(!opt.force_v3_sigs && !RFC1991)
|
||||
{
|
||||
if(opt.ask_sig_expire)
|
||||
if(opt.ask_sig_expire && !opt.batch)
|
||||
duration=ask_expire_interval(1,opt.def_sig_expire);
|
||||
else
|
||||
duration=parse_expire_string(opt.def_sig_expire)*86400L;
|
||||
|
Loading…
x
Reference in New Issue
Block a user