3 #include <openssl/ssl.h>
8 #include "opensslBIO.h"
12 class RemoteSigner : public Signer {
14 std::shared_ptr<BIO> target;
15 std::shared_ptr<SSL_CTX> ctx;
16 std::shared_ptr<std::ostream> log;
18 void send( std::shared_ptr<OpensslBIOWrapper> bio, RecordHeader& head, RecordHeader::SignerCommand cmd, std::string data );
20 RemoteSigner( std::shared_ptr<BIO> target, std::shared_ptr<SSL_CTX> ctx );
22 std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
23 void setLog( std::shared_ptr<std::ostream> target );