mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +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>
|
2001-04-23 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* hkp.c (hkp_ask_import): Allow to specify a port number for the
|
* 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);
|
ndays = (u16)((sk->expiredate - sk->timestamp) / 86400L);
|
||||||
else
|
else
|
||||||
ndays = 0;
|
ndays = 0;
|
||||||
write_16(a, 0 );
|
write_16(a, ndays);
|
||||||
}
|
}
|
||||||
iobuf_put(a, sk->pubkey_algo );
|
iobuf_put(a, sk->pubkey_algo );
|
||||||
nskey = pubkey_get_nskey( sk->pubkey_algo );
|
nskey = pubkey_get_nskey( sk->pubkey_algo );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user