summaryrefslogtreecommitdiffstats
path: root/g10/armor.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-01-13 14:12:50 +0100
committerWerner Koch <wk@gnupg.org>1999-01-13 14:12:50 +0100
commite99e43cd531c4ba26bb1b2fbc0e356f95126ae24 (patch)
treef591efcd4d250d73c4b265e29a1e1fa44b889017 /g10/armor.c
parentSee ChangeLog: Wed Jan 13 12:49:36 CET 1999 Werner Koch (diff)
downloadgnupg2-e99e43cd531c4ba26bb1b2fbc0e356f95126ae24.tar.xz
gnupg2-e99e43cd531c4ba26bb1b2fbc0e356f95126ae24.zip
See ChangeLog: Wed Jan 13 14:10:15 CET 1999 Werner Koch
Diffstat (limited to 'g10/armor.c')
-rw-r--r--g10/armor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/armor.c b/g10/armor.c
index 99142a70f..1f23c6f64 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -646,6 +646,7 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
c <<= 4;
c |= isdigit(c2)? (c2 - '0'): (toupper(c2)-'A'+10);
afx->buffer_pos += 2;
+ afx->qp_detected = 1;
goto again;
}
}
@@ -1027,6 +1028,10 @@ armor_filter( void *opaque, int control,
if( afx->truncated )
log_info(_("invalid armor: line longer than %d characters\n"),
MAX_LINELEN );
+ /* issue an error to enforce dissemination of correct software */
+ if( afx->qp_detected )
+ log_error(_("quoted printable character in armor - "
+ "probably a buggy MTA has been used\n") );
m_free( afx->buffer );
afx->buffer = NULL;
}