platform/core/security/key-manager.git
9 years agoFix packaging issues and warnings 62/32362/1 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20141218.172516 accepted/tizen/ivi/20141225.103510 accepted/tizen/mobile/20150326.005109 accepted/tizen/tv/20150324.014506 accepted/tizen/wearable/20150128.040554 submit/tizen_common/20141218.170927 submit/tizen_ivi/20141225.222222 submit/tizen_mobile/20150129.000000 submit/tizen_mobile/20150213.000000 submit/tizen_mobile/20150223.000000 submit/tizen_mobile/20150325.000000 submit/tizen_tv/20150130.000000 submit/tizen_tv/20150130.050505 submit/tizen_tv/20150320.000001 submit/tizen_wearable/20150127.000000 tizen_3.0_ivi_release
José Bollo [Wed, 17 Dec 2014 11:47:49 +0000 (12:47 +0100)]
Fix packaging issues and warnings

The packaging was broken in 64 bits. To correct,
the use of %_unitdir is introduced.

Also, the new compiling flags was pointing out that
some variables was potentially not initialized. It is
wrong but now variables are initialized and the compiler
is muted.

Change-Id: Ib44390b1c548d6ddfb9b17acaa10ee5bbb3fe7f9
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoVersion 0.1.7 43/29043/1
Bartlomiej Grzelewski [Mon, 20 Oct 2014 11:35:46 +0000 (13:35 +0200)]
Version 0.1.7

Change-Id: I28581de9185615569121ccd330961df5a9fc5e4e

9 years agoadd the explanation of access control and alias format 42/29042/1
Dongsun Lee [Mon, 20 Oct 2014 07:23:49 +0000 (16:23 +0900)]
add the explanation of access control and alias format

Change-Id: I2b2ce697357589f9efdab0c064ff9aea0a2bd9f4
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
9 years agoImplementation of remaining async API 41/29041/1
Krzysztof Jackiewicz [Fri, 10 Oct 2014 10:25:15 +0000 (12:25 +0200)]
Implementation of remaining async API

Change-Id: I019f368b90ecab9ede5e4e652e4cf0b48fe83b6f

9 years agoAdd generic serialization/deserialization methods 40/29040/1
Krzysztof Jackiewicz [Fri, 10 Oct 2014 08:19:14 +0000 (10:19 +0200)]
Add generic serialization/deserialization methods

Change-Id: I981531932bb5cf40b5f1345da94fc25a538bb2c2

9 years agoAsync API stubs 39/29039/1
Krzysztof Jackiewicz [Mon, 22 Sep 2014 08:09:03 +0000 (10:09 +0200)]
Async API stubs

Change-Id: I3d91fa6506fdab315826312bf02253093b12f049

9 years agoImplement service communication 38/29038/1
Krzysztof Jackiewicz [Tue, 16 Sep 2014 08:05:35 +0000 (10:05 +0200)]
Implement service communication

Add service class for communication with server services. Implement response
parser for single request.

Change-Id: Idf68c5abcb1e8270937b7b2f6f4e87fb6d696653

9 years agoAsynchronous API framework 37/29037/1
Krzysztof Jackiewicz [Tue, 16 Sep 2014 07:52:27 +0000 (09:52 +0200)]
Asynchronous API framework

Single API function implementation. Connection thread implementation. Request
structure added.

Change-Id: Ic823b8c1dcc713edda9273a5c5cbe7763182e150

9 years agoFix build break on tizen.org platform. 67/28867/1
Bartlomiej Grzelewski [Thu, 16 Oct 2014 13:20:41 +0000 (15:20 +0200)]
Fix build break on tizen.org platform.

Change-Id: I50022f54790b4036a045f95767ced1a3f1c07bf9

9 years agoFix license identifier in spec file. 66/28866/1
Bartlomiej Grzelewski [Wed, 15 Oct 2014 11:25:03 +0000 (13:25 +0200)]
Fix license identifier in spec file.

Change-Id: If13057bc7cd87690c1aab2e8df98ee58289a3027

9 years agoAdd DB performance analysis tests and performance improvements. 65/28865/1
Maciej J. Karpiuk [Tue, 7 Oct 2014 11:02:28 +0000 (13:02 +0200)]
Add DB performance analysis tests and performance improvements.

