diff options
author | Wonkyu Kwon <wonkyu.kwon@samsung.com> | 2013-07-23 15:36:01 +0900 |
---|---|---|
committer | Wonkyu Kwon <wonkyu.kwon@samsung.com> | 2013-07-24 17:56:39 +0900 |
commit | 310b9561ff7cd4f5bd3091cb8942e46048412d4a (patch) | |
tree | defac26d34a4c91ebe1c76a5712e7d9ad1ba9a07 | |
parent | efaf4c71407f2cd61795c5d684a4a089de40f4f1 (diff) | |
download | smartcard-service-310b9561ff7cd4f5bd3091cb8942e46048412d4a.tar.gz smartcard-service-310b9561ff7cd4f5bd3091cb8942e46048412d4a.tar.bz2 smartcard-service-310b9561ff7cd4f5bd3091cb8942e46048412d4a.zip |
Update repository with private 0.1.22
Change-Id: I71ed3c8f186ee720ca24969bb9c8b9892585cb1e
-rw-r--r-- | client/ClientIPC.cpp | 2 | ||||
-rw-r--r-- | common/CMakeLists.txt | 1 | ||||
-rw-r--r-- | common/include/SignatureHelper.h | 4 | ||||
-rw-r--r-- | packaging/smartcard-service.spec | 2 | ||||
-rw-r--r-- | server/ServerDispatcher.cpp | 2 | ||||
-rw-r--r-- | server/ServerGDBus.cpp | 6 | ||||
-rw-r--r-- | server/ServerIPC.cpp | 4 | ||||
-rw-r--r-- | server/ServerResource.cpp | 4 | ||||
-rw-r--r-- | server/include/ClientInstance.h | 1 | ||||
-rw-r--r-- | server/org.tizen.smartcard_service.service | 3 |
10 files changed, 15 insertions, 14 deletions
diff --git a/client/ClientIPC.cpp b/client/ClientIPC.cpp index 4f6dbb0..5239ff9 100644 --- a/client/ClientIPC.cpp +++ b/client/ClientIPC.cpp @@ -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); diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 0be1cb8..f9e94bb 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -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 diff --git a/common/include/SignatureHelper.h b/common/include/SignatureHelper.h index 301bdb9..f65844c 100644 --- a/common/include/SignatureHelper.h +++ b/common/include/SignatureHelper.h @@ -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); }; diff --git a/packaging/smartcard-service.spec b/packaging/smartcard-service.spec index 6fa5796..2af01c9 100644 --- a/packaging/smartcard-service.spec +++ b/packaging/smartcard-service.spec @@ -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 diff --git a/server/ServerDispatcher.cpp b/server/ServerDispatcher.cpp index 178243f..bd49ad4 100644 --- a/server/ServerDispatcher.cpp +++ b/server/ServerDispatcher.cpp @@ -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 diff --git a/server/ServerGDBus.cpp b/server/ServerGDBus.cpp index b74ed8e..7409a19 100644 --- a/server/ServerGDBus.cpp +++ b/server/ServerGDBus.cpp @@ -236,10 +236,10 @@ namespace smartcard_service_api void ServerGDBus::deinit() { - deinitSEService(); - deinitReader(); - deinitSession(); deinitChannel(); + deinitSession(); + deinitReader(); + deinitSEService(); _deinit(); diff --git a/server/ServerIPC.cpp b/server/ServerIPC.cpp index 537034f..419fc15 100644 --- a/server/ServerIPC.cpp +++ b/server/ServerIPC.cpp @@ -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; diff --git a/server/ServerResource.cpp b/server/ServerResource.cpp index 7905e26..549d2c6 100644 --- a/server/ServerResource.cpp +++ b/server/ServerResource.cpp @@ -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 */ diff --git a/server/include/ClientInstance.h b/server/include/ClientInstance.h index f3952ea..65f3006 100644 --- a/server/include/ClientInstance.h +++ b/server/include/ClientInstance.h @@ -20,6 +20,7 @@ /* standard library header */ #include <map> #include <vector> +#include <string> #ifndef USE_GDBUS #include <glib.h> #endif diff --git a/server/org.tizen.smartcard_service.service b/server/org.tizen.smartcard_service.service index 204a686..8b75c5e 100644 --- a/server/org.tizen.smartcard_service.service +++ b/server/org.tizen.smartcard_service.service @@ -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 |