diff options
author | Werner Koch <[email protected]> | 2006-12-06 09:52:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-12-06 09:52:40 +0000 |
commit | d8ff6704c8c19adc339bed224b5bd1ed3090673e (patch) | |
tree | 799ba7d809589433fc94273f0569c7d44b716ce0 /g10/import.c | |
parent | Changing the way man pages are build. (diff) | |
download | gnupg-1.4.6.tar.gz gnupg-1.4.6.zip |
Preparing a releasegnupg-1.4.6
Diffstat (limited to 'g10/import.c')
-rw-r--r-- | g10/import.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/import.c b/g10/import.c index e2ad0e314..7260301f6 100644 --- a/g10/import.c +++ b/g10/import.c @@ -249,9 +249,10 @@ import( IOBUF inp, const char* fname,struct stats_s *stats, getkey_disable_caches(); if( !opt.no_armor ) { /* armored reading is not disabled */ - armor_filter_context_t *afx = xmalloc_clear( sizeof *afx ); + armor_filter_context_t *afx = new_armor_context (); afx->only_keyblocks = 1; - iobuf_push_filter2( inp, armor_filter, afx, 1 ); + push_armor_filter (afx, inp); + release_armor_context (afx); } while( !(rc = read_block( inp, &pending_pkt, &keyblock) )) { |