X-Git-Url: https://code.wpia.club/?p=cassiopeia.git;a=blobdiff_plain;f=src%2Fcrypto%2FremoteSigner.cpp;fp=src%2Fcrypto%2FremoteSigner.cpp;h=c06af91bc3a48700300c6cd89fdb774d1e1289cb;hp=64ccebf36166b0db30bcf8ef639199f623fa4d3d;hb=25b4018f92fc3245ad91ff6c0d12fc5dacc3cadd;hpb=9c88683457862a86656172dfba127717bf41b86a diff --git a/src/crypto/remoteSigner.cpp b/src/crypto/remoteSigner.cpp index 64ccebf..c06af91 100644 --- a/src/crypto/remoteSigner.cpp +++ b/src/crypto/remoteSigner.cpp @@ -44,7 +44,13 @@ std::shared_ptr RemoteSigner::sign( std::shared_ptrmd ); - send( conn, head, RecordHeader::SignerCommand::SET_PROFILE, cert->profile ); + + if( !cert->ocspCA.empty() ) { + send( conn, head, RecordHeader::SignerCommand::SET_OCSP_TARGET_CA, cert->ocspCA ); + } else { + 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 );