diff options
author | Werner Koch <wk@gnupg.org> | 2007-02-21 13:26:38 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-02-21 13:26:38 +0000 |
commit | 56d370e0084511d9f9d706d0bcf2e3375b46ca25 (patch) | |
tree | db028f7ec619291d6ed5ee5929f58bf835fa4ff3 /mpi/mpicoder.c | |
parent | bfb2b7eaf2808d7ba17914b91c00bfc02b4ec6c2 (diff) | |
download | libgcrypt-56d370e0084511d9f9d706d0bcf2e3375b46ca25.tar.gz |
A lot of cleanups as well as minor API changes.
Ported some changes from 1.2 to here.
Diffstat (limited to 'mpi/mpicoder.c')
-rw-r--r-- | mpi/mpicoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mpi/mpicoder.c b/mpi/mpicoder.c index 038bf899..a0ae8f89 100644 --- a/mpi/mpicoder.c +++ b/mpi/mpicoder.c @@ -274,8 +274,10 @@ _gcry_mpi_get_secure_buffer( gcry_mpi_t a, unsigned *nbytes, int *sign ) * Use BUFFER to update MPI. */ void -_gcry_mpi_set_buffer( gcry_mpi_t a, const byte *buffer, unsigned nbytes, int sign ) +_gcry_mpi_set_buffer ( gcry_mpi_t a, const void *buffer_arg, + unsigned int nbytes, int sign ) { + const unsigned char *buffer = (const unsigned char*)buffer_arg; const byte *p; mpi_limb_t alimb; int nlimbs; |