head.command = ( uint16_t ) cmd;
head.command_count++;
head.totalLength = data.size();
- sendCommand( head, data, bio );
+ sendCommand( head, data, bio, log );
}
}
RecordHeader head;
- std::string payload = parseCommand( head, std::string( buffer.data(), length ) );
+ std::string payload = parseCommand( head, std::string( buffer.data(), length ), log );
switch( ( RecordHeader::SignerResult ) head.command ) {
case RecordHeader::SignerResult::CERTIFICATE:
return result;
}
+void RemoteSigner::setLog( std::shared_ptr<std::ostream> target ) {
+ this->log = target;
+}