- Dec 09, 2021
-
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
- Dec 08, 2021
-
-
Levente Polyak authored
De-duplicate not needed certifications by cleaning the keyring after import to remove old files when processing revocations. This basically adds the functionality compared to import-clean.
-
- Nov 30, 2021
-
-
Levente Polyak authored
Declare the whole keyring data as well as the code as input dependency for the build target. This way we can properly depend on the build target for installation without forcing rebuilding on every invocation. A rebuild will be triggered if either the keyring or the source code creating the build output changes. The directories are added to the source dependencies on purpose to guarantee that changes like deleted files will result in a rebuild. The mtime of the build directory is force updated on every run to allow make to track the output artifacts mtime compared against the dependencies.
-
Levente Polyak authored
Add a postfix hash of the raw uid data to the filenames to avoid collisions with the simplified uid.
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Makefile: Fail coverage report below 100% test coverage.
-
libkeyringctl/keyring.py: Simplify `convert_certificate()` by splitting out the conversion of signature packets to `convert_signature_packet()` and the persistence of packet material to `persist_key_material()`. Add `convert_pubkey_signature_packet()`, `convert_uid_signature_packet()` and `convert_subkey_signature_packet()` to deal with the conversion of public key signatures, UID signatures and subkey signatures (respectively). tests/test_keyring.py: Add tests for `convert_certificate()`, `convert_signature_packet()`, `convert_{pubkey,uid,subkey}_signature_packet()` and `persist_subkey_revocations()`.
-
tests/test_keyring.py: Add tests for `list_keyring()` and `inspect_keyring()`.
-
libkeyringctl/keyring.py: Change `get_packets_from_path()` to use full conditional statements which is easier to cover in tests. tests/test_keyring.py: Add simple tests for `get_packets_from_path()`, `get_packets_from_listing()`, `export()` and `build()`.
-
Levente Polyak authored
-
Levente Polyak authored
-
tests/test_keyring.py: Add basic tests for `convert()`, `export_ownertrust()` and `export_revoked()`.
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
-
Levente Polyak authored
This effectively requires en_US.UTF-8 to be an available lang, which is a relative fair requirement and mandatory to set for hokey.
-
Levente Polyak authored
-
Levente Polyak authored
-
tests/test_sequoia.py: Add unit test for libkeyringctl.sequoia.packet_kinds.
-
Levente Polyak authored
-
Levente Polyak authored
-
tests/test_keyring.py: Add tests for `is_pgp_fingerprint()`, `transform_{fingerprint,username}_to_keyring_path()`, `derive_username_from_fingerprint()` and get_fingerprints_from_paths()`.
-
tests/conftest.py: Add `valid_fingerprint()` and `valid_subkey_fingerprint()` fixtures to produce a generic "valid" PGP fingerprint string. Add the `invalid_fingerprint()` fixture to generate a set of "invalid" fingerprint strings.
-
Levente Polyak authored
-
Levente Polyak authored
This moves all verify code to an own module and adds support to check all packet files in the structure for integrity. This is done by parsing assumptions like packet kind, type, issuer and location etc.
-
Levente Polyak authored
This avoids collision between same issuer using key-id and full fingerprint in different versions of a packet, like signature.
-
Levente Polyak authored
CalledProcessError returns bytes for our invocations, the fix that decoded bytes of stdout was purely to make the mocked test happy while breaking the actual usage. Restore the behavior and fix the wrong mocked data.
-
Levente Polyak authored
-
Levente Polyak authored
-