summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-02-16 21:05:02 +0100
committerWerner Koch <wk@gnupg.org>1998-02-16 21:05:02 +0100
commit82464369f664f821542c416d35d4013f9723f87a (patch)
treed127f2d891260ff1c6d4264630b2ba7bd463b1f4 /include
parentadded option export (diff)
downloadgnupg2-82464369f664f821542c416d35d4013f9723f87a.tar.xz
gnupg2-82464369f664f821542c416d35d4013f9723f87a.zip
some import functionality
Diffstat (limited to 'include')
-rw-r--r--include/cipher.h3
-rw-r--r--include/iobuf.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/cipher.h b/include/cipher.h
index 7262d5c66..d0fe788ae 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -73,6 +73,9 @@ int cipher_debug_mode;
int string_to_cipher_algo( const char *string );
int string_to_pubkey_algo( const char *string );
int string_to_digest_algo( const char *string );
+const char * cipher_algo_to_string( int algo );
+const char * pubkey_algo_to_string( int algo );
+const char * digest_algo_to_string( int algo );
int check_cipher_algo( int algo );
int check_pubkey_algo( int algo );
int check_digest_algo( int algo );
diff --git a/include/iobuf.h b/include/iobuf.h
index a57d7a9ab..61c765395 100644
--- a/include/iobuf.h
+++ b/include/iobuf.h
@@ -89,6 +89,7 @@ int iobuf_seek( IOBUF a, ulong newpos );
int iobuf_readbyte(IOBUF a);
int iobuf_read(IOBUF a, byte *buf, unsigned buflen );
+int iobuf_peek(IOBUF a, byte *buf, unsigned buflen );
int iobuf_writebyte(IOBUF a, unsigned c);
int iobuf_write(IOBUF a, byte *buf, unsigned buflen );
int iobuf_writestr(IOBUF a, const char *buf );