Change-Id: I5e3bd05e6390392dde2d9837d067de36da82d978

9 years agoAdd missing return value explanations in doxygen 64/28864/1
yuseok.jeon [Wed, 15 Oct 2014 10:43:59 +0000 (19:43 +0900)]
Add missing return value explanations in doxygen

Change-Id: I38df32f8d6bde71dba2b21d26f76751299d18578
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoUpdate internal tests with new exception in KeyProvider 63/28863/1
Krzysztof Jackiewicz [Tue, 7 Oct 2014 11:23:58 +0000 (13:23 +0200)]
Update internal tests with new exception in KeyProvider

Change-Id: Ia8e7b962a8c89dd130af824436c9d8917aa7a360

9 years agoWorkaround for memory garbage in SafeBuffer test 62/28862/1
Krzysztof Jackiewicz [Tue, 7 Oct 2014 11:05:20 +0000 (13:05 +0200)]
Workaround for memory garbage in SafeBuffer test

Operator delete of RawBuffer which is called after buffer memory is erased
(see erase_on_dealloc::deallocate) sometimes leaves garbage in the beginning of
that memory. Therefore the test will be marked as failing only if more than
1/10 of the data matches original. Also tests for std::vector control group
were added.

Change-Id: Ic1a0db5aa336eaca0825c945af5ccbc6fe88c13a

9 years agoAdd exception wrapper for async API functions 61/28861/1
Krzysztof Jackiewicz [Tue, 16 Sep 2014 07:58:39 +0000 (09:58 +0200)]
Add exception wrapper for async API functions

Function will execute API function logic surruded with try catch block and call
supported error function if necessary.

Change-Id: I51295060edf531814b7498c1fd3ecf1156a94ec4

9 years agoMove SockRAII declaration to header file 60/28860/1
Krzysztof Jackiewicz [Tue, 16 Sep 2014 07:57:45 +0000 (09:57 +0200)]
Move SockRAII declaration to header file

Change-Id: I968d19db72eaa8677e212a88b5bbb5886163d307

9 years agoBugfix: fix problem with missing data (large data sets) in permission table. 59/28859/1
Maciej J. Karpiuk [Tue, 7 Oct 2014 07:55:37 +0000 (09:55 +0200)]
Bugfix: fix problem with missing data (large data sets) in permission table.

Change-Id: Id7b5d816ec7705c43937ea7f446f2ab4d10a15d8

9 years agoFix daemon starting time 58/28858/1
kyungwook tak [Tue, 7 Oct 2014 04:15:52 +0000 (13:15 +0900)]
Fix daemon starting time

Change-Id: I0f61b5f6f31ffdc5754b9b9257bf5847eac03b28
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoModify the explanation of access control APIs in the doxygen document 57/28857/1
yuseok.jeon [Tue, 7 Oct 2014 07:37:39 +0000 (16:37 +0900)]
Modify the explanation of access control APIs in the doxygen document

Change-Id: I96a8b969ba6fd69a5140f140592f400dfe206ca2
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoModify the code location of FIPS mode setting 56/28856/1
yuseok.jeon [Tue, 7 Oct 2014 04:04:52 +0000 (13:04 +0900)]
Modify the code location of FIPS mode setting

Change-Id: I087bf3451e46427943e1a9f2a8ea37d6368e1631
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoVersion 0.1.6 55/28855/1
Krzysztof Jackiewicz [Mon, 6 Oct 2014 05:59:15 +0000 (07:59 +0200)]
Version 0.1.6

Change-Id: I997ab0b9ff3977b76df5ef8abea54c8164b10cfd

9 years agoFix build break on gcc4.8 54/28854/1
kyungwook tak [Mon, 6 Oct 2014 01:57:14 +0000 (10:57 +0900)]
Fix build break on gcc4.8

Change-Id: Ia708b7ba1d6dd09782f825ec00c76cc7aef21f51
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoAdd missing explanation of return value in doxygen 53/28853/1
yuseok.jeon [Wed, 1 Oct 2014 07:05:28 +0000 (16:05 +0900)]
Add missing explanation of return value in doxygen

