mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* g10.c (main): Typo.
* armor.c (is_armor_header): Allow CR and LF (not just actual spaces) in an armor header line (-----BEGIN etc). This is needed due to CRLF issues on win32. As before, --openpgp makes it strict.
This commit is contained in:
parent
61197deca8
commit
299a250c94
@ -1,3 +1,12 @@
|
|||||||
|
2005-01-05 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* g10.c (main): Typo.
|
||||||
|
|
||||||
|
* armor.c (is_armor_header): Allow CR and LF (not just actual
|
||||||
|
spaces) in an armor header line (-----BEGIN etc). This is needed
|
||||||
|
due to CRLF issues on win32. As before, --openpgp makes it
|
||||||
|
strict.
|
||||||
|
|
||||||
2005-01-03 David Shaw <dshaw@jabberwocky.com>
|
2005-01-03 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* Makefile.am: Use @LIBUSB@ instead of @LIBUSB_LIBS@
|
* Makefile.am: Use @LIBUSB@ instead of @LIBUSB_LIBS@
|
||||||
|
23
g10/armor.c
23
g10/armor.c
@ -291,17 +291,24 @@ is_armor_header( byte *line, unsigned len )
|
|||||||
save_p = p;
|
save_p = p;
|
||||||
p += 5;
|
p += 5;
|
||||||
|
|
||||||
/* Some mail programs on Windows seem to add spaces to the end of
|
/* Some Windows environments seem to add whitespace to the end of
|
||||||
the line. This becomes strict if --openpgp is set. */
|
the line, so we strip it here. This becomes strict if
|
||||||
|
--rfc2440 is set since 2440 reads "The header lines, therefore,
|
||||||
|
MUST start at the beginning of a line, and MUST NOT have text
|
||||||
|
following them on the same line." It is unclear whether "text"
|
||||||
|
refers to all text or just non-whitespace text. */
|
||||||
|
|
||||||
if(!RFC2440)
|
if(RFC2440)
|
||||||
while(*p==' ')
|
{
|
||||||
|
if( *p == '\r' )
|
||||||
|
p++;
|
||||||
|
if( *p == '\n' )
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
while(*p==' ' || *p=='\r' || *p=='\n')
|
||||||
p++;
|
p++;
|
||||||
|
|
||||||
if( *p == '\r' )
|
|
||||||
p++;
|
|
||||||
if( *p == '\n' )
|
|
||||||
p++;
|
|
||||||
if( *p )
|
if( *p )
|
||||||
return -1; /* garbage after dashes */
|
return -1; /* garbage after dashes */
|
||||||
save_c = *save_p; *save_p = 0;
|
save_c = *save_p; *save_p = 0;
|
||||||
|
@ -2607,8 +2607,8 @@ main( int argc, char **argv )
|
|||||||
|
|
||||||
if(require_secmem && !got_secmem)
|
if(require_secmem && !got_secmem)
|
||||||
{
|
{
|
||||||
log_info(_("will not run with insecure memory due to %s"),
|
log_info(_("will not run with insecure memory due to %s\n"),
|
||||||
"--require-secmem\n");
|
"--require-secmem");
|
||||||
g10_exit(2);
|
g10_exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user