]> WPIA git - cassiopeia.git/blobdiff - src/db/database.h
fix: use correct prepared statement for writing logs
[cassiopeia.git] / src / db / database.h
index 31687b13ce43242e68ab14babba87ae25e2908f6..b378e92495625384dae46c312f30c408ac299359 100644 (file)
@@ -3,14 +3,16 @@
 #include <string>
 #include <memory>
 #include <vector>
+#include <sstream>
 
 struct Job {
     std::string id;
-    std::string warning;
+    std::string attempt;
     std::string target;
     std::string task;
     std::string from;
     std::string to;
+    std::stringstream log;
 };
 
 struct SAN {
@@ -27,10 +29,6 @@ struct TBSCertificate {
     std::string md;
     std::string profile;
 
-    /**
-     * CSR path
-     */
-    std::string csr;
     std::string csr_type;
     std::string csr_content;
     std::vector<std::shared_ptr<SAN>> SANs;
@@ -38,6 +36,8 @@ struct TBSCertificate {
 
     std::string wishFrom;
     std::string wishTo;
+
+    std::string ocspCA;
 };
 
 struct SignedCertificate {
@@ -47,7 +47,6 @@ struct SignedCertificate {
     std::string after;
     std::string pkHash;
     std::string certHash;
-    std::string crt_name;
     std::string log;
     std::string ca_name;
 };