Change-Id: I1e9df6b6a69bb85ff0931cf808e9188f6eec8c5f
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoVersion 0.1.5 52/28852/1
Krzysztof Jackiewicz [Fri, 3 Oct 2014 11:47:50 +0000 (13:47 +0200)]
Version 0.1.5

Change-Id: I8555b56e18581b31ca1256697a28c9553de16fc4

9 years agoAlias list returns only aliases available to the calling label. 51/28851/1
Maciej J. Karpiuk [Wed, 1 Oct 2014 14:27:21 +0000 (16:27 +0200)]
Alias list returns only aliases available to the calling label.

All CKM tests pass now.

Change-Id: I719d830cb5ea0e3cd1dda367a8c927a35095e225

9 years agoAdd access API to the control service. 50/28850/1
Maciej J. Karpiuk [Wed, 1 Oct 2014 12:56:58 +0000 (14:56 +0200)]
Add access API to the control service.

Change-Id: I7145853938394f14997b6a4311b7476ab34f280d

9 years agoAdd access control code to the CKM. 49/28849/1
Maciej J. Karpiuk [Tue, 30 Sep 2014 12:42:56 +0000 (14:42 +0200)]
Add access control code to the CKM.

Label that did not add the alias to the DB is not allowed to perform
operations on the alias. Work in progress.

Change-Id: I733448435e87251d856e9fdfd9194e798e8e3a99

9 years agoAdd access control API stub 48/28848/1
Krzysztof Jackiewicz [Mon, 29 Sep 2014 12:42:33 +0000 (14:42 +0200)]
Add access control API stub

Change-Id: I16c26eff6f6d272d1a7a51cba48053d8ff7f35fa

9 years agoInternal tests for DescriptorSet class. 47/28847/1
Krzysztof Jackiewicz [Thu, 28 Aug 2014 08:25:49 +0000 (10:25 +0200)]
Internal tests for DescriptorSet class.

Change-Id: I6008283eab8eadaf1ad755db078a6f06380a735d

9 years agoAdd poll() wrapper 46/28846/1
Krzysztof Jackiewicz [Fri, 22 Aug 2014 09:58:38 +0000 (11:58 +0200)]
Add poll() wrapper

Introduces Descriptor set class that is a wrapper for:
-waiting for descirptors using poll()
-adding/removing descriptors to/from pollfd
-callback invocation

Use tests from next commit for verification:
ckm-tests-internal -t DESCRIPTOR_SET_TEST
All should pass

Change-Id: I4b86e4407d899ace57ff872b0db37d045e3bb9af

9 years agoModify setting value of socket-timeout 45/28845/1
yuseok.jeon [Wed, 1 Oct 2014 06:47:45 +0000 (15:47 +0900)]
Modify setting value of socket-timeout

 * Small setting value of socket-timeout can make unintended socket disconnect according to target device performance

Change-Id: If61b9642f14613091f1fa4db05ecb420a2805869
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoAdd additional functions related to CC mode 44/28844/1
yuseok.jeon [Fri, 26 Sep 2014 06:36:02 +0000 (15:36 +0900)]
Add additional functions related to CC mode

 * to fix issue about providing optional password encryption only when cc mode is off in key-manager
 * check cc mode by registering callback
 * event callback is added in key-manager-listener daemon

Change-Id: I00e84225b3d06e2b2442ec405d02484c767304e5
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoadd HASH_NONE and NO_PADDING algo for createSignature and verifySignature 43/28843/1
Dongsun Lee [Fri, 26 Sep 2014 10:31:26 +0000 (19:31 +0900)]
add HASH_NONE and NO_PADDING algo for createSignature and verifySignature

Change-Id: I34c615ad23a32290d1bc8891290c019e0ba1630a
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
9 years agoAdded DSA keys support. 42/28842/1
Maciej J. Karpiuk [Wed, 24 Sep 2014 08:27:04 +0000 (10:27 +0200)]
Added DSA keys support.

Change-Id: I0c360eae90df1961e8de8a4e74f2a7c964494643

9 years agoFix Prevent defect about array_null 41/28841/1
kyungwook tak [Tue, 30 Sep 2014 00:33:35 +0000 (09:33 +0900)]
Fix Prevent defect about array_null

