mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
Removed some set but unused vars.
This commit is contained in:
parent
0ad1458f82
commit
a95143e225
@ -1,3 +1,11 @@
|
||||
2011-08-09 Werner Koch <wk@g10code.com>
|
||||
|
||||
* rijndael.c (u32_a_t): New.
|
||||
(do_encrypt_aligned, do_decrypt): Use the new type to avoid
|
||||
problems with strict aliasing rules.
|
||||
|
||||
* dynload.c (register_cipher_extension): Remove unused var.
|
||||
|
||||
2010-10-18 Werner Koch <wk@g10code.com>
|
||||
|
||||
* rndw32.c (slow_gatherer_windowsNT): Add GNUPG_RNDW32_NOPERF envvar.
|
||||
|
@ -53,7 +53,7 @@ static EXTLIST extensions;
|
||||
void
|
||||
register_cipher_extension( const char *mainpgm, const char *fname )
|
||||
{
|
||||
EXTLIST r, el, intex;
|
||||
EXTLIST r, el;
|
||||
char *p, *pe;
|
||||
|
||||
if( *fname != DIRSEP_C ) { /* do tilde expansion etc */
|
||||
@ -76,7 +76,6 @@ register_cipher_extension( const char *mainpgm, const char *fname )
|
||||
*p = *pe = 0;
|
||||
|
||||
/* check that it is not already registered */
|
||||
intex = NULL;
|
||||
for(r = extensions; r; r = r->next ) {
|
||||
if( !compare_filenames(r->name, el->name) ) {
|
||||
log_info("extension `%s' already registered\n", el->name );
|
||||
|
@ -1,5 +1,11 @@
|
||||
2011-08-09 Werner Koch <wk@g10code.com>
|
||||
|
||||
* keyedit.c (show_key_with_all_names): Remove unused var.
|
||||
|
||||
* apdu.c (open_pcsc_reader_direct): Remove unused var.
|
||||
|
||||
* sig-check.c (do_check): Remove unused var.
|
||||
|
||||
* keygen.c (ask_user_id): Fix loop break condition. See bug#1307.
|
||||
|
||||
* import.c (import_keys_internal): Make breaking the loop more
|
||||
|
@ -1473,7 +1473,7 @@ open_pcsc_reader_direct (const char *portstr)
|
||||
long err;
|
||||
int slot;
|
||||
char *list = NULL;
|
||||
unsigned long nreader, listlen;
|
||||
unsigned long nreader;
|
||||
char *p;
|
||||
|
||||
slot = new_reader_slot ();
|
||||
@ -1517,7 +1517,6 @@ open_pcsc_reader_direct (const char *portstr)
|
||||
return -1;
|
||||
}
|
||||
|
||||
listlen = nreader;
|
||||
p = list;
|
||||
while (nreader)
|
||||
{
|
||||
|
@ -2644,7 +2644,6 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
||||
KBNODE node;
|
||||
int i;
|
||||
int do_warn = 0;
|
||||
byte pk_version=0;
|
||||
PKT_public_key *primary=NULL;
|
||||
|
||||
if (opt.with_colons)
|
||||
@ -2676,7 +2675,6 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
||||
do_warn = 1;
|
||||
}
|
||||
|
||||
pk_version=pk->version;
|
||||
primary=pk;
|
||||
}
|
||||
|
||||
|
@ -293,7 +293,6 @@ run_in_pipemode(void)
|
||||
IOBUF fp;
|
||||
armor_filter_context_t afx;
|
||||
struct pipemode_context_s stx;
|
||||
int rc;
|
||||
|
||||
memset( &afx, 0, sizeof afx);
|
||||
memset( &stx, 0, sizeof stx);
|
||||
@ -303,7 +302,7 @@ run_in_pipemode(void)
|
||||
|
||||
do {
|
||||
write_status (STATUS_BEGIN_STREAM);
|
||||
rc = proc_packets( NULL, fp );
|
||||
proc_packets( NULL, fp );
|
||||
write_status (STATUS_END_STREAM);
|
||||
} while ( !stx.stop );
|
||||
|
||||
|
@ -239,7 +239,6 @@ do_check( PKT_public_key *pk, PKT_signature *sig, MD_HANDLE digest,
|
||||
{
|
||||
MPI result = NULL;
|
||||
int rc=0;
|
||||
struct cmp_help_context_s ctx;
|
||||
|
||||
if( (rc=do_check_messages(pk,sig,r_expired,r_revoked)) )
|
||||
return rc;
|
||||
@ -291,8 +290,6 @@ do_check( PKT_public_key *pk, PKT_signature *sig, MD_HANDLE digest,
|
||||
result = encode_md_value( pk, NULL, digest, sig->digest_algo );
|
||||
if (!result)
|
||||
return G10ERR_GENERAL;
|
||||
ctx.sig = sig;
|
||||
ctx.md = digest;
|
||||
rc = pubkey_verify( pk->pubkey_algo, result, sig->data, pk->pkey );
|
||||
mpi_free( result );
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2011-08-09 Werner Koch <wk@g10code.com>
|
||||
|
||||
* gpgkeys_hkp.c (srv_replace): Remove unused var.
|
||||
|
||||
2009-09-02 Werner Koch <wk@g10code.com>
|
||||
|
||||
* Makefile.am (gpgkeys_curl_SOURCES, gpgkeys_ldap_SOURCES)
|
||||
|
@ -498,7 +498,6 @@ srv_replace(const char *srvtag)
|
||||
{
|
||||
#ifdef USE_DNS_SRV
|
||||
struct srventry *srvlist=NULL;
|
||||
int srvcount;
|
||||
|
||||
if(!srvtag)
|
||||
return;
|
||||
@ -511,7 +510,7 @@ srv_replace(const char *srvtag)
|
||||
strcat(srvname,srvtag);
|
||||
strcat(srvname,"._tcp.");
|
||||
strcat(srvname,opt->host);
|
||||
srvcount=getsrv(srvname,&srvlist);
|
||||
getsrv(srvname,&srvlist);
|
||||
}
|
||||
|
||||
if(srvlist)
|
||||
|
@ -1,3 +1,9 @@
|
||||
2011-08-09 Werner Koch <wk@g10code.com>
|
||||
|
||||
* mpicoder.c (mpi_fromstr): Remove unused var.
|
||||
|
||||
* mpi-pow.c (mpi_powm): Remove unused var.
|
||||
|
||||
2011-07-04 Werner Koch <wk@g10code.com>
|
||||
|
||||
* longlong.h: [__arm__]: Do no use asm if thumb code generation is
|
||||
|
@ -42,7 +42,7 @@ mpi_powm( MPI res, MPI base, MPI exponent, MPI mod)
|
||||
{
|
||||
mpi_ptr_t rp, ep, mp, bp;
|
||||
mpi_size_t esize, msize, bsize, rsize;
|
||||
int esign, msign, bsign, rsign;
|
||||
int msign, bsign, rsign;
|
||||
int esec, msec, bsec, rsec;
|
||||
mpi_size_t size;
|
||||
int mod_shift_cnt;
|
||||
@ -57,7 +57,6 @@ mpi_powm( MPI res, MPI base, MPI exponent, MPI mod)
|
||||
esize = exponent->nlimbs;
|
||||
msize = mod->nlimbs;
|
||||
size = 2 * msize;
|
||||
esign = exponent->sign;
|
||||
msign = mod->sign;
|
||||
|
||||
esec = mpi_is_secure(exponent);
|
||||
|
@ -200,7 +200,7 @@ mpi_read_from_buffer(byte *buffer, unsigned int *ret_nread, int secure)
|
||||
int
|
||||
mpi_fromstr(MPI val, const char *str)
|
||||
{
|
||||
int hexmode=0, sign=0, prepend_zero=0, i, j, c, c1, c2;
|
||||
int sign=0, prepend_zero=0, i, j, c, c1, c2;
|
||||
unsigned nbits, nbytes, nlimbs;
|
||||
mpi_limb_t a;
|
||||
|
||||
@ -209,7 +209,7 @@ mpi_fromstr(MPI val, const char *str)
|
||||
str++;
|
||||
}
|
||||
if( *str == '0' && str[1] == 'x' )
|
||||
hexmode = 1;
|
||||
;
|
||||
else
|
||||
return 1; /* other bases are not yet supported */
|
||||
str += 2;
|
||||
|
@ -3,6 +3,7 @@
|
||||
* pka.c (get_pka_info): Turn ANSWER into a union to avoid aliasing
|
||||
problems with modern compilers. See bug#1307. Reported by Steve
|
||||
Grubb.
|
||||
(get_pka_info): Remove unused vars.
|
||||
|
||||
2010-10-27 Werner Koch <wk@g10code.com>
|
||||
|
||||
|
@ -122,7 +122,7 @@ get_pka_info (const char *address, unsigned char *fpr)
|
||||
HEADER h;
|
||||
} answer;
|
||||
int anslen;
|
||||
int qdcount, ancount, nscount, arcount;
|
||||
int qdcount, ancount;
|
||||
int rc;
|
||||
unsigned char *p, *pend;
|
||||
const char *domain;
|
||||
@ -151,8 +151,6 @@ get_pka_info (const char *address, unsigned char *fpr)
|
||||
|
||||
qdcount = ntohs (answer.h.qdcount);
|
||||
ancount = ntohs (answer.h.ancount);
|
||||
nscount = ntohs (answer.h.nscount);
|
||||
arcount = ntohs (answer.h.arcount);
|
||||
|
||||
if (!ancount)
|
||||
return NULL; /* Got no answer. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user