From fe95918ce103e911f20bd14874907d8fd7e1abaa Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Thu, 27 Nov 2014 20:26:36 +0100 Subject: [PATCH] mhsign: Ignore expired, revoked, invalid, and similar public keys. --- uip/mhsign.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/mhsign.sh b/uip/mhsign.sh index 9a06053..66ab142 100755 --- a/uip/mhsign.sh +++ b/uip/mhsign.sh @@ -91,7 +91,7 @@ lookupkeyring() { if [ $? != 0 ] ; then return 1 fi - echo "$key" | sed -n '/^pub/{p;q;}' | cut -d: -f5 + echo "$key" | sed -n '/^pub:[^idre]:/{p;q;}' | cut -d: -f5 return 0 } -- 1.7.10.4