]> WPIA git - cassiopeia.git/blobdiff - src/db/database.h
fix: catch another exception
[cassiopeia.git] / src / db / database.h
index e7d195229158ec44379ab14c82fc1c0ccc47926d..31687b13ce43242e68ab14babba87ae25e2908f6 100644 (file)
@@ -26,6 +26,7 @@ struct AVA {
 struct TBSCertificate {
     std::string md;
     std::string profile;
+
     /**
      * CSR path
      */
@@ -34,8 +35,10 @@ struct TBSCertificate {
     std::string csr_content;
     std::vector<std::shared_ptr<SAN>> SANs;
     std::vector<std::shared_ptr<AVA>> AVAs;
-};
 
+    std::string wishFrom;
+    std::string wishTo;
+};
 
 struct SignedCertificate {
     std::string certificate;
@@ -51,6 +54,7 @@ struct SignedCertificate {
 
 class JobProvider {
 public:
+    virtual ~JobProvider() = default;
     virtual std::shared_ptr<Job> fetchJob() = 0;
     virtual void finishJob( std::shared_ptr<Job> job ) = 0;
     virtual void failJob( std::shared_ptr<Job> job ) = 0;