summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-pull-private.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2020-04-17 01:13:51 +0000
committerColin Walters <walters@verbum.org>2020-04-18 13:35:36 +0000
commit1b8fed247cedac3ff8874d2bb017a2c8a6754f31 (patch)
tree6fb28fa0c24dfa7ce16a4bec7c09e79070feeab0 /src/libostree/ostree-repo-pull-private.h
parent12984ddef2d0b9eec923b9a4ea06c9dad870b452 (diff)
downloadostree-1b8fed247cedac3ff8874d2bb017a2c8a6754f31.tar.gz
lib: Move gpg/signapi bits into ostree-repo-pull-verify.c
`ostree-repo-pull.c` is huge; separate some of the GPG/signing verification functions into their own file so they're more easily seen.
Diffstat (limited to 'src/libostree/ostree-repo-pull-private.h')
-rw-r--r--src/libostree/ostree-repo-pull-private.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-pull-private.h b/src/libostree/ostree-repo-pull-private.h
index 0ed0fdff..b9eb2342 100644
--- a/src/libostree/ostree-repo-pull-private.h
+++ b/src/libostree/ostree-repo-pull-private.h
@@ -137,4 +137,32 @@ typedef struct {
GSource *idle_src;
} OtPullData;
+gboolean
+_sign_verify_for_remote (OstreeRepo *repo,
+ const gchar *remote_name,
+ GBytes *signed_data,
+ GVariant *metadata,
+ GError **error);
+
+gboolean
+_signapi_load_public_keys (OstreeSign *sign,
+ OstreeRepo *repo,
+ const gchar *remote_name,
+ GError **error);
+
+gboolean
+_verify_unwritten_commit (OtPullData *pull_data,
+ const char *checksum,
+ GVariant *commit,
+ GVariant *detached_metadata,
+ const OstreeCollectionRef *ref,
+ GCancellable *cancellable,
+ GError **error);
+
+gboolean
+_process_gpg_verify_result (OtPullData *pull_data,
+ const char *checksum,
+ OstreeGpgVerifyResult *result,
+ GError **error);
+
G_END_DECLS