]> WPIA git - cassiopeia.git/blobdiff - src/mysql.h
add: simple, signer-side record handling
[cassiopeia.git] / src / mysql.h
index 827a10a85f7d9230ae5ca6309bdc731ebf3ae99e..da13e586be830de0225bfc38d2f3e37815a7685e 100644 (file)
@@ -1,11 +1,11 @@
 #pragma once
 
-#include <mysql/mysql.h>
-
 #include <string>
 #include <memory>
 #include <tuple>
 
+#include <mysql/mysql.h>
+
 #include "database.h"
 
 class MySQLJobProvider : public JobProvider {
@@ -33,4 +33,5 @@ public:
     std::shared_ptr<Job> fetchJob();
     bool finishJob( std::shared_ptr<Job> job );
     std::shared_ptr<TBSCertificate> fetchTBSCert( std::shared_ptr<Job> job );
+    void writeBack( std::shared_ptr<Job> job, std::shared_ptr<SignedCertificate> res );
 };