${CMAKE_SOURCE_DIR}/src
)
-SET(${this_target}_requires "dlog bundle glib-2.0 gio-2.0 aul openssl capi-base-common pkgmgr-info gio-unix-2.0")
+SET(${this_target}_requires "dlog bundle glib-2.0 gio-2.0 aul capi-base-common pkgmgr-info gio-unix-2.0")
INCLUDE(FindPkgConfig)
pkg_check_modules(${this_target} REQUIRED ${${this_target}_requires})
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(pkgmgr-info)
-BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(gmock)
Requires(post): /sbin/ldconfig
std::string FdBroker::GetInterfaceName(const std::string& target_appid,
const std::string& port_name) {
- std::string interface_name = RPC_PORT_INTERFACE_PREFIX;
+ std::string interface_name = target_appid + "_" + port_name;
+ char c_buf[interface_name.length() * 2 + 1] = {0};
+ char* temp = &c_buf[0];
- interface_name += target_appid;
- interface_name += "_" + port_name;
+ for (int index = 0; index < interface_name.length(); index++) {
+ snprintf(temp, 3, "%02x", interface_name[index]);
+ temp += 2;
+ }
- return interface_name;
+ return RPC_PORT_INTERFACE_PREFIX + std::string(c_buf);
}
int FdBroker::Send(const std::string& target_appid,