gboolean
msgport_dbus_manager_validate_peer_certificate (MsgPortDbusManager *dbus_manager, const gchar *peer_app_id)
{
- //int res ;
- //pkgmgrinfo_cert_compare_result_type_e compare_result;
+ int res ;
+ pkgmgrinfo_cert_compare_result_type_e compare_result;
gboolean is_valid_cert = FALSE;
/* check if the source application has no certificate info */
/* check if we have cached status */
if (g_hash_table_contains (dbus_manager->priv->peer_certs, peer_app_id))
return ((gboolean)(glong)g_hash_table_lookup (dbus_manager->priv->peer_certs, peer_app_id));
-#if 0
+
if ((res = pkgmgrinfo_pkginfo_compare_app_cert_info (dbus_manager->priv->app_id,
peer_app_id, &compare_result)) != PMINFO_R_OK) {
WARN ("Fail to compare certificates of applications('%s', '%s') : error %d",
is_valid_cert = (compare_result == PMINFO_CERT_COMPARE_MATCH) ;
g_hash_table_insert (dbus_manager->priv->peer_certs, g_strdup (peer_app_id), (gpointer)is_valid_cert);
-#endif
+
return is_valid_cert;
}