]> WPIA git - cassiopeia.git/blobdiff - src/crypto/signer.h
upd: split revoking command into add-serial and revoke
[cassiopeia.git] / src / crypto / signer.h
index 582308daf6a0e7325f03a687596344e646dd47a7..bb13ddd3b121de7bab4021730ae4d30463f6998d 100644 (file)
@@ -1,6 +1,7 @@
 #pragma once
 
 #include <memory>
+#include <vector>
 
 #include "db/database.h"
 #include "crypto/sslUtil.h"
@@ -9,5 +10,5 @@
 class Signer {
 public:
     virtual std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert ) = 0;
-    virtual std::pair<std::shared_ptr<CRL>, std::string> revoke( std::shared_ptr<CAConfig> ca, std::string serial ) = 0;
+    virtual std::pair<std::shared_ptr<CRL>, std::string> revoke( std::shared_ptr<CAConfig> ca, std::vector<std::string> serial ) = 0;
 };