From: W. Trevor King Date: Mon, 23 Dec 2013 23:40:57 +0000 (-0800) Subject: Add type and raw data to embedded signature subpackets X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11a3e7e2d37d3574b1785164252f77660c4d5316;p=gpg-migrate.git Add type and raw data to embedded signature subpackets Reduce the differences between embedded and regular signature packets. Also add an 'embedded' key (set to True) for situations where we *do* want to distinguish between embedded and regular packets. --- diff --git a/gpg-migrate.py b/gpg-migrate.py index f4651e3..1d139a0 100755 --- a/gpg-migrate.py +++ b/gpg-migrate.py @@ -813,7 +813,10 @@ class PGPPacket (dict): def _parse_embedded_signature_signature_subpacket(self, data, subpacket): subpacket['embedded'] = PGPPacket(key=self.key) + subpacket['embedded']['type'] = 'signature packet' + subpacket['embedded']['embedded'] = True subpacket['embedded']._parse_signature_packet(data=data) + subpacket['embedded']['raw'] = data def _parse_user_id_packet(self, data): self['user'] = str(data, 'utf-8')