Stub out PGPPacket.to_bytes with header serialization
authorW. Trevor King <wking@tremily.us>
Sat, 21 Dec 2013 01:44:00 +0000 (17:44 -0800)
committerW. Trevor King <wking@tremily.us>
Mon, 23 Dec 2013 02:32:14 +0000 (18:32 -0800)
commit7298637a81ab87b82579afe34865a92a1cacee09
treec2704b845125c79395cb3dc7377ef8269f31de25
parentd92bd02f5a0655e2cb017486bda549a65f61896e
Stub out PGPPacket.to_bytes with header serialization

Also setup a body serialization framework along the lines of the
existing packet-parsing framework in PGPPacket.from_bytes.

The header serialization in _serialize_header is just the inverse of
the parsing in _parse_header.  See the _parse_header commit for
references to RFC 4880.
gpg-migrate.py