26 struct TBSCertificate {
35 std::string csr_content;
36 std::vector<std::shared_ptr<SAN>> SANs;
37 std::vector<std::shared_ptr<AVA>> AVAs;
45 struct SignedCertificate {
46 std::string certificate;
59 virtual ~JobProvider() = default;
60 virtual std::shared_ptr<Job> fetchJob() = 0;
61 virtual void finishJob( std::shared_ptr<Job> job ) = 0;
62 virtual void failJob( std::shared_ptr<Job> job ) = 0;
63 virtual std::shared_ptr<TBSCertificate> fetchTBSCert( std::shared_ptr<Job> job ) = 0;
64 virtual void writeBack( std::shared_ptr<Job> job, std::shared_ptr<SignedCertificate> res ) = 0;
65 virtual std::pair<std::string, std::string> getRevocationInfo( std::shared_ptr<Job> job ) = 0;
66 virtual void writeBackRevocation( std::shared_ptr<Job> job, std::string date ) = 0;