Change-Id: I2cd69947605d3df14c36ced7048eeef0af1edb10
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoAdd missing words in doxygen 40/28840/1
yuseok.jeon [Thu, 25 Sep 2014 09:12:33 +0000 (18:12 +0900)]
Add missing words in doxygen

Change-Id: Id4c09496b6986ecaecfaab6b10b6af2b79819b56
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agodecreased iteration count into 1000 in PBKDF 39/28839/1
Dongsun Lee [Wed, 24 Sep 2014 02:33:54 +0000 (11:33 +0900)]
decreased iteration count into 1000 in PBKDF

Change-Id: Ibf8111712201b193b54bdc431c0d3c1ec37686a4
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
9 years agoFixed ckm internal db_crypto test - tag is now mandatory. 38/28838/1
Maciej J. Karpiuk [Tue, 23 Sep 2014 14:13:20 +0000 (16:13 +0200)]
Fixed ckm internal db_crypto test - tag is now mandatory.

Change-Id: I8e85f3f4511bb721decede8b3301b2d030dd75b2

9 years agoFix doxygen about unnecessary references of internal APIs 37/28837/1
yuseok.jeon [Thu, 18 Sep 2014 02:35:02 +0000 (11:35 +0900)]
Fix doxygen about unnecessary references of internal APIs

Change-Id: I0c4540d09d46eb1de23b9536fc047ed7745dbde3
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agochange privilege level into non-privilege for ckmc-type.h 36/28836/1
Dongsun Lee [Wed, 17 Sep 2014 06:44:52 +0000 (15:44 +0900)]
change privilege level into non-privilege for ckmc-type.h

Change-Id: Iee4903a6dba468b2f302031df1676ff3626659df
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
9 years agoFix false return value about requesting non-existent data 35/28835/1
yuseok.jeon [Wed, 17 Sep 2014 02:17:41 +0000 (11:17 +0900)]
Fix false return value about requesting non-existent data

Change-Id: Ibe70d375a6b9eab145c850f40068d0d1c833cfd6
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoRemoving data of deleted application during lock state 34/28834/1
Dongsun Lee [Fri, 12 Sep 2014 05:52:22 +0000 (14:52 +0900)]
Removing data of deleted application during lock state

Change-Id: Id465b2dfd2ed37d8b54b1c191da8785a4dbc42cb

9 years agoClean up database during unlock operation. 33/28833/1
Zofia Abramowska [Mon, 15 Sep 2014 13:30:25 +0000 (15:30 +0200)]
Clean up database during unlock operation.

Change-Id: I56c9357419515b01f7013a9db2ab03925d453464

9 years agoFix build break in security-tests repository. 32/28832/1
Bartlomiej Grzelewski [Mon, 15 Sep 2014 12:50:18 +0000 (14:50 +0200)]
Fix build break in security-tests repository.

Build break was caused by function Key::create and PKCS12::create.
Key::create function was defined in key-manager-common library. This
library was not linked with security-tests binaries.
PKCS12::create function was not compiled in library because of a bug in
cmake file.

Change-Id: Ifc9757ff69ef73933b366a7a6c6c49a551757e48

9 years agoFix doxygen documents about removing restrict mechanism 31/28831/1
yuseok.jeon [Mon, 15 Sep 2014 05:39:13 +0000 (14:39 +0900)]
Fix doxygen documents about removing restrict mechanism

Change-Id: I0ec7aec9549b9f341a80329714371e628dff09cd
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoAdd dependency of libkey-manager-common to libkey-manager-client 30/28830/1
kyungwook tak [Mon, 15 Sep 2014 05:12:06 +0000 (14:12 +0900)]
Add dependency of libkey-manager-common to libkey-manager-client

Change-Id: I240b5b104d529eabffce088cf0809d8023ddad11
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoAdd new package with common library 29/28829/1
Bartlomiej Grzelewski [Mon, 18 Aug 2014 09:31:04 +0000 (11:31 +0200)]
Add new package with common library

Change-Id: I6f518f80e7489bd27156caa0c605d594eb022f43
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoRemove restrict mechanism. 28/28828/1
Bartlomiej Grzelewski [Wed, 10 Sep 2014 08:35:28 +0000 (10:35 +0200)]
Remove restrict mechanism.

Restrict mechanism will be replaced with ACL (access control list).

Change-Id: I383d6ff1a74d15189c6219e8c800c7a992a71537

