}
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;
if( cert->csr_type == "CSR" ) {
send( conn, head, RecordHeader::SignerCommand::SET_CSR, cert->csr_content );
+ } else if( cert->csr_type == "SPKAC" ) {
+ send( conn, head, RecordHeader::SignerCommand::SET_SPKAC, cert->csr_content );
} else {
std::cout << "Unknown csr_type: " << cert->csr_type;
return std::shared_ptr<SignedCertificate>();