]> WPIA git - cassiopeia.git/blobdiff - src/remoteSigner.h
add: Add more verbose logging
[cassiopeia.git] / src / remoteSigner.h
index 36c9339989376875b8c1541a251c518dbc3c42c2..8cc3c72f29631f54732080f98ff3bf04b6d8abfe 100644 (file)
@@ -13,10 +13,12 @@ class RemoteSigner : public Signer {
 private:
     std::shared_ptr<BIO> target;
     std::shared_ptr<SSL_CTX> ctx;
+    std::shared_ptr<std::ostream> log;
     int count = 0;
     void send( std::shared_ptr<OpensslBIOWrapper> bio, RecordHeader& head, RecordHeader::SignerCommand cmd, std::string data );
 public:
     RemoteSigner( std::shared_ptr<BIO> target, std::shared_ptr<SSL_CTX> ctx );
     ~RemoteSigner();
     std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
+    void setLog( std::shared_ptr<std::ostream> target );
 };