aboutsummaryrefslogtreecommitdiffstats
path: root/g10/filter.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-01-07 17:05:48 +0000
committerWerner Koch <[email protected]>1999-01-07 17:05:48 +0000
commit7d0efec7cf5ae110c99511abc32587ff0c45b14f (patch)
treec25f43c0b175ca31c84da4e9a256b259ea070fc7 /g10/filter.h
parentSee ChangeLog: Sun Jan 3 15:28:44 CET 1999 Werner Koch (diff)
downloadgnupg-7d0efec7cf5ae110c99511abc32587ff0c45b14f.tar.gz
gnupg-7d0efec7cf5ae110c99511abc32587ff0c45b14f.zip
See ChangeLog: Thu Jan 7 18:00:58 CET 1999 Werner Koch
Diffstat (limited to 'g10/filter.h')
-rw-r--r--g10/filter.h39
1 files changed, 24 insertions, 15 deletions
diff --git a/g10/filter.h b/g10/filter.h
index 75d629e68..46e3f8a54 100644
--- a/g10/filter.h
+++ b/g10/filter.h
@@ -29,23 +29,32 @@ typedef struct {
} md_filter_context_t;
typedef struct {
- int status;
- int what;
- int only_keyblocks; /* skip all headers but ".... key block" */
+ /* these fields may be initialized */
+ int what; /* what kind of armor headers to write */
+ int only_keyblocks; /* skip all headers but ".... key block" */
+ const char *hdrlines; /* write these headerlines */
+
+ /* the following fields must be initialized to zero */
+ int inp_checked; /* set if the input has been checked */
+ int inp_bypass; /* set if the input is not armored */
+ int in_cleartext; /* clear text message */
+ int not_dash_escaped; /* clear text is not dash escaped */
+ int hashes; /* detected hash algorithms */
+ int faked; /* we are faking a literal data packet */
+ int truncated; /* number of truncated lines */
+
+ byte *buffer; /* malloced buffer */
+ unsigned buffer_size; /* and size of this buffer */
+ unsigned buffer_len; /* used length of the buffer */
+ unsigned buffer_pos; /* read position */
+
byte radbuf[4];
- int idx, idx2;
+ int idx, idx2;
u32 crc;
- byte helpbuf[100];
- int helpidx, helplen;
- unsigned empty; /* empty line counter */
- int hashes; /* detected hash algorithms */
- int faked;
- int parse_state;
- int inp_checked; /* set if inp has been checked */
- int inp_bypass; /* set if the input is not armored */
- int any_data;
- const char *hdrlines;
- int not_dash_escaped;
+
+ int status; /* an internal state flag */
+ int any_data; /* any valid armored data seen */
+ unsigned empty; /* empty line counter USED??? */
} armor_filter_context_t;