Update repository with private 0.1.22
authorWonkyu Kwon <wonkyu.kwon@samsung.com>
Tue, 23 Jul 2013 06:36:01 +0000 (15:36 +0900)
committerWonkyu Kwon <wonkyu.kwon@samsung.com>
Wed, 24 Jul 2013 08:56:39 +0000 (17:56 +0900)
Change-Id: I71ed3c8f186ee720ca24969bb9c8b9892585cb1e

client/ClientIPC.cpp
common/CMakeLists.txt
common/include/SignatureHelper.h
packaging/smartcard-service.spec
server/ServerDispatcher.cpp
server/ServerGDBus.cpp
server/ServerIPC.cpp
server/ServerResource.cpp
server/include/ClientInstance.h
server/org.tizen.smartcard_service.service

index 4f6dbb0..5239ff9 100644 (file)
@@ -48,7 +48,7 @@ namespace smartcard_service_api
                        {
                                int error;
 
-                               if ((error = security_server_request_cookie(buffer, length))
+                               if ((error = security_server_request_cookie((char *)buffer, length))
                                        == SECURITY_SERVER_API_SUCCESS)
                                {
                                        cookie.assign(buffer, length);
index 0be1cb8..f9e94bb 100644 (file)
@@ -54,6 +54,7 @@ SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES VERSION ${VERSION})
 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_common_LDFLAGS})
 
 SET(EXPORT_HEADER 
+       include/smartcard-types.h
        include/Debug.h
        include/Exception.h
        include/ByteArray.h
index 301bdb9..f65844c 100644 (file)
@@ -39,8 +39,8 @@ namespace smartcard_service_api
        {
        public:
                static int getPackageName(int pid, char *package, size_t length);
-               static ByteArray getCertificationHash(const char *packageName);
-               static ByteArray getCertificationHash(int pid);
+               static const ByteArray getCertificationHash(const char *packageName);
+               static const ByteArray getCertificationHash(int pid);
                static bool getCertificationHashes(int pid, vector<ByteArray> &certHashes);
                static bool getCertificationHashes(const char *packageName, vector<ByteArray> &certHashes);
        };
index 6fa5796..2af01c9 100644 (file)
@@ -5,7 +5,7 @@
 
 Name:       smartcard-service
 Summary:    Smartcard Service FW
-Version:    0.1.20
+Version:    0.1.22
 Release:    0
 Group:      libs
 License:    Apache-2.0
index 178243f..bd49ad4 100644 (file)
@@ -380,7 +380,7 @@ namespace smartcard_service_api
 #ifdef USE_AUTOSTART
                        if (resource->getClientCount() == 0)
                        {
-                               _DBG("There is no client. shutting down service");
+                               _INFO("There is no client. shutting down service");
                                g_main_loop_quit((GMainLoop *)resource->getMainLoopInstance());
                        }
 #endif
index b74ed8e..7409a19 100644 (file)
@@ -236,10 +236,10 @@ namespace smartcard_service_api
 
        void ServerGDBus::deinit()
        {
-               deinitSEService();
-               deinitReader();
-               deinitSession();
                deinitChannel();
+               deinitSession();
+               deinitReader();
+               deinitSEService();
 
                _deinit();
 
index 537034f..419fc15 100644 (file)
@@ -65,7 +65,7 @@ namespace smartcard_service_api
                _BEGIN();
 
                buffer = IPCHelper::retrieveBuffer(socket);
-               if (buffer.getLength() > 0)
+               if (buffer.size() > 0)
                {
 #ifdef SECURITY_SERVER
                        ByteArray cookie;
@@ -77,7 +77,7 @@ namespace smartcard_service_api
                        cookie.assign(buffer.getBuffer(), 20);
 
                        gid = security_server_get_gid("smartcard-daemon");
-                       if ((result = security_server_check_privilege(cookie.getBuffer(), gid)) != SECURITY_SERVER_API_SUCCESS)
+                       if ((result = security_server_check_privilege((char *)cookie.getBuffer(), gid)) != SECURITY_SERVER_API_SUCCESS)
                        {
                                _ERR("security_server_check_privilege failed [%d]", result);
                                return msg;
index 7905e26..549d2c6 100644 (file)
@@ -849,9 +849,9 @@ namespace smartcard_service_api
        }
 
        bool ServerResource::_isAuthorizedAccess(ServerChannel *channel,
-               const ByteArray aid, const vector<ByteArray> &hashes)
+               const ByteArray &aid, const vector<ByteArray> &hashes)
        {
-               bool result = true;
+               bool result = false;
                AccessControlList *acList = NULL;
 
                /* request open channel sequence */
index f3952ea..65f3006 100644 (file)
@@ -20,6 +20,7 @@
 /* standard library header */
 #include <map>
 #include <vector>
+#include <string>
 #ifndef USE_GDBUS
 #include <glib.h>
 #endif
index 204a686..8b75c5e 100644 (file)
@@ -1,4 +1,3 @@
 [D-BUS Service]
-Name=org.tizen.smartcard_service
+Name=org.tizen.SmartcardService
 Exec=/usr/bin/smartcard-daemon
-User=root
\ No newline at end of file