Add credential and session helper libraries 35/26035/14
authorRadoslaw Bartosiak <r.bartosiak@samsung.com>
Thu, 14 Aug 2014 11:53:16 +0000 (13:53 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 4 Sep 2014 10:28:42 +0000 (12:28 +0200)
This change introduces libraries with following functionalities:
a) simple session id generation
b) user_id and client_id retrieval

This patch adds libraries to build and packaging files.
There is no code yet - libraries are empty.

Change-Id: I4c5c8b75eb5ea4867ba111d936bacbcd41fc5098

29 files changed:
CMakeLists.txt
packaging/cynara.spec
packaging/libcynara-creds-commons.manifest [new file with mode: 0644]
packaging/libcynara-creds-dbus.manifest [new file with mode: 0644]
packaging/libcynara-creds-socket.manifest [new file with mode: 0644]
packaging/libcynara-session.manifest [new file with mode: 0644]
pkgconfig/CMakeLists.txt
pkgconfig/cynara-creds-commons/CMakeLists.txt [new file with mode: 0644]
pkgconfig/cynara-creds-commons/cynara-creds-commons.pc.in [new file with mode: 0644]
pkgconfig/cynara-creds-dbus/CMakeLists.txt [new file with mode: 0644]
pkgconfig/cynara-creds-dbus/cynara-creds-dbus.pc.in [new file with mode: 0644]
pkgconfig/cynara-creds-socket/CMakeLists.txt [new file with mode: 0644]
pkgconfig/cynara-creds-socket/cynara-creds-socket.pc.in [new file with mode: 0644]
pkgconfig/cynara-session/CMakeLists.txt [new file with mode: 0644]
pkgconfig/cynara-session/cynara-session.pc.in [new file with mode: 0644]
src/CMakeLists.txt
src/helpers/creds-commons/CMakeLists.txt [new file with mode: 0644]
src/helpers/creds-commons/creds-commons.cpp [new file with mode: 0644]
src/helpers/creds-dbus/CMakeLists.txt [new file with mode: 0644]
src/helpers/creds-dbus/creds-dbus.cpp [new file with mode: 0644]
src/helpers/creds-socket/CMakeLists.txt [new file with mode: 0644]
src/helpers/creds-socket/creds-socket.cpp [new file with mode: 0644]
src/helpers/session/CMakeLists.txt [new file with mode: 0644]
src/helpers/session/session.cpp [new file with mode: 0644]
src/include/CMakeLists.txt
src/include/cynara-creds-commons.h [new file with mode: 0644]
src/include/cynara-creds-dbus.h [new file with mode: 0644]
src/include/cynara-creds-socket.h [new file with mode: 0644]
src/include/cynara-session.h [new file with mode: 0644]

index ab478f9..c4f80a2 100644 (file)
@@ -14,6 +14,7 @@
 #
 # @file        CMakeLists.txt
 # @author      Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
+# @author      Radoslaw Bartosiak <r.bartosiak@samsung.com>
 #
 
 ############################# Check minimum CMake version #####################
@@ -63,6 +64,10 @@ SET(TARGET_LIB_CYNARA_COMMON "cynara-client-commons")
 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)
index f2a8d72..2036d61 100644 (file)
@@ -11,6 +11,10 @@ Source1003:    libcynara-admin.manifest
 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
@@ -35,7 +39,9 @@ BuildRequires: pkgconfig(libunwind)
 %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)
 
 #######################################################
@@ -100,6 +106,65 @@ Requires:   libcynara-commons = %{version}-%{release}
 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)
@@ -124,6 +189,10 @@ cp -a %{SOURCE1003} .
 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}
@@ -223,6 +292,38 @@ fi
 
 %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
@@ -276,3 +377,43 @@ fi
 %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
diff --git a/packaging/libcynara-creds-commons.manifest b/packaging/libcynara-creds-commons.manifest
new file mode 100644 (file)
index 0000000..a76fdba
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_" />
+       </request>
+</manifest>
diff --git a/packaging/libcynara-creds-dbus.manifest b/packaging/libcynara-creds-dbus.manifest
new file mode 100644 (file)
index 0000000..a76fdba
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_" />
+       </request>
+</manifest>
diff --git a/packaging/libcynara-creds-socket.manifest b/packaging/libcynara-creds-socket.manifest
new file mode 100644 (file)
index 0000000..a76fdba
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_" />
+       </request>
+</manifest>
diff --git a/packaging/libcynara-session.manifest b/packaging/libcynara-session.manifest
new file mode 100644 (file)
index 0000000..a76fdba
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_" />
+       </request>
+</manifest>
index 269b258..0c11631 100644 (file)
 #
 # @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)