9 years agoFix buildbreak on wayland x86_64 14/28114/2 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140926.144326 accepted/tizen/ivi/20141006.083203 submit/tizen/20140926.142609 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
Krzysztof Jackiewicz [Fri, 26 Sep 2014 08:33:53 +0000 (10:33 +0200)]
Fix buildbreak on wayland x86_64

Change-Id: Id9ad5da78b5bee5bd1c15870c7857eb311ed1113

9 years agoClass naming scheme re-factoring: move towards better consistency. 78/27678/1 accepted/tizen/common/20140925.172038 submit/tizen/20140925.122603
Maciej J. Karpiuk [Wed, 17 Sep 2014 11:34:14 +0000 (13:34 +0200)]
Class naming scheme re-factoring: move towards better consistency.

Change-Id: I8ad4d19991c92f5268ef1f0a411258c848c83c64

9 years agoAdded base error code declaration. 92/27592/3
Maciej J. Karpiuk [Tue, 16 Sep 2014 09:43:15 +0000 (11:43 +0200)]
Added base error code declaration.

TODO: this is temporary solution.
The error code base should be eventually moved into tizen_error.h.

Change-Id: Ic587d539545fb3d34f6330ca23921e2d70083436

9 years agoBuild fixes, changes: 35/27535/4
Maciej J. Karpiuk [Mon, 15 Sep 2014 13:47:13 +0000 (15:47 +0200)]
Build fixes, changes:

* added pthread dependency;
* _FORTIFY_SOURCE disabled when in DEBUG mode;

Change-Id: Ibcc94a0aec92bbc4714566948b02377b105a0eb0

9 years agoRemove dependency to ckm-key-provider.h.
kyungwook tak [Fri, 12 Sep 2014 07:55:12 +0000 (16:55 +0900)]
Remove dependency to ckm-key-provider.h.

This commit removes dependency to device specific code.

Change-Id: If6443737e844feb0c9d0eb3a17693876b1a870da
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoChange AES CBC mode into AES GCM.
Bartlomiej Grzelewski [Tue, 9 Sep 2014 11:54:36 +0000 (13:54 +0200)]
Change AES CBC mode into AES GCM.

Change-Id: I1335d6fdb61ca29e8dfcdcd4901b485fb4ebf4ec

9 years agoAdd new DEK to encrypt database.
Bartlomiej Grzelewski [Fri, 5 Sep 2014 14:33:13 +0000 (16:33 +0200)]
Add new DEK to encrypt database.

Database mustn't be encrypted with user Domain KEK so we need to
generate special DEK for database.

Change-Id: I9de405c44ed3a17eb11e70255962b908e199ae0d

9 years agoFix Prevent defects in ckmc APIs
kyungwook tak [Thu, 11 Sep 2014 05:22:19 +0000 (14:22 +0900)]
Fix Prevent defects in ckmc APIs

Change-Id: I305c5700b66a6b9539b30fc69d203b128240a15b
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoFix implementation of ckmc_get_*_alias_list.
Bartlomiej Grzelewski [Fri, 5 Sep 2014 09:49:59 +0000 (11:49 +0200)]
Fix implementation of ckmc_get_*_alias_list.

List of fixes:
 * output parameter will now always be set to NULL
 * replace malloc/memset/memcpy with strndup call.

Change-Id: I8500386608c17abb4fafb0cd6aeee51ae16c2b3a

9 years agoFix memory allocation in CAPI.
Bartlomiej Grzelewski [Fri, 5 Sep 2014 09:49:59 +0000 (11:49 +0200)]
Fix memory allocation in CAPI.

In C-API memory was allocated with operator new but freed with free().

Change-Id: Ib7ab6742bbde1e97fb2a0479b907e748861464c4

9 years agoRemove deprecated manifest. Fix manifest installation.
Bartlomiej Grzelewski [Wed, 3 Sep 2014 13:16:28 +0000 (15:16 +0200)]
Remove deprecated manifest. Fix manifest installation.

List of changes:
 * Only packages that will be installed on target have manifest.
 * Only one manifest per package is allowed.
 * Remove installation of manifest from CMakeLists.txt.
   Manifest are required by rpm during package created and are not
   required during build time.

