1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef COMMON_SECURITY_REGISTRATION_H_
6 #define COMMON_SECURITY_REGISTRATION_H_
8 #include <boost/filesystem/path.hpp>
10 #include <sys/types.h>
14 #include "common/installer_context.h"
16 namespace common_installer {
19 * Adapter interface for external Security module.
21 * Adapter interface for external Security module used for registering
22 * application to security context
24 * \param pkg_id pkdid of given package
25 * \param path path of installed package
26 * \param manifest pointer to manifest structure
28 * \return true if success
30 bool RegisterSecurityContextForApps(const std::string& pkg_id,
31 const boost::filesystem::path& path, manifest_x* manifest);
34 * Adapter interface for external Security module.
36 * Adapter interface for external Security module used for unregistering
37 * application from security context
39 * \param pkg_id pkdid of given package
40 * \param manifest pointer to manifest structure
42 * \return true if success
44 bool UnregisterSecurityContextForApps(const std::string& pkg_id,
45 manifest_x* manifest);
47 } // namespace common_installer
49 #endif // COMMON_SECURITY_REGISTRATION_H_