summaryrefslogtreecommitdiff
path: root/src/manager/client/client-manager-impl.h
AgeCommit message (Collapse)AuthorFilesLines
2016-04-18Coding style applied according to style checkersubmit/tizen/20160418.104308accepted/tizen/wearable/20160418.235737accepted/tizen/tv/20160418.235750accepted/tizen/mobile/20160418.235742accepted/tizen/ivi/20160418.235747accepted/tizen/common/20160418.142113Kyungwook Tak1-130/+136
Checker/Guide in http://10.113.136.204/confluence/pages/viewpage.action?pageId=44567756 Change-Id: Ie1c934dcc898b72a68b7a56d43eea4a3298b509c Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
2016-01-05Fix file permissions.Bartlomiej Grzelewski1-0/+0
Change-Id: I8aa70dd580c192d7ec5d2b28ebbcb3d1ee0193a3
2015-12-22Apply coding rulesangwan.kwon1-1/+1
covered Tizen C++ coding rule list - [R06] : Do not unnecessarily use braces where a single statement will do. - Exception: if one branch of a conditional statement is a single statement, use braces in both branches. - [M08] : Keywords have following space rules - Put a space after (most) keywords - example: if, switch, case, for, do, while - Do not put a space after function like keywords - example: sizeof, typeof, alignof, __attribute__ - [M09] : Operators have following space rules - Put a space around(on each side of) most binary and ternary operators - Example : = + -< > * / % | & ^ <= >= == != ? : - Do not put a space after unary operators - Example: & * + -~ ! - Unary "++" and unary "--" are allowed no space on one side - Do not put a space around the "." and "->" structure member operators. - Do not put a space after cast operator - [M10] : Seperators have following space rules - Put a space after closing brace when it has anything on the line. - Exception : comma after closing brace '},‘ - Put a space after comma - Do not put space inside parenthesis '(', ')‘ - Do not put space before open square bracket '[‘ and inside square bracket '[', ']‘ - [M12] : Functions have the opening brace at the beginning of the next line. - [M13] : The open brace last on the line. The closing brace is empty on a line of its own - Exception : else, whileshould follow close brace '}’ - [M14] : Open braces for enum, union and structgo on the same line Change-Id: I6e59513ba121a25222e6e626792b3e115ebec1d3 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2015-10-28Protocol refactoring.Bartlomiej Grzelewski1-4/+2
Introduce CryptoAlgorithm in internal socket protocol. Change-Id: I70000a05e0a47d2b12af9b11324adf67da0f5e22
2015-09-23API refactoring.Bartlomiej Grzelewski1-3/+3
CKM::Manager uses private implementation pattern. Remove most of virtual methods from CKM::Manager. Change-Id: I171083a6f81716dc78155242989dd97528079554
2015-06-26Add encryption serviceKrzysztof Jackiewicz1-0/+7
[Feature] Encryption/decryption implementation [Solution] Encryption service added [Verification] Run test: ckm-tests --group=CKM_ENCRYPTION_DECRYPTION Change-Id: I3ff79b06eabb6957ef2bbbe9a5bf7e5e2a995a21
2015-06-09AES key creation APIKrzysztof Jackiewicz1-0/+5
[Issue#] N/A [Feature] API allowing creation of AES key in key-manager database [Problem] N/A [Cause] N/A [Solution] N/A [Verification] Successfull compilation. Run tests. Change-Id: I3ec358ce4a58afb657afaf110ca81bacea7dcd10
2015-06-08Implement encryption/decryption APIKrzysztof Jackiewicz1-0/+13
[Feature] Implementation of encryption/decryption service. [Solution] API implemented [Verification] Run ckm-tests --group=CKM_ENCRYPTION_DECRYPTION (TED_0040_encrypt_no_output_buffer passes, all other tests fail with CKMC_ERROR_SOCKET) Change-Id: Ib0ce85f031e92660713ae4f320a4fd3981a43ffc
2015-05-15Move Token from CKM::Crypto to CKM namespace.Bartlomiej Grzelewski1-1/+1
Token is used in database and crypto module. It should not be hidden in CKM::Crypto namespace. Change-Id: I6d000c05deda8f0027ce3afbdeb3bd0a793f0f78
2015-02-17Add support for password in Manager::getPCKS12 function.Bartlomiej Grzelewski1-1/+1
In function savePKCS12 user may specify passwords to protect data. Function getPKCS12 wasn't support passwords so it was not possible to extract PKCS12 secured with this functionality. Change-Id: I542873b817a2bff1064b2b56254d14fb632d8bdf
2015-02-17DB related classes moved into CKM::DB namespace.Maciej J. Karpiuk1-4/+4
Change-Id: Ifbf70ffe6865793394d46ea6443f27a0062fe02d
2015-02-17Remove deprecated C++ API for certificate chainsKrzysztof Jackiewicz1-10/+0
[Issue#] N/A [Feature/Bug] N/A [Problem] Old C++ certificate chain API is no longer necessary [Cause] N/A [Solution] API removed [Verification] Successfull tests compilation Change-Id: I588a99d1d211607dcd70290b9b0610b4732d8ef0
2015-02-17New certificate chain APIKrzysztof Jackiewicz1-0/+14
[Issue#] N/A [Feature/Bug] N/A [Problem] N/A [Cause] N/A [Solution] API that allows contol of trusted/untrusted certificates used in chain creation. [Verification] Run certificate tests Change-Id: I390d5889ee9221b3a5ffb5c3d3d501b10e3640d4
2015-02-17CAPI cleanup: control "owner" removal, set_permission replaces allow_access.Maciej J. Karpiuk1-1/+1
Change-Id: If56f8336d8782fffe5e4982ac5a86d7b59dc2682
2015-02-17Add PKCS12 support.Maciej J. Karpiuk1-0/+8
Change-Id: I389c56611fed80cf27bbbfa279b1c17e55572b14
2015-02-17C++ API change: common method for removing Alias.Maciej J. Karpiuk1-7/+2
No need to deliver separate methods to remove keys, certs or data. Item is unambiguosly identified by <name, label> pair. Change-Id: Ice2c418d66fd4f4b776ac752d8d5c6a779ad3b5a
2015-02-17OpenSSL initialization is done by anyone who uses OpenSSL first.Maciej J. Karpiuk1-1/+0
This resolves issue when CKM::PKCS12::create() is called before client is initialized. Client was initializing the OpenSSL so parsing PKCS12 was failing due to uninitialized OpenSSL. Change-Id: I809af1f622ce7c0f4764172c2143773629c88b67
2015-02-17DBCrypto access control re-factor: access control moved into additional layer.Maciej J. Karpiuk1-2/+1
Change-Id: I3ea1ce1a858b69c4a5a7365dffa1344b64aab0b6
2015-02-17C++ API re-factored: establish and keep socket connection to the service.Maciej J. Karpiuk1-1/+3
C API still does create and destroy socket per each API call. Change-Id: I99f90da5dca8e7ddc615b7d39d8a0a26055984d6
2015-02-17Split alias at server side into pair name and label.Maciej J. Karpiuk1-2/+2
Change-Id: I5cbe62ee49042449127218a95f82db9b59105a73
2014-10-16Add access control API stubKrzysztof Jackiewicz1-0/+3
Change-Id: I16c26eff6f6d272d1a7a51cba48053d8ff7f35fa
2014-10-16Added DSA keys support.Maciej J. Karpiuk1-0/+15
Change-Id: I0c360eae90df1961e8de8a4e74f2a7c964494643
2014-09-12Typedef password typeZofia Abramowska1-6/+6
Change-Id: Ie5430448be3703646b7d04aaed27a8175a95e34f
2014-09-12Use SafeBuffer in C++ api. Rename SafeBuffer to RawBuffer.Bartlomiej Grzelewski1-3/+2
Change-Id: I99a880490552ab8ed3cc50b9a60adca8a8b62d97
2014-09-12Change RawBuffer into SafeBuffer.Bartlomiej Grzelewski1-2/+3
Change-Id: Iccf37f75713c7b573dcd6858fed3b9e530c2c936
2014-09-12Replace private implemetation with interface.Bartlomiej Grzelewski1-11/+12
Change-Id: Ib09abbfd83231ac16ae5b822a99ba18600351a73
2014-09-12OCSP implementation.Bartlomiej Grzelewski1-0/+2
Change-Id: I4cf8d99b0c3ec262c7f65e5fc3b7ef2fca2b3287
2014-09-12Simpliefied public headers names.Bartlomiej Grzelewski1-1/+1
key-manager.h was renamed to ckm-manager.h key-manager-control.h was renamed to ckm-control.h Change-Id: Ia76e6891dfe8196e2a5d7db8c55a50a1ab33afdd
2014-09-12Add openssl initialization in client library.Bartlomiej Grzelewski1-4/+3
Change-Id: I1043801db5743d855902c85c16a9acb22c3ed3a0
2014-09-12 Service implementation.Radoslaw Bartosiak1-0/+16
* Add support for createSignature and verifySignature Change-Id: Id85e45ffc166678d1a97596c2c134eafcc22024c
2014-09-12Implementation of getCertificateChain.Bartlomiej Grzelewski1-1/+11
Change-Id: Ie4b8b6f9d54decb3e8e09a04a3bab101630d355a
2014-09-12Implementation of CKMLogic::getDataList function.Bartlomiej Grzelewski1-4/+4
* Rename Manager::requestKeyAliasVector to getKeyAliasVector. * add support for Manager::getKeyAliasVector function Change-Id: If10273ba01711b1d726fa19424913029b1f2edab
2014-09-12Build break fix.Bartlomiej Grzelewski1-1/+1
Change-Id: Ic0f64b859f716a363462e35f2996fcb9939a2ea9
2014-09-12 Service implementation.Radoslaw Bartosiak1-0/+14
* Add support for createKeyPairRSA, createKeyPairECDSA commands. Change-Id: Ia92b6f80d85ea570ad7c7bb3ac61cc950eea36c3
2014-09-12Add support for requestXXXAliasVector methods.Bartlomiej Grzelewski1-0/+7
Change-Id: If2603c83f43586c400e3ff6750e0d88f61d32583
2014-09-12All password are stored in std::string now.Bartlomiej Grzelewski1-4/+4
Change-Id: I4032fc43493102d30d0c6d1c6f0edcbdd3f0f4de
2014-09-12Replace RawData with RawBuffer.Bartlomiej Grzelewski1-7/+7
Change-Id: Ie188a489c3b122bde1b725de2d21887bdd644a5a
2014-09-12Add support for UserData in client library.Bartlomiej Grzelewski1-0/+4
Change-Id: Ibc4d261f20a85f019be4c1efac1fa4fd452c525f
2014-09-12Add support for certificates.Bartlomiej Grzelewski1-0/+14
* Implementation of Certificate. * Implementation of CertificateImpl. * Implementation of Manager. * Port class Base64 from cert-svc. Change-Id: I5d5a6c3ae3cdda15636f3876a9ee9e19f76b1e75
2014-09-12Service implementation.Bartlomiej Grzelewski1-1/+11
* Add support for ADD, GET, REMOVE commands. * Rename StorageCommand to LogicCommand. * Move KeyImpl from client library to common. Change-Id: Icd86f5dd6f7442565e542d637bf6bda9fd389aa1
2014-05-30Add Manager Implementation.Bartlomiej Grzelewski1-97/+5
Change-Id: I12db0dc94a111eef089a2ad4d4ed2a5f3023e6ea
2014-05-30Implementation of Key class.Bartlomiej Grzelewski1-0/+135
Change-Id: Ie9b404a8fb5e5fc60f2c4e475337dc34b3b4860b