1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-23 21:59:57 +01:00

* armor.c (radix64_read): No armor CRC is legal according to the spec (the

CRC is a MAY).
This commit is contained in:
David Shaw 2004-08-05 20:18:44 +00:00
parent f7a793ae28
commit 52a83025e9
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-08-05 David Shaw <dshaw@jabberwocky.com>
* armor.c (radix64_read): No armor CRC is legal according to the
spec (the CRC is a MAY).
2004-07-28 David Shaw <dshaw@jabberwocky.com>
* misc.c (argsplit): Properly split quoted args from the keyword

View File

@ -771,7 +771,11 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
if( c == -1 ) {
log_info(_("premature eof (in CRC)\n"));
rc = invalid_crc();
}
}
else if( idx == 0 ) {
/* No CRC at all is legal ("MAY") */
rc=0;
}
else if( idx != 4 ) {
log_info(_("malformed CRC\n"));
rc = invalid_crc();