1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

See ChangeLog: Sat Mar 20 13:59:47 CET 1999 Werner Koch

This commit is contained in:
Werner Koch 1999-03-20 13:01:11 +00:00
parent 5561297e50
commit e5521243bc
10 changed files with 126 additions and 117 deletions

View file

@ -503,13 +503,18 @@ fake_packet( armor_filter_context_t *afx, IOBUF a,
afx->buffer_pos = 2; /* skip */
}
else if( n >= 15 && p[1] == '-' && p[2] == '-' && p[3] == '-' ) {
if( is_armor_header( p, n ) != BEGIN_SIGNATURE ) {
log_info(_("unexpected armor:"));
print_string( stderr, p, n, 0 );
putc('\n', stderr);
int type = is_armor_header( p, n );
if( afx->not_dash_escaped && type != BEGIN_SIGNATURE )
; /* this is okay */
else {
if( type != BEGIN_SIGNATURE ) {
log_info(_("unexpected armor:"));
print_string( stderr, p, n, 0 );
putc('\n', stderr);
}
lastline = 1;
rc = -1;
}
lastline = 1;
rc = -1;
}
}
}