diff options
author | Werner Koch <wk@gnupg.org> | 2011-08-10 14:11:30 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-08-10 14:11:30 +0200 |
commit | 816bee1fa0d833ac72ea4e7d52465e6e1da2645d (patch) | |
tree | 91be759197e74f2e32f821edecce8df6eb444742 /kbx/keybox-openpgp.c | |
parent | Fix autoconf warnings and update config.* files. (diff) | |
download | gnupg2-816bee1fa0d833ac72ea4e7d52465e6e1da2645d.tar.xz gnupg2-816bee1fa0d833ac72ea4e7d52465e6e1da2645d.zip |
Fixed set but unused variable bugs
Diffstat (limited to 'kbx/keybox-openpgp.c')
-rw-r--r-- | kbx/keybox-openpgp.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kbx/keybox-openpgp.c b/kbx/keybox-openpgp.c index 4306ed1b0..37e2771a8 100644 --- a/kbx/keybox-openpgp.c +++ b/kbx/keybox-openpgp.c @@ -170,7 +170,6 @@ parse_key (const unsigned char *data, size_t datalen, const unsigned char *data_start = data; int i, version, algorithm; size_t n; - unsigned long timestamp, expiredate; int npkey; unsigned char hashbuffer[768]; const unsigned char *mpi_n = NULL; @@ -184,21 +183,15 @@ parse_key (const unsigned char *data, size_t datalen, if (version < 2 || version > 4 ) return gpg_error (GPG_ERR_INV_PACKET); /* Invalid version. */ - timestamp = ((data[0]<<24)|(data[1]<<16)|(data[2]<<8)|(data[3])); + /*timestamp = ((data[0]<<24)|(data[1]<<16)|(data[2]<<8)|(data[3]));*/ data +=4; datalen -=4; if (version < 4) { - unsigned short ndays; - if (datalen < 2) return gpg_error (GPG_ERR_INV_PACKET); - ndays = ((data[0]<<8)|(data[1])); data +=2; datalen -= 2; - expiredate = ndays? (timestamp + ndays * 86400L) : 0; } - else - expiredate = 0; /* This is stored in the self-signature. */ if (!datalen) return gpg_error (GPG_ERR_INV_PACKET); |