Updating ca storage interface to support listing function
Change-Id: Iab9d50d075a139a671d94824b97c78b741203354
Refs:#4048
diff --git a/src/ca-detail/ca-sqlite.hpp b/src/ca-detail/ca-sqlite.hpp
index d31f895..6249db5 100644
--- a/src/ca-detail/ca-sqlite.hpp
+++ b/src/ca-detail/ca-sqlite.hpp
@@ -53,6 +53,12 @@
void
deleteRequest(const std::string& requestId) override;
+ std::list<CertificateRequest>
+ listAllRequests() override;
+
+ std::list<CertificateRequest>
+ listAllRequests(const Name& caName) override;
+
// certificate related
security::v2::Certificate
getCertificate(const std::string& certId) override;
@@ -66,7 +72,13 @@
void
deleteCertificate(const std::string& certId) override;
-private:
+ std::list<security::v2::Certificate>
+ listAllIssuedCertificates() override;
+
+ std::list<security::v2::Certificate>
+ listAllIssuedCertificates(const Name& caName) override;
+
+PUBLIC_WITH_TESTS_ELSE_PRIVATE:
static std::string
convertJson2String(const JsonSection& json);