Searched refs:JsonOutput (Results 1 – 2 of 2) sorted by relevance
90 struct JsonOutput { struct91 static JsonOutput Ok(std::string json) { return {std::move(json), ""}; } in Ok() argument92 static JsonOutput Error(std::string error) { return {"", std::move(error)}; } in Error() argument110 JsonOutput jsonEncodeCsrWithBuild(const cppbor::Array& csr); argument
185 JsonOutput jsonEncodeCsrWithBuild(const cppbor::Array& csr) { in jsonEncodeCsrWithBuild()189 return JsonOutput::Error("Unable to read build fingerprint"); in jsonEncodeCsrWithBuild()196 return JsonOutput::Error("Error getting base64 length. Size overflow?"); in jsonEncodeCsrWithBuild()203 return JsonOutput::Error("Error writing base64. Expected " + std::to_string(base64Length) + in jsonEncodeCsrWithBuild()214 return JsonOutput::Ok(Json::writeString(factory, json)); in jsonEncodeCsrWithBuild()