chantra / rpms / rpm

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