@@ -2408,28 +2408,20 @@ runroot rpmsign --addsign --rpmv6 /tmp/hello-2.0-1.x86_64.rpm
24082408[],
24092409[])
24102410
2411- # The test reflects what I *assume* this should return as v6 key ids are the
2412- # first 64 bits of the fingerprint, but this is very cursory skim through
2413- # rfc-9580 and might not be right. What we're currently getting as the
2414- # signer key is the last 64bit as with v4 keys, and when this doesn't match
2415- # with what we get from the subkey ids, rpm does not find the key.
2416- # In addition, rpm-sequoia 1.8 doesn't handle the v6 trailer so it's BAD
2417- # instead of NOKEY.
2418- # Header OpenPGP V6 Ed25519/SHA512 signature, key ID 0e00df3ed2d7b65e: BAD
2419- #RPMTEST_CHECK([
2420- #runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
2421- #],
2422- #[0],
2423- #[/tmp/hello-2.0-1.x86_64.rpm:
2424- # Header OpenPGP V6 Ed25519/SHA512 signature, key ID 6118abe481c41473: NOKEY
2425- # Header OpenPGP RSA signature: NOTFOUND
2426- # Header OpenPGP DSA signature: NOTFOUND
2427- # Header SHA256 digest: OK
2428- # Payload SHA256 digest: OK
2429- # Legacy OpenPGP RSA signature: NOTFOUND
2430- # Legacy OpenPGP DSA signature: NOTFOUND
2431- #],
2432- #[])
2411+ RPMTEST_CHECK([
2412+ runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
2413+ ],
2414+ [1],
2415+ [/tmp/hello-2.0-1.x86_64.rpm:
2416+ Header OpenPGP V6 Ed25519/SHA512 signature, key ID 6118abe481c41473: NOKEY
2417+ Header OpenPGP RSA signature: NOTFOUND
2418+ Header OpenPGP DSA signature: NOTFOUND
2419+ Header SHA256 digest: OK
2420+ Payload SHA256 digest: OK
2421+ Legacy OpenPGP RSA signature: NOTFOUND
2422+ Legacy OpenPGP DSA signature: NOTFOUND
2423+ ],
2424+ [])
24332425
24342426RPMTEST_CHECK([
24352427runroot rpmkeys --import /data/keys/rpm.org-v6-ed25519-test.asc
@@ -2446,21 +2438,16 @@ runroot rpmkeys --list 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03
24462438],
24472439[])
24482440
2449- # This is currently failing, see the NOKEY case above
2450- #RPMTEST_CHECK([
2451- #runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
2452- #],
2453- #[0],
2454- #[/tmp/hello-2.0-1.x86_64.rpm:
2455- # Header OpenPGP V6 Ed25519/SHA512 signature, key fingerprint 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03e0bb9d3 OK
2456- # Header OpenPGP RSA signature: NOTFOUND
2457- # Header OpenPGP DSA signature: NOTFOUND
2458- # Header SHA256 digest: OK
2459- # Payload SHA256 digest: OK
2460- # Legacy OpenPGP RSA signature: NOTFOUND
2461- # Legacy OpenPGP DSA signature: NOTFOUND
2462- #],
2463- #[])
2441+ RPMTEST_CHECK([
2442+ runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
2443+ ],
2444+ [0],
2445+ [/tmp/hello-2.0-1.x86_64.rpm:
2446+ Header OpenPGP V6 Ed25519/SHA512 signature, key fingerprint: 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03e0bb9d3: OK
2447+ Header SHA256 digest: OK
2448+ Payload SHA256 digest: OK
2449+ ],
2450+ [])
24642451
24652452RPMTEST_CHECK([
24662453runroot rpmkeys --delete 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03e0bb9d3
0 commit comments