1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-07-03 02:58:57 +02:00

Fixed bug with v3 secret keys and expiration time

This commit is contained in:
Werner Koch 2001-04-24 09:57:31 +00:00
parent fda386855b
commit 113cf10dbe
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-04-24 Werner Koch <wk@gnupg.org>
* build-packet.c (do_secret_key): Ugly, we wrote a zero
instead of the calucalted ndays. Thanks to M Taylor for complaining
about a secret key import problem.
2001-04-23 Werner Koch <wk@gnupg.org>
* hkp.c (hkp_ask_import): Allow to specify a port number for the

View File

@ -353,7 +353,7 @@ do_secret_key( IOBUF out, int ctb, PKT_secret_key *sk )
ndays = (u16)((sk->expiredate - sk->timestamp) / 86400L);
else
ndays = 0;
write_16(a, 0 );
write_16(a, ndays);
}
iobuf_put(a, sk->pubkey_algo );
nskey = pubkey_get_nskey( sk->pubkey_algo );