summaryrefslogtreecommitdiffstats
path: root/g10/cipher.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-07-06 12:23:57 +0200
committerWerner Koch <wk@gnupg.org>1998-07-06 12:23:57 +0200
commita9ec668cbe5b3335f5db0f05b8e9e88e29ada52c (patch)
treee159c79b615fcdcb65f31ee5d1d0a2b1ba84e9aa /g10/cipher.c
parentpartly added creation of OP partial length headers (diff)
downloadgnupg2-a9ec668cbe5b3335f5db0f05b8e9e88e29ada52c.tar.xz
gnupg2-a9ec668cbe5b3335f5db0f05b8e9e88e29ada52c.zip
intermediate release
Diffstat (limited to 'g10/cipher.c')
-rw-r--r--g10/cipher.c7
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";