From b49c2b3da350ced8a723ac44819d69b57ce537a6 Mon Sep 17 00:00:00 2001
From: jake <jake@jakes-mail.top>
Date: Mon, 11 Nov 2024 13:38:59 -0500
Subject: [PATCH] signature class field is represented differently between gpg
 versions

---
 keyserver | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/keyserver b/keyserver
index a94ff54..e32518e 100755
--- a/keyserver
+++ b/keyserver
@@ -385,7 +385,13 @@ sub add ($c) {
 			push @these_uids, $userid;
 			$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;
 			$these_uids[-1] .= "$magic_delimiter$create:$expire:$flag";
 		}