Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PGPKey.from_file,from_blob: Drop failed filtering of keyid mapping #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dkg
Copy link
Contributor

@dkg dkg commented Jul 11, 2023

This appears to have been introduced in
38a4f9f nearly 9 years ago, but it doesn't look like it ever worked.

It's not clear to me why this index of keys by key ID is returned at all in these functions, but since September 2014 (v0.3.0) the index has always returned the key ID of the primary key anyway.

There are a few things broken in this particular line:

  • the use of ~ if fingerprint.keyid doesn't work for some reason: that won't match anything.
  • and, None gets passed as the second object in the tuple, but the second object should be either True or False, suggesting that t is being misused.

Rather than try to salvage something that i don't understand in the first place, i figure it's better to drop it and acknowledge the status quo.

This appears to have been introduced in
38a4f9f nearly 9 years ago, but it
doesn't look like it ever worked.

It's not clear to me why this index of keys by key ID is returned at
all in these functions, but since September 2014 (v0.3.0) the index
has always returned the key ID of the primary key anyway.

There are a few things broken in this particular line:

 - the use of `~` if `fingerprint.keyid` doesn't work for some reason:
   that won't match anything.

 - and, None gets passed as the second object in the tuple, but the
   second object should be either True or False.

Rather than try to salvage something that i don't understand in the
first place, i figure it's better to drop it and acknowledge the
status quo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant