summaryrefslogtreecommitdiff
path: root/src/libostree/libostree-devel.sym
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@collabora.com>2020-08-25 09:26:09 +0200
committerFrédéric Danis <frederic.danis@collabora.com>2020-09-14 09:27:19 +0200
commitfb1faf17d6f9cefd349c46f48f7a28f269f07576 (patch)
tree04b4c03a2a143d281bbb0c901ef1f77caf692848 /src/libostree/libostree-devel.sym
parent869dbc037e92fbe2d859e8fda97bc4a287160770 (diff)
downloadostree-fb1faf17d6f9cefd349c46f48f7a28f269f07576.tar.gz
lib/deltas: Check signed delta in execute_offline
Add a new function `ostree_repo_static_delta_execute_offline_with_signature` which takes a signature engine to verify the delta before applying it. The `ostree_repo_static_delta_execute_offline` is just a wrapper to this new function, passing a NULL signature engine. When this function is called without signature engine, but with a sign delta, it will only fails if `sign-verify-deltas` is set to true in repo core options. This commits move signature existence check and delta signature verification to share common parts between existing APIs and the new function. Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Diffstat (limited to 'src/libostree/libostree-devel.sym')
-rw-r--r--src/libostree/libostree-devel.sym1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libostree/libostree-devel.sym b/src/libostree/libostree-devel.sym
index 9a847b92..a15654c1 100644
--- a/src/libostree/libostree-devel.sym
+++ b/src/libostree/libostree-devel.sym
@@ -22,6 +22,7 @@ global:
/* Add symbols here, and uncomment the bits in
* Makefile-libostree.am to enable this too.
*/
+ ostree_repo_static_delta_execute_offline_with_signature;
ostree_repo_static_delta_verify_signature;
} LIBOSTREE_2020.4;