aboutsummaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-01-12 10:18:17 +0000
committerWerner Koch <[email protected]>1998-01-12 10:18:17 +0000
commited3609258828942808702a07ef2986d7328efa3f (patch)
tree185f17c055b38fee37bc0090789dcf96a1535c8c /g10/plaintext.c
parentpatchlevel 2 (diff)
downloadgnupg-ed3609258828942808702a07ef2986d7328efa3f.tar.gz
gnupg-ed3609258828942808702a07ef2986d7328efa3f.zip
started with trust stuff
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r--g10/plaintext.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c
index 114db1df0..ea43a1e6f 100644
--- a/g10/plaintext.c
+++ b/g10/plaintext.c
@@ -79,11 +79,7 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx )
goto leave;
}
if( mfx->md )
- md_putchar(mfx->md, c );
- if( mfx->rmd160 )
- rmd160_putchar(mfx->rmd160, c );
- if( mfx->md5 )
- md5_putchar(mfx->md5, c );
+ md_putc(mfx->md, c );
if( putc( c, fp ) == EOF ) {
log_error("Error writing to '%s': %s\n", fname, strerror(errno) );
rc = G10ERR_WRITE_FILE;
@@ -93,10 +89,8 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx )
}
else {
while( (c = iobuf_get(pt->buf)) != -1 ) {
- if( mfx->rmd160 )
- rmd160_putchar(mfx->rmd160, c );
- if( mfx->md5 )
- md5_putchar(mfx->md5, c );
+ if( mfx->md )
+ md_putc(mfx->md, c );
if( putc( c, fp ) == EOF ) {
log_error("Error writing to '%s': %s\n",
fname, strerror(errno) );
@@ -162,11 +156,7 @@ ask_for_detached_datafile( md_filter_context_t *mfx, const char *inname )
while( (c = iobuf_get(fp)) != -1 ) {
if( mfx->md )
- md_putchar(mfx->md, c );
- if( mfx->rmd160 )
- rmd160_putchar(mfx->rmd160, c );
- if( mfx->md5 )
- md5_putchar(mfx->md5, c );
+ md_putc(mfx->md, c );
}
iobuf_close(fp);