signature class field is represented differently between gpg versions

This commit is contained in:
jake 2024-11-11 13:38:59 -05:00
parent fe27cb9d14
commit b49c2b3da3

View file

@ -385,7 +385,13 @@ sub add ($c) {
push @these_uids, $userid; push @these_uids, $userid;
$need_sig = 1; $need_sig = 1;
} }
if ($need_sig and $record eq 'sig' and $signatureclass eq '[selfsig]') { if ($need_sig and $record eq 'sig' and (
$signatureclass eq '[selfsig]'
or $signatureclass eq 'x13'
or $signatureclass eq 'x12'
or $signatureclass eq 'x11'
or $signatureclass eq 'x10'))
{
$need_sig = 0; $need_sig = 0;
$these_uids[-1] .= "$magic_delimiter$create:$expire:$flag"; $these_uids[-1] .= "$magic_delimiter$create:$expire:$flag";
} }