X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcrypto%2FremoteSigner.cpp;h=b6c7c317d30047cf703c4c1824bb9c8836031ba2;hb=0141e5a371a97b0cb409d168ea8401bcb4f30923;hp=6c842d4a6fd08b5db87689427a7b86537f310fcb;hpb=b9a325b540fd50bc5381877513ba2e632502ea7b;p=cassiopeia.git diff --git a/src/crypto/remoteSigner.cpp b/src/crypto/remoteSigner.cpp index 6c842d4..b6c7c31 100644 --- a/src/crypto/remoteSigner.cpp +++ b/src/crypto/remoteSigner.cpp @@ -6,9 +6,7 @@ #include #include -RemoteSigner::RemoteSigner( std::shared_ptr target, std::shared_ptr ctx ) { - this->target = target; - this->ctx = ctx; +RemoteSigner::RemoteSigner( std::shared_ptr target, std::shared_ptr ctx ) : target( target ), ctx( ctx ) { } RemoteSigner::~RemoteSigner() { @@ -46,6 +44,8 @@ std::shared_ptr RemoteSigner::sign( std::shared_ptrmd ); send( conn, head, RecordHeader::SignerCommand::SET_PROFILE, cert->profile ); + send( conn, head, RecordHeader::SignerCommand::SET_WISH_FROM, cert->wishFrom ); + send( conn, head, RecordHeader::SignerCommand::SET_WISH_TO, cert->wishTo ); for( auto ava : cert->AVAs ) { if( ava->name.find( "," ) != std::string::npos ) {