mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-22 14:57:02 +01:00
Fixed bug with v3 secret keys and expiration time
This commit is contained in:
parent
fda386855b
commit
113cf10dbe
@ -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
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user