diff options
Diffstat (limited to 'g10/filter.h')
-rw-r--r-- | g10/filter.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/g10/filter.h b/g10/filter.h index 8cbb26af7..cb6802ff3 100644 --- a/g10/filter.h +++ b/g10/filter.h @@ -28,8 +28,23 @@ typedef struct { size_t maxbuf_size; } md_filter_context_t; +typedef struct { + int status; + int what; + byte radbuf[4]; + int idx, idx2; + u32 crc; + int inp_checked; /* set if inp has been checked */ + int inp_bypass; /* set if the input is not armored */ + int inp_eof; +} armor_filter_context_t; + /*-- mdfilter.c --*/ int md_filter( void *opaque, int control, IOBUF a, byte *buf, size_t *ret_len); +/*-- armor.c --*/ +int armor_filter( void *opaque, int control, + IOBUF chain, byte *buf, size_t *ret_len); + #endif /*G10_FILTER_H*/ |