#
# @file CMakeLists.txt
# @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
#
############################# Check minimum CMake version #####################
SET(TARGET_LIB_CYNARA_ADMIN "cynara-admin")
SET(TARGET_CYNARA_COMMON "cynara-commons")
SET(TARGET_CYNARA_TESTS "cynara-tests")
+SET(TARGET_LIB_CREDS_COMMONS "cynara-creds-commons")
+SET(TARGET_LIB_CREDS_DBUS "cynara-creds-dbus")
+SET(TARGET_LIB_CREDS_SOCKET "cynara-creds-socket")
+SET(TARGET_LIB_SESSION "cynara-session")
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(test)
Source1004: cynara-tests.manifest
Source1005: libcynara-client-commons.manifest
Source1006: libcynara-commons.manifest
+Source1007: libcynara-creds-commons.manifest
+Source1008: libcynara-creds-dbus.manifest
+Source1009: libcynara-creds-socket.manifest
+Source1010: libcynara-session.manifest
Requires: default-ac-domains
Requires(pre): pwdutils
Requires(post): smack
%endif
%description
-service, client libraries (libcynara-client, libcynara-admin)
+service, client libraries (libcynara-client, libcynara-admin),
+helper libraries (libcynara-session, libcynara-creds-common, libcynara-creds-dbus,
+libcynara-creds-socket)
and tests (cynara-tests)
#######################################################
cynara common library (devel) with common functionalities
#######################################################
+%package -n libcynara-creds-commons
+Summary: Base library for cynara credentials helpers
+
+%description -n libcynara-creds-commons
+Base library for cynara credentials helpers
+
+%package -n libcynara-creds-commons-devel
+Summary: Base library for cynara credentials helpers (devel)
+Requires: libcynara-creds-commons = %{version}-%{release}
+Requires: libcynara-client-commons-devel = %{version}-%{release}
+
+%description -n libcynara-creds-commons-devel
+Base library for cynara credentials helpers (devel)
+
+#######################################################
+%package -n libcynara-creds-dbus
+Summary: Cynara credentials helpers library for dbus clients
+BuildRequires: pkgconfig(dbus-1)
+Requires: dbus
+
+%description -n libcynara-creds-dbus
+Cynara credentials helpers library for dbus clients
+
+%package -n libcynara-creds-dbus-devel
+Summary: Cynara credentials helpers library for dbus clients (devel)
+Requires: libcynara-creds-dbus = %{version}-%{release}
+
+%description -n libcynara-creds-dbus-devel
+Cynara credentials helpers library for dbus clients (devel)
+
+#######################################################
+%package -n libcynara-creds-socket
+Summary: Cynara credentials helpers library for socket clients
+
+%description -n libcynara-creds-socket
+Cynara credentials helpers library for socket clients
+
+%package -n libcynara-creds-socket-devel
+Summary: Cynara credentials helpers library for socket clients (devel)
+Requires: libcynara-creds-socket = %{version}-%{release}
+
+%description -n libcynara-creds-socket-devel
+Cynara credentials helpers library for socket clients (devel)
+
+#######################################################
+%package -n libcynara-session
+Summary: Cynara helper client session string creation library
+
+%description -n libcynara-session
+Cynara helper client session string creation library
+
+%package -n libcynara-session-devel
+Summary: Cynara helper client session string creation library (devel)
+Requires: libcynara-session = %{version}-%{release}
+
+%description -n libcynara-session-devel
+Cynara helper client session string creation library (devel)
+
+#######################################################
%package -n cynara-tests
Summary: Cynara - cynara test binaries
BuildRequires: pkgconfig(gmock)
cp -a %{SOURCE1004} .
cp -a %{SOURCE1005} .
cp -a %{SOURCE1006} .
+cp -a %{SOURCE1007} .
+cp -a %{SOURCE1008} .
+cp -a %{SOURCE1009} .
+cp -a %{SOURCE1010} .
%build
%if 0%{?sec_build_binary_debug_enable}
%postun -n libcynara-commons-devel -p /sbin/ldconfig
+%post -n libcynara-creds-commons -p /sbin/ldconfig
+
+%postun -n libcynara-creds-commons -p /sbin/ldconfig
+
+%post -n libcynara-creds-commons-devel -p /sbin/ldconfig
+
+%postun -n libcynara-creds-commons-devel -p /sbin/ldconfig
+
+%post -n libcynara-creds-dbus -p /sbin/ldconfig
+
+%postun -n libcynara-creds-dbus -p /sbin/ldconfig
+
+%post -n libcynara-creds-dbus-devel -p /sbin/ldconfig
+
+%postun -n libcynara-creds-dbus-devel -p /sbin/ldconfig
+
+%post -n libcynara-creds-socket -p /sbin/ldconfig
+
+%postun -n libcynara-creds-socket -p /sbin/ldconfig
+
+%post -n libcynara-creds-socket-devel -p /sbin/ldconfig
+
+%postun -n libcynara-creds-socket-devel -p /sbin/ldconfig
+
+%post -n libcynara-session -p /sbin/ldconfig
+
+%postun -n libcynara-session -p /sbin/ldconfig
+
+%post -n libcynara-session-devel -p /sbin/ldconfig
+
+%postun -n libcynara-session-devel -p /sbin/ldconfig
+
%files -n cynara
%manifest cynara.manifest
%license LICENSE
%files -n cynara-tests
%manifest cynara-tests.manifest
%attr(755,root,root) /usr/bin/cynara-tests
+
+%files -n libcynara-creds-commons
+%manifest libcynara-creds-commons.manifest
+%license LICENSE
+%{_libdir}/libcynara-creds-commons.so.*
+
+%files -n libcynara-creds-commons-devel
+%{_includedir}/cynara/cynara-creds-commons.h
+%{_libdir}/libcynara-creds-commons.so
+%{_libdir}/pkgconfig/cynara-creds-commons.pc
+
+%files -n libcynara-creds-dbus
+%manifest libcynara-creds-dbus.manifest
+%license LICENSE
+%{_libdir}/libcynara-creds-dbus.so.*
+
+%files -n libcynara-creds-dbus-devel
+%{_includedir}/cynara/cynara-creds-dbus.h
+%{_libdir}/libcynara-creds-dbus.so
+%{_libdir}/pkgconfig/cynara-creds-dbus.pc
+
+%files -n libcynara-creds-socket
+%manifest libcynara-creds-socket.manifest
+%license LICENSE
+%{_libdir}/libcynara-creds-socket.so.*
+
+%files -n libcynara-creds-socket-devel
+%{_includedir}/cynara/cynara-creds-socket.h
+%{_libdir}/libcynara-creds-socket.so
+%{_libdir}/pkgconfig/cynara-creds-socket.pc
+
+%files -n libcynara-session
+%manifest libcynara-session.manifest
+%license LICENSE
+%{_libdir}/libcynara-session.so.*
+
+%files -n libcynara-session-devel
+%{_includedir}/cynara/cynara-session.h
+%{_libdir}/libcynara-session.so
+%{_libdir}/pkgconfig/cynara-session.pc
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_" />
+ </request>
+</manifest>
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_" />
+ </request>
+</manifest>
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_" />
+ </request>
+</manifest>
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_" />
+ </request>
+</manifest>
#
# @file CMakeLists.txt
# @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
#
ADD_SUBDIRECTORY(cynara-client)
ADD_SUBDIRECTORY(cynara-admin)
+ADD_SUBDIRECTORY(cynara-creds-commons)
+ADD_SUBDIRECTORY(cynara-creds-dbus)
+ADD_SUBDIRECTORY(cynara-creds-socket)
+ADD_SUBDIRECTORY(cynara-session)
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+#
+
+CONFIGURE_FILE(cynara-creds-commons.pc.in cynara-creds-commons.pc @ONLY)
+
+INSTALL(FILES
+ ${CMAKE_BINARY_DIR}/pkgconfig/cynara-creds-commons/cynara-creds-commons.pc
+ DESTINATION
+ ${LIB_INSTALL_DIR}/pkgconfig
+ )
--- /dev/null
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@LIB_INSTALL_DIR@
+includedir=${prefix}/include
+
+Name: cynara-creds-commons
+Description: Base package for all cynara-creds packages
+Version: 0.0.1
+Requires:
+Libs: -L${libdir} -lcynara-creds-commons
+Cflags: -I${includedir}/cynara
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+#
+
+CONFIGURE_FILE(cynara-creds-dbus.pc.in cynara-creds-dbus.pc @ONLY)
+
+INSTALL(FILES
+ ${CMAKE_BINARY_DIR}/pkgconfig/cynara-creds-dbus/cynara-creds-dbus.pc
+ DESTINATION
+ ${LIB_INSTALL_DIR}/pkgconfig
+ )
--- /dev/null
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@LIB_INSTALL_DIR@
+includedir=${prefix}/include
+
+Name: cynara-creds-dbus
+Description: cynara-creds package for dbus clients
+Version: 0.0.1
+Requires: dbus-1
+Libs: -L${libdir} -lcynara-creds-dbus
+Cflags: -I${includedir}/cynara
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+#
+
+CONFIGURE_FILE(cynara-creds-socket.pc.in cynara-creds-socket.pc @ONLY)
+
+INSTALL(FILES
+ ${CMAKE_BINARY_DIR}/pkgconfig/cynara-creds-socket/cynara-creds-socket.pc
+ DESTINATION
+ ${LIB_INSTALL_DIR}/pkgconfig
+ )
--- /dev/null
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@LIB_INSTALL_DIR@
+includedir=${prefix}/include
+
+Name: cynara-creds-socket
+Description: cynara-creds package for socket clients
+Version: 0.0.1
+Requires:
+Libs: -L${libdir} -lcynara-creds-socket
+Cflags: -I${includedir}/cynara
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+#
+
+CONFIGURE_FILE(cynara-session.pc.in cynara-session.pc @ONLY)
+
+INSTALL(FILES
+ ${CMAKE_BINARY_DIR}/pkgconfig/cynara-session/cynara-session.pc
+ DESTINATION
+ ${LIB_INSTALL_DIR}/pkgconfig
+ )
--- /dev/null
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@LIB_INSTALL_DIR@
+includedir=${prefix}/include
+
+Name: cynara-session
+Description: cynara-session package
+Version: 0.0.1
+Requires:
+Libs: -L${libdir} -lcynara-session
+Cflags: -I${includedir}/cynara
ADD_SUBDIRECTORY(client-common)
ADD_SUBDIRECTORY(admin)
ADD_SUBDIRECTORY(service)
+ADD_SUBDIRECTORY(helpers/creds-commons)
+ADD_SUBDIRECTORY(helpers/creds-dbus)
+ADD_SUBDIRECTORY(helpers/creds-socket)
+ADD_SUBDIRECTORY(helpers/session)
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+# @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+#
+
+SET(LIB_CREDS_COMMONS_VERSION_MAJOR 0)
+SET(LIB_CREDS_COMMONS_VERSION ${LIB_CREDS_COMMONS_VERSION_MAJOR}.0.1)
+
+SET(LIB_CREDS_COMMONS_PATH ${CYNARA_PATH}/helpers/creds-commons)
+
+SET(LIB_CREDS_COMMONS_SOURCES
+ ${LIB_CREDS_COMMONS_PATH}/creds-commons.cpp
+ )
+
+INCLUDE_DIRECTORIES(
+ ${CYNARA_PATH}/include
+ ${LIB_CREDS_COMMONS_PATH}
+ )
+
+ADD_LIBRARY(${TARGET_LIB_CREDS_COMMONS} SHARED ${LIB_CREDS_COMMONS_SOURCES})
+
+SET_TARGET_PROPERTIES(
+ ${TARGET_LIB_CREDS_COMMONS}
+ PROPERTIES
+ SOVERSION ${LIB_CREDS_COMMONS_VERSION_MAJOR}
+ VERSION ${LIB_CREDS_COMMONS_VERSION}
+ )
+
+INSTALL(TARGETS ${TARGET_LIB_CREDS_COMMONS} DESTINATION ${LIB_INSTALL_DIR})
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file creds-commons.cpp
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief Implementation of external libcynara-creds-commons API
+ */
+
+// Empty initial file
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+# @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+#
+
+SET(LIB_CREDS_DBUS_VERSION_MAJOR 0)
+SET(LIB_CREDS_DBUS_VERSION ${LIB_CREDS_DBUS_VERSION_MAJOR}.0.1)
+
+SET(LIB_CREDS_DBUS_PATH ${CYNARA_PATH}/helpers/creds-dbus)
+
+SET(LIB_CREDS_DBUS_SOURCES
+ ${LIB_CREDS_DBUS_PATH}/creds-dbus.cpp
+ )
+
+PKG_CHECK_MODULES(LIB_CREDS_DBUS_DEP
+ REQUIRED
+ dbus-1
+ )
+
+INCLUDE_DIRECTORIES(
+ ${CYNARA_PATH}/include
+ ${LIB_CREDS_DBUS_PATH}
+ ${LIB_CREDS_DBUS_DEP_INCLUDE_DIRS}
+ )
+
+ADD_LIBRARY(${TARGET_LIB_CREDS_DBUS} SHARED ${LIB_CREDS_DBUS_SOURCES})
+
+SET_TARGET_PROPERTIES(
+ ${TARGET_LIB_CREDS_DBUS}
+ PROPERTIES
+ SOVERSION ${LIB_CREDS_DBUS_VERSION_MAJOR}
+ VERSION ${LIB_CREDS_DBUS_VERSION}
+ )
+
+TARGET_LINK_LIBRARIES(${TARGET_LIB_CREDS_DBUS}
+ ${LIB_CREDS_DBUS_DEP_LIBRARIES}
+ )
+
+INSTALL(TARGETS ${TARGET_LIB_CREDS_DBUS} DESTINATION ${LIB_INSTALL_DIR})
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file creds-dbus.cpp
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief Implementation of external libcynara-creds-dbus API
+ */
+
+// Empty initial file
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+# @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+#
+
+SET(LIB_CREDS_SOCKET_VERSION_MAJOR 0)
+SET(LIB_CREDS_SOCKET_VERSION ${LIB_CREDS_SOCKET_VERSION_MAJOR}.0.1)
+
+SET(LIB_CREDS_SOCKET_PATH ${CYNARA_PATH}/helpers/creds-socket)
+
+SET(LIB_CREDS_SOCKET_SOURCES
+ ${LIB_CREDS_SOCKET_PATH}/creds-socket.cpp
+ )
+
+INCLUDE_DIRECTORIES(
+ ${CYNARA_PATH}/include
+ ${LIB_CREDS_SOCKET_PATH}
+ )
+
+ADD_LIBRARY(${TARGET_LIB_CREDS_SOCKET} SHARED ${LIB_CREDS_SOCKET_SOURCES})
+
+SET_TARGET_PROPERTIES(
+ ${TARGET_LIB_CREDS_SOCKET}
+ PROPERTIES
+ SOVERSION ${LIB_CREDS_SOCKET_VERSION_MAJOR}
+ VERSION ${LIB_CREDS_SOCKET_VERSION}
+ )
+
+INSTALL(TARGETS ${TARGET_LIB_CREDS_SOCKET} DESTINATION ${LIB_INSTALL_DIR})
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file creds-socket.cpp
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief Implementation of external libcynara-creds-socket API
+ */
+
+// Empty initial file
--- /dev/null
+# Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Aleksander Zdyb <a.zdyb@partner.samsung.com>
+# @author Radoslaw Bartosiak <r.bartosiak@samsung.com>
+# @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+#
+
+SET(LIB_SESSION_VERSION_MAJOR 0)
+SET(LIB_SESSION_VERSION ${LIB_SESSION_VERSION_MAJOR}.0.1)
+
+SET(LIB_SESSION_PATH ${CYNARA_PATH}/helpers/session)
+
+SET(LIB_SESSION_SOURCES
+ ${LIB_SESSION_PATH}/session.cpp
+ )
+
+INCLUDE_DIRECTORIES(
+ ${CYNARA_PATH}/include
+ ${LIB_SESSION_PATH}
+ )
+
+ADD_LIBRARY(${TARGET_LIB_SESSION} SHARED ${LIB_SESSION_SOURCES})
+
+SET_TARGET_PROPERTIES(
+ ${TARGET_LIB_SESSION}
+ PROPERTIES
+ SOVERSION ${LIB_SESSION_VERSION_MAJOR}
+ VERSION ${LIB_SESSION_VERSION}
+ )
+
+INSTALL(TARGETS ${TARGET_LIB_SESSION} DESTINATION ${LIB_INSTALL_DIR})
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file session.cpp
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief Implementation of external libcynara-session API
+ */
+
+// Empty initial file
#
INSTALL(FILES
- ${CYNARA_PATH}/include/cynara-client.h
- ${CYNARA_PATH}/include/cynara-client-error.h
- DESTINATION ${INCLUDE_INSTALL_DIR}/cynara
- )
-
-INSTALL(FILES
${CYNARA_PATH}/include/cynara-admin.h
${CYNARA_PATH}/include/cynara-admin-error.h
+ ${CYNARA_PATH}/include/cynara-client.h
+ ${CYNARA_PATH}/include/cynara-client-error.h
+ ${CYNARA_PATH}/include/cynara-creds-commons.h
+ ${CYNARA_PATH}/include/cynara-creds-dbus.h
+ ${CYNARA_PATH}/include/cynara-creds-socket.h
+ ${CYNARA_PATH}/include/cynara-session.h
DESTINATION ${INCLUDE_INSTALL_DIR}/cynara
)
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file cynara-creds-commons.h
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief This file contains common APIs for Cynara credentials helper.
+ */
+
+
+#ifndef CYNARA_CREDS_COMMONS_H
+#define CYNARA_CREDS_COMMONS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* empty initial file */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CYNARA_CREDS_COMMONS_H */
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file cynara-creds-dbus.h
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief This file contains Cynara credentials helper APIs for dbus clients.
+ */
+
+
+#ifndef CYNARA_CREDS_DBUS_H
+#define CYNARA_CREDS_DBUS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* empty initial file */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CYNARA_CREDS_DBUS_H */
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file cynara-creds-socket.h
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief This file contains Cynara credentials helper APIs for socket clients.
+ */
+
+
+#ifndef CYNARA_CREDS_SOCKET_H
+#define CYNARA_CREDS_SOCKET_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* empty initial file */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CYNARA_CREDS_SOCKET_H */
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/*
+ * @file cynara-session.h
+ * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+ * @version 1.0
+ * @brief This file contains Cynara session helper APIs.
+ */
+
+
+#ifndef CYNARA_SESSION_H
+#define CYNARA_SESSION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* empty initial file */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CYNARA_SESSION_H */