summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-05-25Fix build error at 64bit archsubmit/tizen/20160525.085258accepted/tizen/mobile/20160602.021048accepted/tizen/ivi/20160602.021115accepted/tizen/common/20160525.160330accepted/tizen_iviaccepted/tizen_commonsangwan.kwon1-20/+0
[problem] * In 64bit arch, time_t and int64_t has problem when overloading [solve] * Delete time_t in serialization.h Change-Id: I20dc01022487dadd4119ee318ef2bf4de478a984
2016-05-25Upgrade version to 0.1.0submit/tizen/20160525.080353sangwan.kwon1-1/+1
[AS-IS] * cert-checker was daemon [TO-BE] * cert-checker run as service by on_demand Change-Id: If9a650e7137ae41351d26cdbb0e9f042eb693d36
2016-05-24Add CAPI for clientsangwan.kwon7-13/+94
Change-Id: Ie618a4248445c1b4bebf3bb47b13486463a4b67f
2016-05-24Add mainloop stop logic by using eventfdsangwan.kwon7-7/+150
Change-Id: If175379bebd20eeb60d091284f754857f59d34a7
2016-05-20Seperate logic to thread for several client connectionsangwan.kwon7-13/+21
Change-Id: I8424f68e23f32cc8104c9c3987bc2054c6c034ad
2016-05-20Add TC for g_main_loop timeoutsangwan.kwon2-1/+22
Change-Id: I70e1185c5b86d8fe8d8b03c0ff9559582d8d96c8
2016-05-20Apply timeout at g_main_loopsangwan.kwon4-14/+38
* If no event since cchecker launched, cchecker should exit * timeout = 10 miniute Change-Id: Ie472171c597e6dc4ffda1674bc859e26a066d9ca
2016-05-19Fix namespace of Clientsangwan.kwon4-11/+2
Change-Id: I569965b36bb8ab7d505fabaccb270eaec016f853
2016-05-19Adjust class access modifier in logicsangwan.kwon1-12/+15
Change-Id: I6881cfaa24adb1e58e4d4c5d8da886b7dd79e27a
2016-05-18Add TC about timersangwan.kwon3-0/+42
Change-Id: Ia023c6caf553c1589ea50779670a3a066cf8c5d4
2016-05-18Add timer for remaining buffersangwan.kwon5-2/+172
* Timer's interval is 1 hour. * It works periodically until buffer is empty. Change-Id: I719c9addcedeb6f276d969a849c8374813857589
2016-05-16Fix TC according to on_demand stylesangwan.kwon3-20/+14
Change-Id: I838690016ce7aa0f1f61faf3ad45b0543667dcc2
2016-05-16Add logic to deal remaining buffersangwan.kwon1-15/+26
* If process return OCSP_CHECK_AGAIN, don't exit. Change-Id: I3ddeed639cc854a22f3e88b6ab5f1f29935c7c30
2016-05-12Detach looping logic from setupsangwan.kwon4-7/+17
[AS-IS] * running g_main_loop is in setup * so, it can hard to test [TO-BE] * seperate setup and looping Change-Id: I591da58b93895e46adbd1262b11e0d7dd545c7c6
2016-05-12Add TC for client APIsangwan.kwon5-15/+61
Change-Id: I93d6b0de5f82f5cc9985c6464044125bc9ca05c6
2016-05-12Move log system to common librarysangwan.kwon35-51/+44
Change-Id: I313b4b4d6019cca575996f7f3fd3f3254f4ce11a
2016-05-11Implement on-demand style about client-sidesangwan.kwon19-13/+424
[AS-IS] * cert-checker was daemon. [TO-BE] * Change to on-demand style. * Add client library. Change-Id: Ia318bc8a724db1f50a50bd42aa4c8c94b078e287
2016-05-10Implement on-demand style about server-sidesangwan.kwon48-217/+2225
[AS-IS] * cert-checker was daemon. [TO-BE] * Change to on-demand style. * cert-svc call cert-checker. * Add common library. Change-Id: Idab160e6103cf62299b97a5485a767de9831d614 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-05-10Add gitignore filesangwan.kwon1-0/+8
Change-Id: Ifeae19f1578386c5ea315c1d75ff08712329a69e
2016-04-20bug fix in db directory permissionsubmit/tizen/20160422.031748accepted/tizen/mobile/20160422.070426accepted/tizen/ivi/20160422.070252accepted/tizen/common/20160422.171901Dongsun Lee1-1/+1
Change-Id: I1f263f5df9256588e0019718874caa03b2ff33c6 Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
2016-04-15change a user from system to security_fwsubmit/tizen/20160419.001742submit/tizen/20160418.074121accepted/tizen/mobile/20160419.050219accepted/tizen/ivi/20160419.050238accepted/tizen/common/20160419.143240Dongsun Lee7-12/+17
Change-Id: I394228947a672e9e6a6c0110bd8fb8cdaae66060 Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
2016-03-22Upgrade version to 0.0.5submit/tizen/20160322.073310accepted/tizen/wearable/20160323.011424accepted/tizen/tv/20160323.011411accepted/tizen/mobile/20160323.011352accepted/tizen/ivi/20160323.011447accepted/tizen/common/20160322.150738accepted/tizen_wearableaccepted/tizen_tvsangwan.kwon1-1/+1
Change-Id: I86b9e09431efafadcc63564b7bacff74d343979b Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-22Add BSL-1.0 license file and license boilerplatesangwan.kwon4-1/+53
Change-Id: I795e89fa5135167aabc5599fd4dcf605690198db Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-15Delete thread unsafe function. strerrorsubmit/tizen/20160321.051308accepted/tizen/wearable/20160321.113743accepted/tizen/tv/20160321.113723accepted/tizen/mobile/20160321.113706accepted/tizen/ivi/20160321.113800accepted/tizen/common/20160321.150604sangwan.kwon2-2/+11
* use GetErrnoString() instead of it Change-Id: I0d767d423be26987d387ad1b1c5899d7f36a27b3 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-15Set linker flags and delete unuse librarysangwan.kwon6-7/+4
* flag : about as-needed * delete lib : cert-svc Change-Id: Iba79ed9fc6dd5d478ccb871b3f8aeac41a10dedf Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-09Fix group tag to Security/Certificate Managementsangwan.kwon1-1/+1
* System/Security -> Security/Certificate Management Change-Id: I1312c5e97e1a0b6b3b3410251d677a1728914026 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-04Specify signed keyword explicitlysubmit/tizen/20160304.055833accepted/tizen/wearable/20160305.093447accepted/tizen/tv/20160305.093432accepted/tizen/mobile/20160305.093413accepted/tizen/ivi/20160305.093507accepted/tizen/common/20160304.195523sangwan.kwon1-2/+2
Change-Id: Ief109eac6c859e4a158473611d63a5de134fc369 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-04Define macro for updated tz-configsangwan.kwon1-1/+6
Change-Id: I6daeb100a6b9dceb3917a0a337f037999c7451c5 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-02Fix hard coded pathsangwan.kwon3-13/+16
Change-Id: Ic47c2b6f4201fc71104077fd93dba2bff09d139c Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-02-25Update UML Designer documentationsubmit/tizen/20160226.022940accepted/tizen/wearable/20160226.040304accepted/tizen/tv/20160226.040245accepted/tizen/mobile/20160226.040230accepted/tizen/ivi/20160226.040323accepted/tizen/common/20160229.160509sangwan.kwon3-4057/+3976
* delete unuse attributes Change-Id: I1928cc78b0916ec10eba10559f794d9223402133 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-02-25Delete unuse data, functionsangwan.kwon13-308/+17
* key-manager uses only a chain for OCSP Check * url is no longer needed Change-Id: I8fb1e8baa6834c79a487ff865c0c6452b34078f1 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-02-24Change building certificate chain APIsubmit/tizen/20160224.080105accepted/tizen/wearable/20160225.080701accepted/tizen/tv/20160225.080643accepted/tizen/mobile/20160225.080627accepted/tizen/ivi/20160225.080714sangwan.kwon4-224/+90
* cert-svc API, key-manager API -> pkgmgr-info API Change-Id: I1c3523dd73041f117fab1c1b0012d25c1535defe Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-02-17Change package event handler APIsangwan.kwon5-122/+215
* Dbus API -> pkgmgrinfo API Change-Id: Ia7a8d84e7eaf35d5be5d077b753ec1915b1b49d0 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2015-12-18Add UML Designer documentationJanusz Kozerski3-0/+4069
* State diagram * Class diagram Change-Id: I1e955ab8eba1c5128cd9453b6f87c0c9221ca631
2015-12-16Make the Environment File optional on no-EFL systemJanusz Kozerski1-1/+1
Change-Id: Ib646ff71d315af3d015c52365841e5846a043baa Verification: Build, run test.
2015-11-25Use new cert-svc vcore APIsubmit/tizen_ivi/20160217.000003submit/tizen_ivi/20160217.000000submit/tizen_common/20151229.154718submit/tizen_common/20151229.144031submit/tizen_common/20151229.142028submit/tizen/20151204.130942accepted/tizen/wearable/20151206.224905accepted/tizen/tv/20151206.224844accepted/tizen/mobile/20151206.224825accepted/tizen/ivi/20160218.023939Janusz Kozerski1-2/+2
Vcore SignatureValidator API has been changed. This commit introduces usage of the new API. Change-Id: I074e0ca0660b980b4defa9d95ae5869099822eb0
2015-11-17Fix klocwork issuesJanusz Kozerski1-1/+1
Verification: Build, run tests. Change-Id: I91e4dea095cc427576e0e4d75eb335e65ee4ae5d
2015-11-10Add popupJanusz Kozerski22-187/+1360
Since Notification framework doesn't support system daemons, the cert-checker's internal popup should be provided. Add implementation of popup binary - /usr/bin/cert-checker-popup Cert-checker forks(), execs a popup binary, waits for popup termination, and then reads user response from pipe. Change-Id: Ie2e70f661feb1f262841d59a1b4c6a7ec49901f9
2015-09-14Add missing code for logic testsJanusz Kozerski9-7/+203
Change-Id: Iaa411b52647f2348024b1e8d100d678f89a48c5f
2015-09-08Fixed synchronisation issuesKrzysztof Jackiewicz5-59/+743
[Problem] Production code mixed with test code. Poor readability. Synchronisation issues. [Solution] Synchronisation reimplemented. Test code separated from production code. [Verification] Run all test Change-Id: Iea5ed2ce9f10a4cdac8994acf91809cd12050d69
2015-09-08Use new cert-svc-vcore API: makeChainBySignature()Janusz Kozerski15-179/+380
This change includes adding cert_order in DB. Chain of certificates should be created while reading/parsing signature. Certificates should be put into DB in right order - first should go end entity certificate. DB ensures that certificates will be loaded into the buffer in exactly same order (end entity will be the first element on the list). Verification: Run tests, all should pass. Change-Id: I09571bab7862bdb539dd3a957330fe23d687b48f
2015-08-03Restore test DB from copy instead of clearing itJanusz Kozerski3-32/+18
Change-Id: Ia82a764c764f28f78d5c6f6a6d511c67459804b7
2015-08-03Add defines in DB codeJanusz Kozerski1-50/+54
Change-Id: I7405977c655032e4d520dcd064979302105b820c
2015-08-03Add popup UI (+tests)Janusz Kozerski13-8/+466
Notification framework currently doesn't work properly on tizen.org/common. To test UI run: cert-checker-popup-test, and check if UI is displayed correctly. Change-Id: I0eb9b134c77c82eb77b4834b81a1cd1fa19dd620
2015-07-31Change DB Smack label to "System"Janusz Kozerski1-0/+3
Change-Id: Icce083876df2953434a826c9aa5226cf39d6aa5f
2015-07-31Get online status from connman at startup.Janusz Kozerski2-22/+60
* Fix DBus proxy pointer Change-Id: Iad1cfe8e6a02136e5a899b50560a586265c5a322
2015-07-17Add systemd configurationJanusz Kozerski5-2/+50
Change-Id: Id0de6e5eb1387e99b8c8bcb0c66ae13151c1a3f7
2015-07-17Add OCSP verification (CKM API is used)Janusz Kozerski13-50/+1043
* Add tests for certificates * Remove unnecessary methods in Logic class * Add missing include * Use new cert-checker-vcore API Change-Id: Idfa777d1f1ba6f7142ea78e29bf1bc63415b128e
2015-07-10Refactor DB and app_t structure - preparation for OCSP checking.Janusz Kozerski13-149/+575
New version of DB is needed to keep separately certificates from each signatrue. Because application can be signed by more than one signature we need to keep all certificates from all signatures in separate lists to make building certificates' chains easier. * Add operators (==, !=, <) for app_t structre * Add operators (==, !=) for event_t structure * Add tests for operators * Remove check_id from app_t structure Change-Id: I966dd81420618325d1afa55bcbc656291ccb4238
2015-07-06Add pulling out certificates from apps' signature.Janusz Kozerski34-49/+298
* Move DPL include files from "dpl/*" into "cchecker/dpl/* because of cert-svc-vcore also uses DPL (from wrt-commons), and that was causing build break. * Certificates are stored in buffer and database. * OCSP URLs are pulled out from certificates and stored in database. Change-Id: Ic0601da38619f7c7b784d952abe56888db036673