代码拉取完成,页面将自动刷新
#pragma once
#include <sdbusplus/server/object.hpp>
#include <xyz/openbmc_project/Certs/CSR/server.hpp>
#include <string>
namespace phosphor::certs
{
enum class Status
{
success,
failure,
};
namespace internal
{
using CSRInterface = sdbusplus::server::object_t<
sdbusplus::xyz::openbmc_project::Certs::server::CSR>;
}
/** @class CSR
* @brief To read CSR certificate
*/
class CSR : public internal::CSRInterface
{
public:
CSR() = delete;
~CSR() = default;
CSR(const CSR&) = delete;
CSR& operator=(const CSR&) = delete;
CSR(CSR&&) = delete;
CSR& operator=(CSR&&) = delete;
/** @brief Constructor to put object onto bus at a D-Bus path.
* @param[in] bus - Bus to attach to.
* @param[in] path - The D-Bus object path to attach at.
* @param[in] installPath - Certificate installation path.
* @param[in] status - Status of Generate CSR request
*/
CSR(sdbusplus::bus_t& bus, const char* path, std::string&& installPath,
const Status& status);
/** @brief Return CSR
*/
std::string csr() override;
private:
/** @brief object path */
std::string objectPath;
/** @brief Certificate file installation path **/
std::string certInstallPath;
/** @brief Status of GenerateCSR request */
Status csrStatus;
};
} // namespace phosphor::certs
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。