Change-Id: Ic742443718f3d53bff06590a44bdb73511788c64

9 years agoAdd move ctors/operators to MessageBuffer and BinaryQueue
Krzysztof Jackiewicz [Wed, 27 Aug 2014 09:37:25 +0000 (11:37 +0200)]
Add move ctors/operators to MessageBuffer and BinaryQueue

Default implementations of move constructors and operators were added to make
objects of these classess movable.

Change-Id: I03322ead292adc29bed8a859fb7bc640b16fd251

9 years agoMake socket connection function available
Krzysztof Jackiewicz [Mon, 25 Aug 2014 08:06:47 +0000 (10:06 +0200)]
Make socket connection function available

Socket connection logic is necessary for asynchronous interface but wrapping
sockets in SockRAII class is unwanted, therefore the connection function has
been extracted from SockRAII and made available for other components.

Change-Id: I9a65df3bb99687156f6d1d3d11bc8a701eb962b2

9 years agoAdd NONCOPYABLE macro
Krzysztof Jackiewicz [Thu, 21 Aug 2014 09:52:14 +0000 (11:52 +0200)]
Add NONCOPYABLE macro

Declaring class noncopyable requires explicit deletion of a constructor and
operator. To simplify it, the NONCOPYABLE macro has been added.

Change-Id: Iee4e1824238033f4f5719b96c88f18b4400213fb

9 years agoVersion 0.1.4
Bartlomiej Grzelewski [Mon, 1 Sep 2014 11:30:14 +0000 (13:30 +0200)]
Version 0.1.4

Add functions:
* Add parser for pkcs12 files (class PKCS12).

Change-Id: I5f5d72a2d5bd02012a2dfdd04529c56d7f4de9be

9 years agoAdd additional error logs in ocsp module.
Bartlomiej Grzelewski [Mon, 1 Sep 2014 09:43:29 +0000 (11:43 +0200)]
Add additional error logs in ocsp module.

Change-Id: I4a474d4cafd550d5db02e2c1b53f62f96ebfa83b

9 years agoImplementation of PKCS12 class.
Bartlomiej Grzelewski [Wed, 20 Aug 2014 15:00:02 +0000 (17:00 +0200)]
Implementation of PKCS12 class.

Change-Id: Ie377ced1fafb8f406211c264697f0c8219f04f03

9 years agoFix implementation create methods.
Bartlomiej Grzelewski [Fri, 22 Aug 2014 16:30:26 +0000 (18:30 +0200)]
Fix implementation create methods.

Old immplementation was able to throw exception if memory allocation
faid. New implementation will return empty shared_ptr. Fixes were applied to:
 * Key::create
 * Certificate::create
 * Control::create
 * Storage::create

Change-Id: I6c9634b3df0d84f59bb0500c022d7dc3f4e97c72

9 years agoFix doxygen documents
yuseok.jeon [Mon, 25 Aug 2014 06:09:21 +0000 (15:09 +0900)]
Fix doxygen documents

Change-Id: I17e769bc826c0840aa46b88e9131d9f953e35376
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoRun key-manager-listener by systemd instead key-manager.
Bartlomiej Grzelewski [Thu, 21 Aug 2014 15:32:36 +0000 (17:32 +0200)]
Run key-manager-listener by systemd instead key-manager.

Change-Id: Ifca5fc4d8ed8d17a1da80677d3acf2b2260243d6

9 years agoMove key-manager-listener to new package.
Bartlomiej Grzelewski [Thu, 21 Aug 2014 15:10:11 +0000 (17:10 +0200)]
Move key-manager-listener to new package.

Change-Id: I1e0e8988548664079f403684a0057ac65c177dd5

9 years agoRemove internel header include path which shouldn't be open in .pc file
kyungwook tak [Thu, 21 Aug 2014 06:55:22 +0000 (15:55 +0900)]
Remove internel header include path which shouldn't be open in .pc file

Change-Id: Iff5c3673c0b7d54e244d25b1d10c9f64fde94e93
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agofix doxygen documents for struct
Dong Sun Lee [Thu, 21 Aug 2014 01:45:06 +0000 (10:45 +0900)]
fix doxygen documents for struct

