diff options
| author | Werner Koch <[email protected]> | 1998-05-26 13:38:00 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 1998-05-26 13:38:00 +0000 |
| commit | eed2faab53f859c98bf85f1e324614da640bf3ff (patch) | |
| tree | 4a701250cb3300121456599f90cd7a22e03e8b59 /g10/sign.c | |
| parent | new release (diff) | |
| download | gnupg-eed2faab53f859c98bf85f1e324614da640bf3ff.tar.gz gnupg-eed2faab53f859c98bf85f1e324614da640bf3ff.zip | |
add-key works
Diffstat (limited to 'g10/sign.c')
| -rw-r--r-- | g10/sign.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/g10/sign.c b/g10/sign.c index 104aedb42..598f60998 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -170,17 +170,19 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr, if( opt.armor && !outfile ) iobuf_push_filter( out, armor_filter, &afx ); - write_comment( out, "#created by GNUPG v" VERSION " (" + else + write_comment( out, "#created by GNUPG v" VERSION " (" PRINTABLE_OS_NAME ")"); - if( opt.compress && !outfile ) - iobuf_push_filter( out, compress_filter, &zfx ); - if( encrypt ) { efx.pkc_list = pkc_list; /* fixme: set efx.cfx.datalen if known */ iobuf_push_filter( out, encrypt_filter, &efx ); } + if( opt.compress && !outfile ) + iobuf_push_filter( out, compress_filter, &zfx ); + + if( !detached ) { /* loop over the secret certificates and build headers */ for( skc_rover = skc_list; skc_rover; skc_rover = skc_rover->next ) { @@ -410,7 +412,6 @@ int clearsign_file( const char *fname, STRLIST locusr, const char *outfile ) { armor_filter_context_t afx; - compress_filter_context_t zfx; text_filter_context_t tfx; MD_HANDLE textmd = NULL; IOBUF inp = NULL, out = NULL; @@ -420,7 +421,6 @@ clearsign_file( const char *fname, STRLIST locusr, const char *outfile ) SKC_LIST skc_rover = NULL; memset( &afx, 0, sizeof afx); - memset( &zfx, 0, sizeof zfx); memset( &tfx, 0, sizeof tfx); init_packet( &pkt ); |
