diff options
author | Werner Koch <[email protected]> | 2005-05-21 14:04:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-05-21 14:04:32 +0000 |
commit | be2aa37dbf0da2c953143c328a1aed4bf210cc87 (patch) | |
tree | c4b207b7cd1bfca613d0e52a4ddd6c9b41d3c8e0 /mpi/mpi-scan.c | |
parent | (ccid_transceive): Arghhh. The seqno is another (diff) | |
download | gnupg-be2aa37dbf0da2c953143c328a1aed4bf210cc87.tar.gz gnupg-be2aa37dbf0da2c953143c328a1aed4bf210cc87.zip |
* 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.
Diffstat (limited to '')
-rw-r--r-- | mpi/mpi-scan.c | 13 |
1 files changed, 10 insertions, 3 deletions
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 <config.h> -#include <stdio.h> +#include <config.h> +#include <stdio.h> #include <stdlib.h> #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; |