summaryrefslogtreecommitdiffstats
path: root/g10/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'g10/filter.h')
-rw-r--r--g10/filter.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/g10/filter.h b/g10/filter.h
index 72029c61f..69f5174d4 100644
--- a/g10/filter.h
+++ b/g10/filter.h
@@ -35,6 +35,10 @@ typedef struct {
byte radbuf[4];
int idx, idx2;
u32 crc;
+ byte helpbuf[100];
+ int helpidx, helplen;
+ int last_c;
+ int fake;
int inp_checked; /* set if inp has been checked */
int inp_bypass; /* set if the input is not armored */
int inp_eof;
@@ -60,6 +64,13 @@ typedef struct {
} cipher_filter_context_t;
+typedef struct {
+ size_t linesize;
+ byte *line;
+ size_t linelen;
+ size_t pos;
+ int eof;
+} text_filter_context_t;
/*-- mdfilter.c --*/
int md_filter( void *opaque, int control, IOBUF a, byte *buf, size_t *ret_len);
@@ -77,6 +88,10 @@ int compress_filter( void *opaque, int control,
int cipher_filter( void *opaque, int control,
IOBUF chain, byte *buf, size_t *ret_len);
+/*-- textfilter.c --*/
+int text_filter( void *opaque, int control,
+ IOBUF chain, byte *buf, size_t *ret_len);
+
#endif /*G10_FILTER_H*/