aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cipher.h4
-rw-r--r--include/iobuf.h1
-rw-r--r--include/mpi.h5
3 files changed, 7 insertions, 3 deletions
diff --git a/include/cipher.h b/include/cipher.h
index ac19c3fc0..a19fcfdb7 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -30,7 +30,9 @@
#include "mpi.h"
#include "../cipher/md5.h"
#include "../cipher/rmd.h"
-#include "../cipher/rsa.h"
+#ifdef HAVE_RSA_CIPHER
+ #include "../cipher/rsa.h"
+#endif
#include "../cipher/idea.h"
#include "../cipher/blowfish.h"
#include "../cipher/gost.h"
diff --git a/include/iobuf.h b/include/iobuf.h
index 328cd8da5..a3c64a44b 100644
--- a/include/iobuf.h
+++ b/include/iobuf.h
@@ -81,6 +81,7 @@ void iobuf_set_limit( IOBUF a, unsigned long nlimit );
int iobuf_readbyte(IOBUF a);
int iobuf_writebyte(IOBUF a, unsigned c);
int iobuf_write(IOBUF a, byte *buf, unsigned buflen );
+int iobuf_writestr(IOBUF a, const char *buf );
int iobuf_write_temp( IOBUF a, IOBUF temp );
size_t iobuf_temp_to_buffer( IOBUF a, byte *buffer, size_t buflen );
diff --git a/include/mpi.h b/include/mpi.h
index 4470c609a..096cffec9 100644
--- a/include/mpi.h
+++ b/include/mpi.h
@@ -40,7 +40,7 @@ int mpi_debug_mode;
#error add definions for this machine here
#endif
-typedef struct {
+typedef struct mpi_struct {
int alloced; /* array size (# of allocated limbs) */
int nlimbs; /* number of valid limbs */
int sign; /* indicates a negative number */
@@ -139,9 +139,10 @@ int mpi_test_bit( MPI a, unsigned n );
void mpi_set_bit( MPI a, unsigned n );
void mpi_clear_bit( MPI a, unsigned n );
void mpi_set_bytes( MPI a, unsigned nbits, byte (*fnc)(int), int opaque );
+void mpi_rshift( MPI x, MPI a, unsigned n );
/*-- mpi-inv.c --*/
-int mpi_inv_mod( MPI x, MPI u, MPI v );
+void mpi_inv_mod( MPI x, MPI u, MPI v );
#endif /*G10_MPI_H*/