]> WPIA git - cassiopeia.git/blobdiff - src/crypto/signer.h
cln: Move code around, cleanup structure
[cassiopeia.git] / src / crypto / signer.h
diff --git a/src/crypto/signer.h b/src/crypto/signer.h
new file mode 100644 (file)
index 0000000..d9ab74e
--- /dev/null
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <memory>
+
+#include "db/database.h"
+#include "crypto/sslUtil.h"
+
+class Signer {
+public:
+    virtual std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert ) = 0;
+    virtual std::shared_ptr<X509_CRL> revoke( std::shared_ptr<CAConfig> ca, std::string serial ) = 0;
+};