Change-Id: Ibe3ff15ea8289a09deffa0f48f3c26d74f2332a1
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
9 years agoUpdate key-manager manifest file
kyungwook tak [Tue, 19 Aug 2014 09:46:57 +0000 (18:46 +0900)]
Update key-manager manifest file

Change-Id: I0feff86cb905db1d8c8a7b6d291411c5010a2b99
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoRemove echo service.
Bartlomiej Grzelewski [Mon, 18 Aug 2014 09:04:24 +0000 (11:04 +0200)]
Remove echo service.

Change-Id: I13a25e3b8d8ddaba6f07d37191644dc813301a03

9 years agoFix build error by getting return value of system function
kyungwook tak [Tue, 19 Aug 2014 05:21:24 +0000 (14:21 +0900)]
Fix build error by getting return value of system function

Change-Id: Ib21801520253097f88fa5ec34c5299227dd02c03
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoAdd ocps socket to key-manager.service.
Bartlomiej Grzelewski [Mon, 18 Aug 2014 11:42:45 +0000 (13:42 +0200)]
Add ocps socket to key-manager.service.

Change-Id: I6758098ae5da599a43c7b18095da90e1296385fa

9 years agoRun key-manager-listener during key-manager start.
Bartlomiej Grzelewski [Tue, 12 Aug 2014 15:36:43 +0000 (17:36 +0200)]
Run key-manager-listener during key-manager start.

Change-Id: Ife90f0e5091448cee27761ed6fe858d781cfdd54

9 years agoFirst implementation of ckm-listener-daemon.
Bartlomiej Grzelewski [Thu, 7 Aug 2014 12:23:45 +0000 (14:23 +0200)]
First implementation of ckm-listener-daemon.

Change-Id: I80bb8dd113568a7059755a0d1a446c9feae25e6b

9 years agoWorkaround solution for locktype=None
Dong Sun Lee [Tue, 12 Aug 2014 06:08:25 +0000 (15:08 +0900)]
Workaround solution for locktype=None

Change-Id: Id57bd642a1df3d9b8f0e2bd7923974c2c6a92382
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
9 years agoAdd include path 'client-capi' for control-client library
kyungwook tak [Mon, 11 Aug 2014 10:48:06 +0000 (19:48 +0900)]
Add include path 'client-capi' for control-client library

Change-Id: I1d7a2e11e56bf69464798a45a114357e63d6f8f2
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoAdd SafeBuffer test
Krzysztof Jackiewicz [Wed, 9 Jul 2014 13:30:40 +0000 (15:30 +0200)]
Add SafeBuffer test

Change-Id: I0bae252c754ebcf99b5206ad37a634447e611392

9 years agoRemove TransitoryString
Krzysztof Jackiewicz [Wed, 9 Jul 2014 10:15:04 +0000 (12:15 +0200)]
Remove TransitoryString

Change-Id: Icc38818df54e49f1ca7a8e71b14c4c2f7933eb74

9 years agoAdd api CKM::Control::removeApplicationData
Bartlomiej Grzelewski [Wed, 6 Aug 2014 13:27:45 +0000 (15:27 +0200)]
Add api CKM::Control::removeApplicationData

This api may be used during application uninstallation to remove
all application data from ckm datbase.

Change-Id: I5526744d9fface01621e755c7a09072ffb5c0548

9 years agoFix build break.
Bartlomiej Grzelewski [Thu, 7 Aug 2014 13:12:35 +0000 (15:12 +0200)]
Fix build break.

Fix error: "undefined reference to_ckmc_error".
This error occure when client was linked with control library only.

Change-Id: I9547290aef5a1ee41c94474d189562adf94ddea5

9 years agoFix duplicated sendToServer code in reset_user_password client api
kyungwook tak [Thu, 7 Aug 2014 08:37:49 +0000 (17:37 +0900)]
Fix duplicated sendToServer code in reset_user_password client api

Change-Id: I6fbd839623e89e78b1334f91702d7718589984b0
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoFix comments for doxygen
kyungwook tak [Thu, 7 Aug 2014 02:04:39 +0000 (11:04 +0900)]
Fix comments for doxygen

Change-Id: Ia0e016a4f5dea8ecff72e8d0c3c880dcc6beb5f5
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoCode refactoring:
Bartlomiej Grzelewski [Wed, 6 Aug 2014 13:26:23 +0000 (15:26 +0200)]
Code refactoring:

