#include <memory>
#include <vector>
-struct Profile {
- std::string cert;
- std::string key;
-};
-
struct Job {
std::string id;
+ std::string warning;
std::string target;
std::string task;
std::string from;
struct TBSCertificate {
std::string md;
std::string profile;
+ /**
+ * CSR path
+ */
std::string csr;
std::string csr_type;
std::string csr_content;
std::string pkHash;
std::string certHash;
std::string crt_name;
+ std::string log;
};
class JobProvider {
public:
virtual std::shared_ptr<Job> fetchJob() = 0;
- virtual bool finishJob( std::shared_ptr<Job> job ) = 0;
+ virtual void finishJob( std::shared_ptr<Job> job ) = 0;
+ virtual void failJob( std::shared_ptr<Job> job ) = 0;
virtual std::shared_ptr<TBSCertificate> fetchTBSCert( std::shared_ptr<Job> job ) = 0;
virtual void writeBack( std::shared_ptr<Job> job, std::shared_ptr<SignedCertificate> res ) = 0;
};