From 11a3e7e2d37d3574b1785164252f77660c4d5316 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 23 Dec 2013 15:40:57 -0800 Subject: [PATCH] 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. --- gpg-migrate.py | 3 +++ 1 file changed, 3 insertions(+) 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') -- 2.26.2