]> WPIA git - cassiopeia.git/blobdiff - src/simpleOpensslSigner.h
chg: Build two binaries for the signer
[cassiopeia.git] / src / simpleOpensslSigner.h
index 287f42ce5ee8db607c61000f68ecfb5f428b4ae2..e1c912bfa8b49125124d17a993b28a457ec6273f 100644 (file)
@@ -3,16 +3,16 @@
 #include <openssl/ssl.h>
 
 #include "database.h"
+#include "sslUtil.h"
 #include "signer.h"
 
 class SimpleOpensslSigner : public Signer {
 private:
     static std::shared_ptr<int> lib_ref;
-    std::shared_ptr<EVP_PKEY> caKey;
-    std::shared_ptr<X509> caCert;
+    Profile& prof;
     std::shared_ptr<BIGNUM> nextSerial( uint16_t profile );
 public:
-    SimpleOpensslSigner();
+    SimpleOpensslSigner( Profile& prof );
     ~SimpleOpensslSigner();
     std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
 };