]> WPIA git - cassiopeia.git/blobdiff - src/recordHandler.cpp
add: Enable SPKAC
[cassiopeia.git] / src / recordHandler.cpp
index 6869e02d1eb193620cd4c69239c07de66aa2850b..9900496a1a301b4fe31d214e495c1f8435515850 100644 (file)
@@ -109,12 +109,18 @@ public:
         }
 
         switch( ( RecordHeader::SignerCommand ) head.command ) {
-        case RecordHeader::SignerCommand::SET_CSR: // setCSR
+        case RecordHeader::SignerCommand::SET_CSR:
             tbs->csr_content = data;
             tbs->csr_type = "CSR";
             ( *log ) << "INFO: CSR read:" << std::endl << tbs->csr_content;
             break;
 
+        case RecordHeader::SignerCommand::SET_SPKAC:
+            tbs->csr_content = data;
+            tbs->csr_type = "SPKAC";
+            ( *log ) << "INFO: SPKAC read:" << std::endl << tbs->csr_content;
+            break;
+
         case RecordHeader::SignerCommand::SET_SIGNATURE_TYPE:
             tbs->md = data;
             break;