X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fio%2FrecordHandler.cpp;h=672712813a579197b7bd736bfdcb4c2169503aec;hb=ee6b02b81d1fd34e2735518d3683f4db3118f247;hp=2ba71c2675b821080fc39617523d6bd0096b4bc0;hpb=cb4c74b47e6643f15e503067c197f86cbc5e6263;p=cassiopeia.git diff --git a/src/io/recordHandler.cpp b/src/io/recordHandler.cpp index 2ba71c2..6727128 100644 --- a/src/io/recordHandler.cpp +++ b/src/io/recordHandler.cpp @@ -38,7 +38,9 @@ public: std::vector serials; RecordHandlerSession( DefaultRecordHandler* parent, std::shared_ptr signer, std::shared_ptr ctx, std::shared_ptr output ) : - tbs( new TBSCertificate() ) { + sessid( 0 ), + lastCommandCount( 0 ), + tbs( new TBSCertificate() ){ this->parent = parent; this->signer = signer; time_t c_time; @@ -110,13 +112,13 @@ public: case RecordHeader::SignerCommand::SET_CSR: tbs->csr_content = data; tbs->csr_type = "CSR"; - ( *log ) << "INFO: CSR read:" << std::endl << tbs->csr_content; + ( *log ) << "INFO: CSR read: " << tbs->csr_content << std::endl; break; case RecordHeader::SignerCommand::SET_SPKAC: tbs->csr_content = data; tbs->csr_type = "SPKAC"; - ( *log ) << "INFO: SPKAC read:" << std::endl << tbs->csr_content; + ( *log ) << "INFO: SPKAC read: " << tbs->csr_content << std::endl; break; case RecordHeader::SignerCommand::SET_SIGNATURE_TYPE: @@ -221,14 +223,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() {