aboutsummaryrefslogtreecommitdiffstats
path: root/g10/free-packet.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-03-03 00:09:16 +0000
committerDavid Shaw <[email protected]>2004-03-03 00:09:16 +0000
commitc57262fd5743b96f54e930f9dec57efbe0c53b69 (patch)
treec458407f7cad928e3bc53d045d4403dc7fdddc64 /g10/free-packet.c
parent* parse-packet.c (parse): Only data-type packets are allowed to use (diff)
downloadgnupg-c57262fd5743b96f54e930f9dec57efbe0c53b69.tar.gz
gnupg-c57262fd5743b96f54e930f9dec57efbe0c53b69.zip
* packet.h, free-packet.c (free_encrypted, free_plaintext), parse-packet.c
(copy_packet, skip_packet, skip_rest, read_rest, parse_plaintext, parse_encrypted, parse_gpg_control): Use a flag to indicate partial or indeterminate encoding. This is the first step in some minor surgery to remove the old gpg partial length encoding.
Diffstat (limited to '')
-rw-r--r--g10/free-packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/free-packet.c b/g10/free-packet.c
index ce3568ca5..b1383a750 100644
--- a/g10/free-packet.c
+++ b/g10/free-packet.c
@@ -319,7 +319,7 @@ void
free_encrypted( PKT_encrypted *ed )
{
if( ed->buf ) { /* have to skip some bytes */
- if( iobuf_in_block_mode(ed->buf) ) {
+ if( ed->is_partial ) {
while( iobuf_read( ed->buf, NULL, 1<<30 ) != -1 )
;
}
@@ -341,7 +341,7 @@ void
free_plaintext( PKT_plaintext *pt )
{
if( pt->buf ) { /* have to skip some bytes */
- if( iobuf_in_block_mode(pt->buf) ) {
+ if( pt->is_partial ) {
while( iobuf_read( pt->buf, NULL, 1<<30 ) != -1 )
;
}