diff options
author | Werner Koch <wk@gnupg.org> | 1998-07-06 12:23:57 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-07-06 12:23:57 +0200 |
commit | a9ec668cbe5b3335f5db0f05b8e9e88e29ada52c (patch) | |
tree | e159c79b615fcdcb65f31ee5d1d0a2b1ba84e9aa /g10/cipher.c | |
parent | partly added creation of OP partial length headers (diff) | |
download | gnupg2-a9ec668cbe5b3335f5db0f05b8e9e88e29ada52c.tar.xz gnupg2-a9ec668cbe5b3335f5db0f05b8e9e88e29ada52c.zip |
intermediate release
Diffstat (limited to 'g10/cipher.c')
-rw-r--r-- | g10/cipher.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/g10/cipher.c b/g10/cipher.c index b975d26f1..0891d52fb 100644 --- a/g10/cipher.c +++ b/g10/cipher.c @@ -46,6 +46,7 @@ write_header( cipher_filter_context_t *cfx, IOBUF a ) memset( &ed, 0, sizeof ed ); ed.len = cfx->datalen; + ed.new_ctb = !ed.len && !opt.rfc1991; init_packet( &pkt ); pkt.pkttype = PKT_ENCRYPTED; pkt.pkt.encrypted = &ed; @@ -88,13 +89,7 @@ cipher_filter( void *opaque, int control, rc = G10ERR_WRITE_FILE; } else if( control == IOBUFCTRL_FREE ) { - #if 0 - if( cfx->new_partial && cfx->cfx->la_buffer ) { - - } - #endif cipher_close(cfx->cipher_hd); - m_free(cfx->la_buffer); cfx->la_buffer = NULL; } else if( control == IOBUFCTRL_DESC ) { *(char**)buf = "cipher_filter"; |