path: root/tests/test_db.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-09-08Use new cert-svc-vcore API: makeChainBySignature()refs/changes/90/45390/10Janusz 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 itrefs/changes/14/44414/7Janusz Kozerski1-4/+0
Change-Id: Ia82a764c764f28f78d5c6f6a6d511c67459804b7
2015-07-10Refactor DB and app_t structure - preparation for OCSP checking.refs/changes/00/42800/5Janusz 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.refs/changes/40/40840/7Janusz 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