X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Fio%2FrecordHandler.cpp;h=b79d3cc144b96d2c70d210306e989c7846e9792e;hb=7f424efc9d4ebbb89ce4e6bee10ca8ec839f29d8;hp=72442ce110742ac5b8c6366efb6cf31cc636b654;hpb=82849da8a9e36be282c13537fb7e14ad1f021d40;p=cassiopeia.git diff --git a/src/io/recordHandler.cpp b/src/io/recordHandler.cpp index 72442ce..b79d3cc 100644 --- a/src/io/recordHandler.cpp +++ b/src/io/recordHandler.cpp @@ -167,6 +167,7 @@ public: case RecordHeader::SignerCommand::LOG_SAVED: if( result ) { + respondCommand( RecordHeader::SignerResult::SIGNING_CA, result->ca_name ); respondCommand( RecordHeader::SignerResult::CERTIFICATE, result->certificate ); } @@ -207,6 +208,14 @@ public: respondCommand( RecordHeader::SignerResult::REVOKED, date + crl->getSignature() ); + break; + } + + case RecordHeader::SignerCommand::GET_FULL_CRL: { + auto ca = CAs.at( data ); + CRL c( ca->path + "/ca.crl" ); + respondCommand( RecordHeader::SignerResult::FULL_CRL, c.toString() ); + if( !SSL_shutdown( ssl.get() ) && !SSL_shutdown( ssl.get() ) ) { ( *log ) << "ERROR: SSL close failed" << std::endl; }