Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1189335
| From | Guillem Jover <guillem@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.maint.dpkg |
| Subject | Bug#1059150: No longer works with signing subkeys |
| Date | 2024-03-07 04:30 +0100 |
| Message-ID | <IfcCd-eWkb-5@gated-at.bofh.it> (permalink) |
| References | <HN6PT-eTbx-17@gated-at.bofh.it> <HN6PT-eTbx-17@gated-at.bofh.it> <HNdRo-eXGw-9@gated-at.bofh.it> <HN6PT-eTbx-17@gated-at.bofh.it> <HNdRo-eXGw-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
Hi!
On Wed, 2023-12-20 at 23:59:31 +0100, Guillem Jover wrote:
> On Wed, 2023-12-20 at 15:30:24 +0000, Steve McIntyre wrote:
> > diff --git a/src/openpgp-gpg.c b/src/openpgp-gpg.c
> > index 4c29b7f..97ec3a4 100644
> > --- a/src/openpgp-gpg.c
> > +++ b/src/openpgp-gpg.c
> > @@ -241,6 +242,7 @@ gpg_getKeyID(const char *keyring, const char *match_id)
> > continue;
> > if (strcmp(uid, match_id) != 0) {
> > free(uid);
> > + state = KEYID_SUB;
> > continue;
> > }
> > free(uid);
>
> I think the problem with this is that if the first uid does not match,
> then it will then switch to looking for a new fingerprint line, which
> might then omit some valid uids.
>
> I've prepared a change based on this at:
>
> https://git.hadrons.org/cgit/debian/dpkg/debsig-verify.git/log/?h=pu/openpgp-subkey
>
> With the assumption that one would define the policy and keyrings
> paths based on the subkey fingerprint and not the primary public
> certificate fingerprint, because otherwise some of the other matches
> cannot easily match, such as uid-based ones. But wanted to check with
> you whether that's the case before merging. Otherwise I can try to see
> how to support all the various cases.
I assume you have had no time to look into this, but I'd like to make
sure the above branch fixes your issue before merging, and potentially
preparing a backport for stable. :)
Thanks,
Guillem
Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread
Bug#1059150: No longer works with signing subkeys Guillem Jover <guillem@debian.org> - 2024-03-07 04:30 +0100
csiph-web