X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fio%2FrecordHandler.cpp;h=c46c84560d511c0f7ab338804210e27038769600;hb=3ea4de25c712971a35dbad27d8834d75933daa08;hp=56ebd29c30af6d6506f7e2b61aa985f12892e411;hpb=b9a325b540fd50bc5381877513ba2e632502ea7b;p=cassiopeia.git diff --git a/src/io/recordHandler.cpp b/src/io/recordHandler.cpp index 56ebd29..c46c845 100644 --- a/src/io/recordHandler.cpp +++ b/src/io/recordHandler.cpp @@ -128,6 +128,14 @@ public: tbs->profile = data; break; + case RecordHeader::SignerCommand::SET_WISH_FROM: + tbs->wishFrom = data; + break; + + case RecordHeader::SignerCommand::SET_WISH_TO: + tbs->wishTo = data; + break; + case RecordHeader::SignerCommand::ADD_SAN: { size_t pos = data.find( "," ); @@ -213,14 +221,8 @@ public: } }; -DefaultRecordHandler::DefaultRecordHandler( std::shared_ptr signer, std::shared_ptr bio ) : - currentSession() { - - this->signer = signer; - - ctx = generateSSLContext( true ); - - this->bio = bio; +DefaultRecordHandler::DefaultRecordHandler( std::shared_ptr signer, std::shared_ptr bio ) + : bio( bio ), ctx( generateSSLContext( true ) ), signer( signer ), currentSession() { } void DefaultRecordHandler::reset() {