Commented Access control process for 3.0 smartcard operation 21/71121/1
authorJihoon Jung <jh8801.jung@samsung.com>
Tue, 24 May 2016 07:25:54 +0000 (16:25 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Tue, 24 May 2016 07:25:54 +0000 (16:25 +0900)
Change-Id: If91777b0349c7fa54acd3488852e623dea75c26a
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
server/ServerResource.cpp

index b25b5ce..d33d4c5 100644 (file)
@@ -684,13 +684,14 @@ namespace smartcard_service_api
                         throw ExceptionBase(SCARD_ERROR_OUT_OF_MEMORY);
                }
 
-               /* check */
+               /* NOTICE : This code is Access contol implementation in OpenMobile Specification.
+                If you need the Access control in your target, please remove this comment.*/
+               /*
                if (_isAuthorizedAccess(channel, aid,
                        service->getParent()->getCertificationHashes()) == true)
                {
                        int rv = 0;
 
-                       /* select aid */
                        if (aid == PKCS15::PKCS15_AID)
                        {
                                PKCS15 pkcs15(channel);
@@ -698,7 +699,6 @@ namespace smartcard_service_api
                                rv = pkcs15.select();
                                if (rv >= SCARD_ERROR_OK)
                                {
-                                       /* remove privilege mode */
                                        channel->unsetPrivilegeMode();
                                        channel->setSelectResponse(pkcs15.getSelectResponse());
                                }
@@ -717,7 +717,6 @@ namespace smartcard_service_api
                                rv = file.select(aid);
                                if (rv >= SCARD_ERROR_OK)
                                {
-                                       /* remove privilege mode */
                                        channel->unsetPrivilegeMode();
                                        channel->setSelectResponse(file.getSelectResponse());
                                }
@@ -737,7 +736,7 @@ namespace smartcard_service_api
                        service->closeChannel(result);
                        throw ExceptionBase(SCARD_ERROR_SECURITY_NOT_ALLOWED);
                }
-
+               */
                return result;
        }