diff options
author | Colin Walters <walters@verbum.org> | 2020-06-17 00:22:49 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2020-06-17 00:33:47 +0000 |
commit | 36258036ae1388c728eec0237b283e225f64a7b1 (patch) | |
tree | 1616ed7bc9d2e7ae0b946c01e894c0b5e39e65c2 /src/libostree/ostree-repo-pull-private.h | |
parent | b2dde24f00699822c27b4ab453a4340ddc3c2245 (diff) | |
download | ostree-36258036ae1388c728eec0237b283e225f64a7b1.tar.gz |
signapi: Change API to also return a success message
This is the dual of https://github.com/ostreedev/ostree/pull/2129/commits/1f3c8c5b3de978f6e069c24938967f823cce7ee8
where we output more detail when signapi fails to validate.
Extend the API to return a string for success, which we output
to stdout.
This will help the test suite *and* end users validate that the expected
thing is happening.
In order to make this cleaner, split the "verified commit" set
in the pull code into GPG and signapi verified sets, and have
the signapi verified set contain the verification string.
We're not doing anything with the verification string in the
pull code *yet* but I plan to add something like
`ostree pull --verbose` which would finally print this.
Diffstat (limited to 'src/libostree/ostree-repo-pull-private.h')
-rw-r--r-- | src/libostree/ostree-repo-pull-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-pull-private.h b/src/libostree/ostree-repo-pull-private.h index fd17baee..689118be 100644 --- a/src/libostree/ostree-repo-pull-private.h +++ b/src/libostree/ostree-repo-pull-private.h @@ -77,6 +77,7 @@ typedef struct { GHashTable *summary_deltas_checksums; GHashTable *ref_original_commits; /* Maps checksum to commit, used by timestamp checks */ GHashTable *verified_commits; /* Set<checksum> of commits that have been verified */ + GHashTable *signapi_verified_commits; /* Map<checksum,verification> of commits that have been signapi verified */ GHashTable *ref_keyring_map; /* Maps OstreeCollectionRef to keyring remote name */ GPtrArray *static_delta_superblocks; GHashTable *expected_commit_sizes; /* Maps commit checksum to known size */ @@ -149,6 +150,7 @@ gboolean _sign_verify_for_remote (GPtrArray *signers, GBytes *signed_data, GVariant *metadata, + char **out_success_message, GError **error); gboolean |