Home
last modified time | relevance | path

Searched refs:x509Req (Results 1 – 3 of 3) sorted by relevance

/openbmc/phosphor-certificate-manager/
H A Dcsr.cpp59 X509ReqPtr x509Req(PEM_read_X509_REQ(fp, nullptr, nullptr, nullptr), in csr() local
61 if (x509Req == nullptr || fp == nullptr) in csr()
74 int ret = PEM_write_bio_X509_REQ(bio.get(), x509Req.get()); in csr()
H A Dcerts_manager.cpp547 X509ReqPtr x509Req(X509_REQ_new(), ::X509_REQ_free); in generateCSRHelper() local
550 X509_NAME* x509Name = X509_REQ_get_subject_name(x509Req.get()); in generateCSRHelper()
607 ret = X509_REQ_set_pubkey(x509Req.get(), pKey.get()); in generateCSRHelper()
619 ret = X509_REQ_sign(x509Req.get(), pKey.get(), EVP_sha256()); in generateCSRHelper()
629 writeCSR(csrFilePath.string(), x509Req); in generateCSRHelper()
892 void Manager::writeCSR(const std::string& filePath, const X509ReqPtr& x509Req) in writeCSR() argument
916 int rc = PEM_write_X509_REQ(fp, x509Req.get()); in writeCSR()
H A Dcerts_manager.hpp270 const std::unique_ptr<X509_REQ, decltype(&::X509_REQ_free)>& x509Req);