1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-21 14:47:03 +01:00

* build-packet.c (do_user_id): Do not force a header for attribute packets

as they require a new CTB, and we don't support forced headers for new
CTBs yet.
This commit is contained in:
David Shaw 2004-02-15 15:49:05 +00:00
parent a860dd0a51
commit 95b6aacacc
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-02-15 David Shaw <dshaw@jabberwocky.com>
* build-packet.c (do_user_id): Do not force a header for attribute
packets as they require a new CTB, and we don't support forced
headers for new CTBs yet.
2004-02-14 David Shaw <dshaw@jabberwocky.com>
* build-packet.c (write_header2): If a suggested header length is

View File

@ -208,9 +208,7 @@ do_user_id( IOBUF out, int ctb, PKT_user_id *uid )
{
if( uid->attrib_data )
{
/* Shouldn't be necessary to force a header here since attribs
can't be of zero length, but it doesn't hurt either. */
write_header2(out, ctb, uid->attrib_len, 1, 1);
write_header(out, ctb, uid->attrib_len);
if( iobuf_write( out, uid->attrib_data, uid->attrib_len ) )
return G10ERR_WRITE_FILE;
}