summaryrefslogtreecommitdiff
path: root/tests/test_db.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-05-12Move log system to common librarysangwan.kwon1-1/+2
Change-Id: I313b4b4d6019cca575996f7f3fd3f3254f4ce11a
2016-02-25Delete unuse data, functionsangwan.kwon1-64/+0
* 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>
2015-09-08Use new cert-svc-vcore API: makeChainBySignature()Janusz Kozerski1-12/+8
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 Kozerski1-4/+0
Change-Id: Ia82a764c764f28f78d5c6f6a6d511c67459804b7
2015-07-10Refactor DB and app_t structure - preparation for OCSP checking.Janusz Kozerski1-25/+73
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-06-26Add cert-checker database (+tests). Change include files path.Janusz Kozerski1-0/+146
* 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