From: Junghyun Yeon Date: Thu, 29 Jun 2017 05:14:56 +0000 (+0900) Subject: Add codes for trust anchor X-Git-Tag: accepted/tizen/unified/20170807.150539~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F136317%2F16;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git Add codes for trust anchor - Add trust-anchor related variables in manifest structure - Add realted info in xsd files Related changes: [tpk-manifest-handlers] : https://review.tizen.org/gerrit/136315 [app-installers] : https://review.tizen.org/gerrit/136316 [wgt-backend] : https://review.tizen.org/gerrit/136858 [wgt-manifest-handlers] : https://review.tizen.org/gerrit/136866 [tpk-backend] : https://review.tizen.org/gerrit/137370 Change-Id: Ia5ca75479095c573c89242df3cee9c92496232c1 Signed-off-by: Junghyun Yeon --- diff --git a/include/pkgmgrinfo_basic.h b/include/pkgmgrinfo_basic.h index 5fa1918..d1e23c8 100644 --- a/include/pkgmgrinfo_basic.h +++ b/include/pkgmgrinfo_basic.h @@ -208,6 +208,8 @@ typedef struct package_x { char *zip_mount_file; /*no xml part*/ char *backend_installer; /**< package backend installer, attr*/ char *external_path; /**< external storage path if exists, no xml part*/ + char *pkg_certs_dir; /**< pkg certificate directory, attr*/ + char *use_system_certs; /**< use system certificates, attr*/ GList *icon; /**< package icon, element*/ GList *label; /**< package label, element*/ GList *author; /**< package author, element*/ diff --git a/parser/manifest.xsd.in b/parser/manifest.xsd.in index a2bda79..c9b356f 100644 --- a/parser/manifest.xsd.in +++ b/parser/manifest.xsd.in @@ -26,6 +26,7 @@ + @@ -220,6 +221,12 @@ + + + + + + diff --git a/parser/manifest.xsd.ref b/parser/manifest.xsd.ref index a5eaa8e..815571c 100644 --- a/parser/manifest.xsd.ref +++ b/parser/manifest.xsd.ref @@ -26,6 +26,7 @@ + @@ -260,6 +261,12 @@ + + + + + + diff --git a/src/pkgmgrinfo_basic.c b/src/pkgmgrinfo_basic.c index 7724e87..9e94561 100644 --- a/src/pkgmgrinfo_basic.c +++ b/src/pkgmgrinfo_basic.c @@ -451,6 +451,10 @@ API void pkgmgrinfo_basic_free_package(package_x *package) free((void *)package->external_path); if (package->support_mode) free((void *)package->support_mode); + if (package->pkg_certs_dir) + free((void *)package->pkg_certs_dir); + if (package->use_system_certs) + free((void *)package->use_system_certs); /*Free Icon*/ g_list_free_full(package->icon, __ps_free_icon);