]> WPIA git - cassiopeia.git/blob - src/crypto/signer.h
cln: Move code around, cleanup structure
[cassiopeia.git] / src / crypto / signer.h
1 #pragma once
2
3 #include <memory>
4
5 #include "db/database.h"
6 #include "crypto/sslUtil.h"
7
8 class Signer {
9 public:
10     virtual std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert ) = 0;
11     virtual std::shared_ptr<X509_CRL> revoke( std::shared_ptr<CAConfig> ca, std::string serial ) = 0;
12 };