aboutsummaryrefslogtreecommitdiffstats
path: root/g10/filter.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-01-06 16:23:47 +0000
committerDavid Shaw <[email protected]>2005-01-06 16:23:47 +0000
commitf464dcef5946501d4c99e4f8f608a59c5e12392f (patch)
treeb46f8d1395ac4fadece08459690ded1195d408b6 /g10/filter.h
parent(set_native_charset): Assume that ASCII, (diff)
downloadgnupg-f464dcef5946501d4c99e4f8f608a59c5e12392f.tar.gz
gnupg-f464dcef5946501d4c99e4f8f608a59c5e12392f.zip
* filter.h, armor.c (armor_filter): Use the eol string from the armor
filter context instead of hardcoding '\n' or '\r\n'. If no eol string is provided, default to '\n' or '\r\n' as appropriate. (is_armor_header): Trim tabs in armor header lines as well. * keyserver.c (keyserver_spawn): Use it here to force '\n' line endings since the keyserver output file gets a LF->CRLF expansion on win32.
Diffstat (limited to 'g10/filter.h')
-rw-r--r--g10/filter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/filter.h b/g10/filter.h
index fed70c25c..b8e3edac6 100644
--- a/g10/filter.h
+++ b/g10/filter.h
@@ -1,5 +1,6 @@
/* filter.h
- * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2003,
+ * 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -48,6 +49,10 @@ typedef struct {
int truncated; /* number of truncated lines */
int qp_detected;
int pgp2mode;
+ byte eol[3]; /* The end of line characters as a
+ zero-terminated string. Defaults
+ (eol[0]=='\0') to whatever the local
+ platform uses. */
byte *buffer; /* malloced buffer */
unsigned buffer_size; /* and size of this buffer */