diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-10-27 09:27:51 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2021-11-10 12:31:23 +0200 |
commit | c73118c3a3b4b8706b90d188d918e3752df2a736 (patch) | |
tree | 9fac89565c083110980c7a1a7afe20af23d63856 /rpmio/rpmpgp.c | |
parent | e656016e327be563761d9d49931dc41edafa2900 (diff) | |
download | rpm-c73118c3a3b4b8706b90d188d918e3752df2a736.tar.gz |
Fix signature subpacket type handling
Mask out the critical bit before switching over the subpacket type.
Diffstat (limited to 'rpmio/rpmpgp.c')
-rw-r--r-- | rpmio/rpmpgp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index 36721fffa..861f6704c 100644 --- a/rpmio/rpmpgp.c +++ b/rpmio/rpmpgp.c @@ -456,7 +456,7 @@ static int pgpPrtSubType(const uint8_t *h, size_t hlen, pgpSigType sigtype, if (p[0] & PGPSUBTYPE_CRITICAL) if (_print) fprintf(stderr, " *CRITICAL*"); - switch (*p) { + switch (*p & ~PGPSUBTYPE_CRITICAL) { case PGPSUBTYPE_PREFER_SYMKEY: /* preferred symmetric algorithms */ for (i = 1; i < plen; i++) pgpPrtVal(" ", pgpSymkeyTbl, p[i]); |