]> WPIA git - cassiopeia.git/blob - src/crypto/signer.h
Merge remote-tracking branch 'origin/libs/detectcoll/local'
[cassiopeia.git] / src / crypto / signer.h
1 #pragma once
2
3 #include <memory>
4 #include <vector>
5
6 #include "db/database.h"
7 #include "crypto/sslUtil.h"
8 #include "crypto/CRL.h"
9
10 class Signer {
11 public:
12     virtual std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert ) = 0;
13     virtual std::pair<std::shared_ptr<CRL>, std::string> revoke( std::shared_ptr<CAConfig> ca, std::vector<std::string> serial ) = 0;
14 };