mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Fix minor compiler warnings.
--
This commit is contained in:
parent
402aa0f948
commit
a0102a548d
@ -331,7 +331,7 @@ do_key (iobuf_t out, int ctb, PKT_public_key *pk)
|
||||
for (i=0; i < npkey; i++ )
|
||||
{
|
||||
if ((pk->pubkey_algo == PUBKEY_ALGO_ECDSA && (i == 0))
|
||||
|| (pk->pubkey_algo == PUBKEY_ALGO_ECDH) && (i == 0 || i == 2))
|
||||
|| ((pk->pubkey_algo == PUBKEY_ALGO_ECDH) && (i == 0 || i == 2)))
|
||||
err = gpg_mpi_write_nohdr (a, pk->pkey[i]);
|
||||
else
|
||||
err = gpg_mpi_write (a, pk->pkey[i]);
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
#include "gpg.h"
|
||||
#include "util.h"
|
||||
#include "../common/init.h"
|
||||
#include "packet.h"
|
||||
#include "keydb.h"
|
||||
|
||||
|
@ -1991,7 +1991,7 @@ parse_key (IOBUF inp, int pkttype, unsigned long pktlen,
|
||||
for (i = 0; i < npkey; i++)
|
||||
{
|
||||
if ((algorithm == PUBKEY_ALGO_ECDSA && (i == 0))
|
||||
|| (algorithm == PUBKEY_ALGO_ECDH) && (i == 0 || i == 2))
|
||||
|| ((algorithm == PUBKEY_ALGO_ECDH) && (i == 0 || i == 2)))
|
||||
{
|
||||
size_t n;
|
||||
err = read_size_body (inp, pktlen, &n, pk->pkey+i);
|
||||
|
@ -20,7 +20,7 @@ mainkeyids='BAA59D9C
|
||||
45AF2FFE'
|
||||
|
||||
|
||||
if have_pubkey_algo "ECDH"; then
|
||||
if have_pubkey_algo "ECC"; then
|
||||
:
|
||||
else
|
||||
info "No ECC support due to an old Libgcrypt"
|
||||
|
@ -31,11 +31,3 @@ if $GPG --list-keys --with-colons $keyid \
|
||||
else
|
||||
error "$goodkey: import failed (bug 1223)"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user