diff --git a/pkgconfig/cynara-creds-commons/CMakeLists.txt b/pkgconfig/cynara-creds-commons/CMakeLists.txt
new file mode 100644 (file)
index 0000000..654df6c
--- /dev/null
@@ -0,0 +1,26 @@
+# 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
+    )
diff --git a/pkgconfig/cynara-creds-commons/cynara-creds-commons.pc.in b/pkgconfig/cynara-creds-commons/cynara-creds-commons.pc.in
new file mode 100644 (file)
index 0000000..cb87e5f
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/pkgconfig/cynara-creds-dbus/CMakeLists.txt b/pkgconfig/cynara-creds-dbus/CMakeLists.txt
new file mode 100644 (file)
index 0000000..57c59c9
--- /dev/null
@@ -0,0 +1,26 @@
+# 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
+    )
diff --git a/pkgconfig/cynara-creds-dbus/cynara-creds-dbus.pc.in b/pkgconfig/cynara-creds-dbus/cynara-creds-dbus.pc.in
new file mode 100644 (file)
index 0000000..296ce6c
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/pkgconfig/cynara-creds-socket/CMakeLists.txt b/pkgconfig/cynara-creds-socket/CMakeLists.txt
new file mode 100644 (file)
index 0000000..504c58c
--- /dev/null
@@ -0,0 +1,26 @@
+# 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
+    )
diff --git a/pkgconfig/cynara-creds-socket/cynara-creds-socket.pc.in b/pkgconfig/cynara-creds-socket/cynara-creds-socket.pc.in
new file mode 100644 (file)
index 0000000..b81cf68
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/pkgconfig/cynara-session/CMakeLists.txt b/pkgconfig/cynara-session/CMakeLists.txt
new file mode 100644 (file)
index 0000000..79ee80d
--- /dev/null
@@ -0,0 +1,26 @@
+# 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
+    )
diff --git a/pkgconfig/cynara-session/cynara-session.pc.in b/pkgconfig/cynara-session/cynara-session.pc.in
new file mode 100644 (file)
index 0000000..fa6e763
--- /dev/null
@@ -0,0 +1,11 @@
+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
index 596e84a..2e3e7bf 100644 (file)
@@ -49,3 +49,7 @@ ADD_SUBDIRECTORY(client)
 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)
diff --git a/src/helpers/creds-commons/CMakeLists.txt b/src/helpers/creds-commons/CMakeLists.txt
new file mode 100644 (file)
index 0000000..00484b7
--- /dev/null
@@ -0,0 +1,44 @@
+# 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})
diff --git a/src/helpers/creds-commons/creds-commons.cpp b/src/helpers/creds-commons/creds-commons.cpp
new file mode 100644 (file)
index 0000000..4cb7897
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ *  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
diff --git a/src/helpers/creds-dbus/CMakeLists.txt b/src/helpers/creds-dbus/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4e19a8b
--- /dev/null
@@ -0,0 +1,54 @@
+# 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})
diff --git a/src/helpers/creds-dbus/creds-dbus.cpp b/src/helpers/creds-dbus/creds-dbus.cpp
new file mode 100644 (file)
index 0000000..535ca84
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ *  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
diff --git a/src/helpers/creds-socket/CMakeLists.txt b/src/helpers/creds-socket/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c42e94d
--- /dev/null
@@ -0,0 +1,44 @@
+# 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})
diff --git a/src/helpers/creds-socket/creds-socket.cpp b/src/helpers/creds-socket/creds-socket.cpp
new file mode 100644 (file)
index 0000000..0ee2661
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ *  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
diff --git a/src/helpers/session/CMakeLists.txt b/src/helpers/session/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b019f4c
--- /dev/null
@@ -0,0 +1,44 @@
+# 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})
diff --git a/src/helpers/session/session.cpp b/src/helpers/session/session.cpp
new file mode 100644 (file)
index 0000000..f65f23b
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ *  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
index 486f657..261c34d 100644 (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
     )
diff --git a/src/include/cynara-creds-commons.h b/src/include/cynara-creds-commons.h
new file mode 100644 (file)
index 0000000..655dbac
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ *  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 */
diff --git a/src/include/cynara-creds-dbus.h b/src/include/cynara-creds-dbus.h
new file mode 100644 (file)
index 0000000..925a829
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ *  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 */
diff --git a/src/include/cynara-creds-socket.h b/src/include/cynara-creds-socket.h
new file mode 100644 (file)
index 0000000..bc89684
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ *  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 */
diff --git a/src/include/cynara-session.h b/src/include/cynara-session.h
new file mode 100644 (file)
index 0000000..ab96e0b
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ *  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 */