mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
See ChangeLog: Fri Sep 3 10:06:06 CEST 1999 Werner Koch
This commit is contained in:
parent
c7678c6462
commit
39fe1cbfde
13 changed files with 240 additions and 134 deletions
|
@ -168,7 +168,7 @@ block_filter(void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len)
|
|||
break;
|
||||
}
|
||||
else if( a->partial ) {
|
||||
/* These OpenPGP introduced huffman encoded length
|
||||
/* These OpenPGP introduced huffman like encoded length
|
||||
* bytes are really a mess :-( */
|
||||
if( a->first_c ) {
|
||||
c = a->first_c;
|
||||
|
@ -220,6 +220,7 @@ block_filter(void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len)
|
|||
else { /* next partial body length */
|
||||
a->size = 1 << (c & 0x1f);
|
||||
}
|
||||
/* log_debug("partial: ctx=%p c=%02x size=%u\n", a, c, a->size);*/
|
||||
}
|
||||
else { /* the gnupg partial length scheme - much better :-) */
|
||||
c = iobuf_get(chain);
|
||||
|
@ -372,6 +373,7 @@ block_filter(void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len)
|
|||
*/
|
||||
/* construct header */
|
||||
len = a->buflen;
|
||||
/*log_debug("partial: remaining length=%u\n", len );*/
|
||||
if( len < 192 )
|
||||
rc = iobuf_put(chain, len );
|
||||
else if( len < 8384 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue