summaryrefslogtreecommitdiff
path: root/src/apk_context.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-10-09 13:40:14 +0300
committerTimo Teräs <timo.teras@iki.fi>2020-10-09 16:09:19 +0300
commit705e002bb0ab1a317df73e4efac08ebd25dd4d8c (patch)
tree37b262e1627188df64ea69e74b44df203b85b786 /src/apk_context.h
parenta627ab8eb8387ebf5735cf525ae72bfa159aa39a (diff)
downloadapk-tools-705e002bb0ab1a317df73e4efac08ebd25dd4d8c.tar.gz
apk-tools-705e002bb0ab1a317df73e4efac08ebd25dd4d8c.tar.bz2
apk-tools-705e002bb0ab1a317df73e4efac08ebd25dd4d8c.tar.xz
apk-tools-705e002bb0ab1a317df73e4efac08ebd25dd4d8c.zip
rename adb_trust to apk_trust, and use it as package signature keystore too
Diffstat (limited to 'src/apk_context.h')
-rw-r--r--src/apk_context.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apk_context.h b/src/apk_context.h
index 41cc361..8f7ca5e 100644
--- a/src/apk_context.h
+++ b/src/apk_context.h
@@ -10,6 +10,7 @@
#define APK_CONTEXT_H
#include "apk_print.h"
+#include "apk_trust.h"
#include "apk_io.h"
#include "adb.h"
@@ -65,18 +66,17 @@ struct apk_ctx {
struct apk_string_array *repository_list;
struct apk_string_array *private_keys;
- struct adb_trust trust;
+ struct apk_trust trust;
struct apk_id_cache id_cache;
struct apk_database *db;
- int root_fd, keys_fd;
+ int root_fd;
};
void apk_ctx_init(struct apk_ctx *ac);
void apk_ctx_free(struct apk_ctx *ac);
int apk_ctx_prepare(struct apk_ctx *ac);
-int apk_ctx_fd_keys(struct apk_ctx *ac);
-struct adb_trust *apk_ctx_get_trust(struct apk_ctx *ac);
+struct apk_trust *apk_ctx_get_trust(struct apk_ctx *ac);
struct apk_id_cache *apk_ctx_get_id_cache(struct apk_ctx *ac);
static inline int apk_ctx_fd_root(struct apk_ctx *ac) { return ac->root_fd; }