From d8ff6704c8c19adc339bed224b5bd1ed3090673e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 6 Dec 2006 09:52:40 +0000 Subject: Preparing a release --- g10/keyserver.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'g10/keyserver.c') diff --git a/g10/keyserver.c b/g10/keyserver.c index 939bcea92..4f692457b 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -1187,23 +1187,24 @@ keyserver_spawn(enum ks_action action,STRLIST list,KEYDB_SEARCH_DESC *desc, for(key=list;key!=NULL;key=key->next) { - armor_filter_context_t afx; + armor_filter_context_t *afx; IOBUF buffer=iobuf_temp(); KBNODE block; temp=NULL; add_to_strlist(&temp,key->d); - memset(&afx,0,sizeof(afx)); - afx.what=1; + afx = new_armor_context (); + afx->what = 1; /* Tell the armor filter to use Unix-style \n line endings, since we're going to fprintf this to a file that (on Win32) is open in text mode. The win32 stdio will transform the \n to \r\n and we'll end up with the proper line endings on win32. This is a no-op on Unix. */ - afx.eol[0]='\n'; - iobuf_push_filter(buffer,armor_filter,&afx); + afx->eol[0]='\n'; + push_armor_filter (afx, buffer); + release_armor_context (afx); /* TODO: Remove Comment: lines from keys exported this way? */ -- cgit v1.2.3