From 82464369f664f821542c416d35d4013f9723f87a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 16 Feb 1998 20:05:02 +0000 Subject: some import functionality --- include/cipher.h | 3 +++ include/iobuf.h | 1 + 2 files changed, 4 insertions(+) (limited to 'include') 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 ); -- cgit v1.2.3