alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
813822
commit 23770e1a4f28c56a31fe600cae332c77333b60b6
813822
Author: Demi Marie Obenour <athena@invisiblethingslab.com>
813822
Date:   Sat Mar 6 03:23:41 2021 -0500
813822
813822
    rpmsign: support EdDSA signatures
813822
    
813822
    They were previously rejected
813822
813822
diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
813822
index 28cd91576..d8c84e937 100644
813822
--- a/sign/rpmgensig.c
813822
+++ b/sign/rpmgensig.c
813822
@@ -155,6 +155,7 @@ static rpmtd makeSigTag(Header sigh, int ishdr, uint8_t *pkt, size_t pktlen)
813822
     pubkey_algo = pgpDigParamsAlgo(sigp, PGPVAL_PUBKEYALGO);
813822
     switch (pubkey_algo) {
813822
     case PGPPUBKEYALGO_DSA:
813822
+    case PGPPUBKEYALGO_EDDSA:
813822
 	sigtag = ishdr ? RPMSIGTAG_DSA : RPMSIGTAG_GPG;
813822
 	break;
813822
     case PGPPUBKEYALGO_RSA: