platform/core/csapi/security.git
7 years agoFix bug: Pkcs12 properties handle ownership
Kyungwook Tak [Mon, 7 Nov 2016 02:31:06 +0000 (11:31 +0900)]
Fix bug: Pkcs12 properties handle ownership

Handles in pkcs12 properties(PrivateKey, Certificate, CaChain) is
released with Pkcs12Free in ReleaseHandle. So Pkcs12 should always have
ownership of properties's handle.

Change-Id: If2b155424d2dd832d456017437a434d993074e5d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRemove IsInvalid check in ReleaseHandle
Kyungwook Tak [Fri, 4 Nov 2016 04:02:54 +0000 (13:02 +0900)]
Remove IsInvalid check in ReleaseHandle

ReleaseHandle is called only when IsInvalid is false.
Refer: https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.safehandle.releasehandle(v=vs.110).aspx

Change-Id: Icff0eff4e5f9e8ef88b1518a7187d05ca0962426
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoChange size_t to UIntPtr between marshalling
Kyungwook Tak [Thu, 3 Nov 2016 05:06:28 +0000 (14:06 +0900)]
Change size_t to UIntPtr between marshalling

Change-Id: I01934747f71dbd820e489b5d89eb3efabb75fadf
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoValidate parameters on long types
Kyungwook Tak [Thu, 3 Nov 2016 05:16:19 +0000 (14:16 +0900)]
Validate parameters on long types

long types will be used as uint64_t in dll imported CAPIs

Change-Id: I09cd4431de9991044d8279b3f58115a5bd51f0b3
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRemove misused PinnedObject to IntPtr
Kyungwook Tak [Thu, 3 Nov 2016 05:16:13 +0000 (14:16 +0900)]
Remove misused PinnedObject to IntPtr

Change-Id: Ic004e0685926327e0853c0503fe1faca5ec472b2
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoUpgrade version to 1.0.3
Kyungwook Tak [Wed, 2 Nov 2016 09:16:24 +0000 (18:16 +0900)]
Upgrade version to 1.0.3

Change-Id: I397237f98eeb360a9c1543a73f41f17df7d2f774
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd more to gitignore
Kyungwook Tak [Wed, 2 Nov 2016 09:23:11 +0000 (18:23 +0900)]
Add more to gitignore

Change-Id: I95d4ca273509db472021081fa4ced3ca475669a7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoGCHandle can only accept primitive type obj
Kyungwook Tak [Wed, 2 Nov 2016 08:24:29 +0000 (17:24 +0900)]
GCHandle can only accept primitive type obj

Convert structs to ptr by handle, not by PinnedObject.
PinnedObject can be used only for primitive types e.g., byte array.

Change-Id: I8bb10c57845554694a294cf59cfa4ace9a3d06d0
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoFix bug: size_t should be marshalled to UIntPtr
Kyungwook Tak [Wed, 2 Nov 2016 05:44:06 +0000 (14:44 +0900)]
Fix bug: size_t should be marshalled to UIntPtr

size_t size differ in 32bit and 64bit arch so UintPtr should be used

Change-Id: I3681c20950ac58f815183749a746180ff7a7b835
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd defense code for null input
Dongsun Lee [Thu, 27 Oct 2016 03:58:17 +0000 (12:58 +0900)]
Add defense code for null input

Change-Id: Id9c5563d3789853432b5d88bb54f4babbbaa3600
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoFix TYPO from Aec to Aes and remname RsaOaepParameters to RsaOaepCipherParameters
Dongsun Lee [Wed, 26 Oct 2016 03:58:37 +0000 (12:58 +0900)]
Fix TYPO from Aec to Aes and remname RsaOaepParameters to RsaOaepCipherParameters

Change-Id: I4573f3f055d148983d7bbdbd7fa98b2190f70293
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoMerge "Modify API doc" into devel
kidong kim [Mon, 24 Oct 2016 01:56:47 +0000 (10:56 +0900)]
Merge "Modify API doc" into devel

7 years agoRemove build warning for use of deprecated API
Dongsun Lee [Fri, 21 Oct 2016 04:13:16 +0000 (13:13 +0900)]
Remove build warning for use of deprecated API

- Marshal.PtrToStructure(ptr, type) --> Marshal.PtrToStructure<T>(ptr)

Change-Id: I2543a61091ab50d2d31b529f8977e43a894419bf
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoAdd comment for exception info
Kyungwook Tak [Thu, 20 Oct 2016 09:35:32 +0000 (18:35 +0900)]
Add comment for exception info

Change-Id: Ic2017f3d80380700fd8359eacf4efddb455a35a7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoModify API doc
Yunjin Lee [Thu, 13 Oct 2016 08:09:22 +0000 (17:09 +0900)]
Modify API doc

-Add remarks to GetDisplayName() and GetDescription() for undefined privilege input parameter
-Remove error case return remarks from GetPrivacyPrivilegeStatus()

Change-Id: Ic94f8c367b504892acaa11954506351d5ce8e2d5
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoMerge "Add privacy APIs" into devel
kidong kim [Thu, 13 Oct 2016 01:28:38 +0000 (10:28 +0900)]
Merge "Add privacy APIs" into devel

7 years agoAdd privacy APIs
Yunjin Lee [Mon, 10 Oct 2016 09:13:38 +0000 (18:13 +0900)]
Add privacy APIs

Change-Id: I7d8c7c5b42fbde555ce47b1a2ac2add3910d3c10
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agoFix bug on null-terminated string marshalling
Kyungwook Tak [Mon, 10 Oct 2016 11:43:19 +0000 (20:43 +0900)]
Fix bug on null-terminated string marshalling

UnmanagedType.LPTStr -> UnmanagedType.LPStr

Change-Id: I616c69d5c9a0335c2b6473ce726337be9ee6b3a9
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoUse nuget restore to solve dependencies
WonYoung Choi [Tue, 4 Oct 2016 14:04:07 +0000 (23:04 +0900)]
Use nuget restore to solve dependencies

Change-Id: I8d0dbd933654328ca7b08392978ac36e504d7534
Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
7 years agoFix project files to support netstandard 1.6
WonYoung Choi [Mon, 5 Sep 2016 09:21:05 +0000 (18:21 +0900)]
Fix project files to support netstandard 1.6

Change-Id: I4d71046be3d14c34fba669bdf6067f236bbb58ac
Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
7 years agoAdjust changed design doc
Kyungwook Tak [Fri, 19 Aug 2016 08:11:40 +0000 (17:11 +0900)]
Adjust changed design doc

class diagram can be checked in:
http://suprem.sec.samsung.net/confluence/display/TNET/%5B3%5D+Namespace%3A+Tizen.Security.SecureRepository

Change-Id: Ia7c6d852baafdc3cf5af2437a32ad98b3a768fc0
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRemove deprecated API wrapper(LoadFromPkcs12File)
Kyungwook Tak [Fri, 19 Aug 2016 07:32:53 +0000 (16:32 +0900)]
Remove deprecated API wrapper(LoadFromPkcs12File)

ckmc_load_from_pkcs12_file is deprecated since 2.4

Change-Id: I19a18b0e9f6bb0c872add1f846a04224711cc81b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoSeparate privilege and key-manager dll
Kyungwook Tak [Thu, 18 Aug 2016 06:31:48 +0000 (15:31 +0900)]
Separate privilege and key-manager dll

Assembly of privilege and key-manager is totally separated
so as to have dependency independently between two libraries
and use internal symbols more freely.

Change-Id: Iea683d4c3f4e129e0ded45cade4a8b29b05a452e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoFix warning related mandatory comments
Kyungwook Tak [Thu, 18 Aug 2016 05:58:32 +0000 (14:58 +0900)]
Fix warning related mandatory comments

Change-Id: I2e1d6bf714429d6edb4d5958ba4e618acbedcc49
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRemove duplicated prefix(Ckmc) in Interop
Kyungwook Tak [Thu, 18 Aug 2016 05:50:45 +0000 (14:50 +0900)]
Remove duplicated prefix(Ckmc) in Interop

Change-Id: I72d17c6fc0dff47695d287513426bbd175aa4238
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoUse csapi-tizen for get error message API
Kyungwook Tak [Thu, 18 Aug 2016 05:34:19 +0000 (14:34 +0900)]
Use csapi-tizen for get error message API

Change-Id: Ibf8e711d1df851d6fbcfcc64e2f588b76af3ba37
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd license header to sources
Kyungwook Tak [Thu, 18 Aug 2016 02:42:08 +0000 (11:42 +0900)]
Add license header to sources

Change-Id: I998566a0a4eeba461a8764afcd2549184e270605
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agofirst draft of privilege-info C# API
Yunjin Lee [Mon, 1 Aug 2016 05:52:36 +0000 (14:52 +0900)]
first draft of privilege-info C# API

Change-Id: Ifa1d0befd61bf851dd853e4d53d1f2fabef3ff4d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
7 years agothe first draft of key-manager c# API
Dongsun Lee [Tue, 26 Jul 2016 07:38:06 +0000 (16:38 +0900)]
the first draft of key-manager c# API

Change-Id: If512e50baab374ac9565690903022c1da69b4d16
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoInitial empty repository
namhyung kim [Thu, 21 Jul 2016 06:48:34 +0000 (15:48 +0900)]
Initial empty repository