aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-05-06 19:25:19 +0000
committerDavid Shaw <[email protected]>2005-05-06 19:25:19 +0000
commit89c844bd3a2090848df8a5f9fb53b1c55635b328 (patch)
tree67d53dbba05f6a8a50f280901f6b2d7fa9c80134 /g10/g10.c
parent* sign.c (sign_file, clearsign_file, sign_symencrypt_file): Use the (diff)
downloadgnupg-89c844bd3a2090848df8a5f9fb53b1c55635b328.tar.gz
gnupg-89c844bd3a2090848df8a5f9fb53b1c55635b328.zip
* main.h, keygen.c (parse_expire_string, ask_expire_interval), sign.c
(sign_file, clearsign_file, sign_symencrypt_file), g10.c (main), keyedit.c (sign_uids): Use seconds rather than days internally to calculate expiration. We no longer need the day-based code as we don't generate v3 keys.
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 0243de837..10d9b4dc0 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -2234,7 +2234,7 @@ main( int argc, char **argv )
case oDefSigExpire:
if(*pargs.r.ret_str!='\0')
{
- if(parse_expire_string(pargs.r.ret_str)==-1)
+ if(parse_expire_string(pargs.r.ret_str)==(u32)-1)
log_error(_("`%s' is not a valid signature expiration\n"),
pargs.r.ret_str);
else
@@ -2246,7 +2246,7 @@ main( int argc, char **argv )
case oDefCertExpire:
if(*pargs.r.ret_str!='\0')
{
- if(parse_expire_string(pargs.r.ret_str)==-1)
+ if(parse_expire_string(pargs.r.ret_str)==(u32)-1)
log_error(_("`%s' is not a valid signature expiration\n"),
pargs.r.ret_str);
else