From be2aa37dbf0da2c953143c328a1aed4bf210cc87 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sat, 21 May 2005 14:04:32 +0000 Subject: * cardglue.c (send_status_info): Make CTRL optional. (agent_scd_writekey, inq_writekey_parms): New. (agent_openpgp_storekey): Removed. * cardglue.h: Add a few more error code mappings. * keygen.c (copy_mpi): Removed. (save_unprotected_key_to_card): Changed to use agent_scd_writekey. * app-common.h, app-openpgp.c, tlv.c, tlv.h: Updated from newer version in gnupg 1.9 CVS. --- mpi/mpi-scan.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'mpi/mpi-scan.c') diff --git a/mpi/mpi-scan.c b/mpi/mpi-scan.c index 615b9464f..fe093adea 100644 --- a/mpi/mpi-scan.c +++ b/mpi/mpi-scan.c @@ -18,8 +18,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#include -#include +#include +#include #include #include "mpi-internal.h" #include "longlong.h" @@ -31,6 +31,7 @@ * * FIXME: This code is VERY ugly! */ +#if 0 /* Code is not used */ int mpi_getbyte( MPI a, unsigned idx ) { @@ -48,14 +49,19 @@ mpi_getbyte( MPI a, unsigned idx ) } return -1; } +#endif /* Code is not used */ /**************** * Put a value at position IDX into A. idx counts from lsb to msb */ +/* FIXME: There is a problem with the long constants which should have +a LL prefix or better the macros we use at other places. */ +#if 0 /* Code is not used */ void mpi_putbyte( MPI a, unsigned idx, int xc ) { + int i, j; unsigned n; mpi_ptr_t ap; @@ -104,12 +110,13 @@ mpi_putbyte( MPI a, unsigned idx, int xc ) } abort(); /* index out of range */ } +#endif /* Code is not used */ /**************** * Count the number of zerobits at the low end of A */ -unsigned +unsigned int mpi_trailing_zeros( MPI a ) { unsigned n, count = 0; -- cgit v1.2.3