summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-05-24Add CAPI for clientsangwan.kwon1-4/+3
Change-Id: Ie618a4248445c1b4bebf3bb47b13486463a4b67f
2016-05-20Seperate logic to thread for several client connectionsangwan.kwon2-5/+5
Change-Id: I8424f68e23f32cc8104c9c3987bc2054c6c034ad
2016-05-20Add TC for g_main_loop timeoutsangwan.kwon2-1/+22
Change-Id: I70e1185c5b86d8fe8d8b03c0ff9559582d8d96c8
2016-05-19Fix namespace of Clientsangwan.kwon1-5/+2
Change-Id: I569965b36bb8ab7d505fabaccb270eaec016f853
2016-05-18Add TC about timersangwan.kwon3-0/+42
Change-Id: Ia023c6caf553c1589ea50779670a3a066cf8c5d4
2016-05-16Fix TC according to on_demand stylesangwan.kwon3-20/+14
Change-Id: I838690016ce7aa0f1f61faf3ad45b0543667dcc2
2016-05-12Add TC for client APIsangwan.kwon3-15/+59
Change-Id: I93d6b0de5f82f5cc9985c6464044125bc9ca05c6
2016-05-12Move log system to common librarysangwan.kwon11-18/+14
Change-Id: I313b4b4d6019cca575996f7f3fd3f3254f4ce11a
2016-05-11Implement on-demand style about client-sidesangwan.kwon2-0/+16
[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.kwon8-43/+44
[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-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 Lee2-4/+2
Change-Id: I394228947a672e9e6a6c0110bd8fb8cdaae66060 Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
2016-03-22Add BSL-1.0 license file and license boilerplatesangwan.kwon2-0/+28
Change-Id: I795e89fa5135167aabc5599fd4dcf605690198db Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-03-15Set linker flags and delete unuse librarysangwan.kwon1-1/+0
* flag : about as-needed * delete lib : cert-svc Change-Id: Iba79ed9fc6dd5d478ccb871b3f8aeac41a10dedf Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-02-25Delete unuse data, functionsangwan.kwon4-87/+2
* 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.kwon1-160/+0
* 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.kwon1-0/+2
* Dbus API -> pkgmgrinfo API Change-Id: Ia7a8d84e7eaf35d5be5d077b753ec1915b1b49d0 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2015-11-10Add popupJanusz Kozerski3-8/+15
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 Kozerski4-2/+174
Change-Id: Iaa411b52647f2348024b1e8d100d678f89a48c5f
2015-09-08Fixed synchronisation issuesKrzysztof Jackiewicz3-0/+661
[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 Kozerski9-70/+322
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 popup UI (+tests)Janusz Kozerski2-0/+63
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-17Add OCSP verification (CKM API is used)Janusz Kozerski7-1/+802
* 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 Kozerski6-53/+383
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 Kozerski1-1/+1
* 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
2015-07-06Add thread-safe Queue classJanusz Kozerski4-0/+292
* Add m_queue member to Logic class Change-Id: I31574fccd48cddc8bbb467568cf72c4d80d94803
2015-06-26Replace pkgmgr signal handling with dbus APIJanusz Kozerski1-1/+0
After fix package-manager API using of its API can be restored. [Verication] 1) Build cert-checker with debug and run it on emulator 2) In 2nd console run: journalctl -f | grep cert-checker 3) Install and uninstall app in some random order: install: pkgcmd -i -t wgt -p /usr/share/widget_demo/mancala.wgt -q uninstall: pkgcmd -u -n yKrWwxz1KX -q 4) Check if journal logs are correct Change-Id: I60a77c2862dd9745e1b422fb2eb3afec13b40d14
2015-06-26Add cert-checker database (+tests). Change include files path.Janusz Kozerski7-0/+635
* Add m_buffer in Logic class. * Load database into buffer in Logic::setup() * Move include to separate folder - this solves problem with app.h file from different package. [Verification] Run cert-checker-tests. All should pass. Change-Id: I809951a17fd44d5258ad91e480b6914e92d1058b