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 );
};