aboutsummaryrefslogtreecommitdiffstats
path: root/g10/armor.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/armor.c')
-rw-r--r--g10/armor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/g10/armor.c b/g10/armor.c
index ed5ef5d2e..948b8c802 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -162,6 +162,14 @@ push_armor_filter (armor_filter_context_t *afx, iobuf_t iobuf)
}
+/* This function returns true if the armor filter detected that the
+ * input was indeed armored. Gives a valid result only after the
+ * first PGP packet has been read. */
+int
+was_armored (armor_filter_context_t *afx)
+{
+ return (afx && !afx->inp_bypass);
+}