]> WPIA git - cassiopeia.git/blobdiff - src/crypto/simpleOpensslSigner.h
fix: Fix memory-leak in CRL.cpp, revocation from DB, multiple CAs
[cassiopeia.git] / src / crypto / simpleOpensslSigner.h
index 11e95dd7807c68d4926060686302fefe8d10ca14..1c848e5e69c2d17d9a411842f742d8921a70fc03 100644 (file)
@@ -5,14 +5,15 @@
 #include "db/database.h"
 #include "crypto/sslUtil.h"
 #include "crypto/signer.h"
+#include "crypto/CRL.h"
 
 class SimpleOpensslSigner : public Signer {
 private:
     static std::shared_ptr<int> lib_ref;
-    std::pair<std::shared_ptr<BIGNUM>, std::string> nextSerial( Profile& prof );
+    std::pair<std::shared_ptr<BIGNUM>, std::string> nextSerial( Profile& prof, std::shared_ptr<CAConfig> ca );
 public:
     SimpleOpensslSigner();
     ~SimpleOpensslSigner();
     std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
-    std::shared_ptr<X509_CRL> revoke( std::shared_ptr<CAConfig> ca, std::string serial );
+    std::pair<std::shared_ptr<CRL>, std::string> revoke( std::shared_ptr<CAConfig> ca, std::string serial );
 };