* Replace "throw 1" with "Throw(Exception::BrokenProtocol)".
* Remove const in virtual method in Control class.
* Simplified ControlImpl implementation.

Change-Id: I1236585980a0748283e0415ab815fdbb7a16b88c

9 years agoApply TIZEN_ERROR_KEY_MANAGER value of tizen.error.h
yuseok.jeon [Wed, 6 Aug 2014 07:02:49 +0000 (16:02 +0900)]
Apply TIZEN_ERROR_KEY_MANAGER value of tizen.error.h

Change-Id: Ib5893f934e34674ff0f9e94c6436ce0a37647cad
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoFix doc related to exportable flag
yuseok.jeon [Wed, 6 Aug 2014 02:27:26 +0000 (11:27 +0900)]
Fix doc related to exportable flag

Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
9 years agoFix implementation of exportable flag.
Bartlomiej Grzelewski [Mon, 4 Aug 2014 12:29:28 +0000 (14:29 +0200)]
Fix implementation of exportable flag.

Change-Id: I08337d7e1e0bfd5194748d824b0bebe598bb6edc

9 years agoFix error in ckmc_load_from_pkcs12_file
kyungwook tak [Wed, 30 Jul 2014 12:01:42 +0000 (21:01 +0900)]
Fix error in ckmc_load_from_pkcs12_file

Change-Id: I3747778d1f53b88f9001ce404c8f1603465ca292
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoFix doc include section
kyungwook tak [Wed, 30 Jul 2014 05:29:00 +0000 (14:29 +0900)]
Fix doc include section

Change-Id: I9965a9ff0c27a1939b1a3240bffd6a78d375b25c
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoFix rootstrap error
kyungwook tak [Mon, 28 Jul 2014 11:45:27 +0000 (20:45 +0900)]
Fix rootstrap error

Change-Id: Ia9ebea239c5190d53e7b0d7173e49723cc21bacc
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoRemove compilation warrnings from sqlcipher.
Bartlomiej Grzelewski [Thu, 24 Jul 2014 10:41:13 +0000 (12:41 +0200)]
Remove compilation warrnings from sqlcipher.

Change-Id: Ie9b9edcc4c113b228fcebc79a672109842aaaf73

9 years agoReplace std::string with CKM::Password
Bartlomiej Grzelewski [Thu, 24 Jul 2014 16:53:55 +0000 (18:53 +0200)]
Replace std::string with CKM::Password

Change-Id: I695f3beb018d8a2b0a1fe4b17b99cd9cbd60c226

9 years agoTypedef password type
Zofia Abramowska [Wed, 23 Jul 2014 15:24:04 +0000 (17:24 +0200)]
Typedef password type

Change-Id: Ie5430448be3703646b7d04aaed27a8175a95e34f

9 years agoFix dependency about capi-base-common
kyungwook tak [Thu, 24 Jul 2014 08:57:43 +0000 (17:57 +0900)]
Fix dependency about capi-base-common

Change-Id: I2da5516a131907ef29d5b88441b3ac62b237f235
Signed-off-by: kyungwook tak <k.tak@samsung.com>
9 years agoRemove infinite loop from SqlConnection
Zofia Abramowska [Tue, 22 Jul 2014 15:03:30 +0000 (17:03 +0200)]
Remove infinite loop from SqlConnection

Change-Id: I9437401d609e9e2ec57fbb10416b440f0039afba

9 years agoerror names changed for tizen common error
Dong Sun Lee [Thu, 24 Jul 2014 04:38:04 +0000 (13:38 +0900)]
error names changed for tizen common error

Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
9 years agochanged to tizen compatible error type
Dong Sun Lee [Thu, 24 Jul 2014 02:47:49 +0000 (11:47 +0900)]
changed to tizen compatible error type

Change-Id: I10c23ffc36f97824dc5062709711d1ca70ee1c14
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
9 years agoReflect ACR comments for enum and struct in core API
yuseok.jeon [Wed, 23 Jul 2014 12:52:07 +0000 (21:52 +0900)]
Reflect ACR comments for enum and struct in core API

Change-Id: I0ac91b03c310763e30d110f96bdbfd29d32299cc
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>