| /openbmc/pldm/oem/ibm/libpldmresponder/ |
| H A D | file_io_type_cert.cpp | 58 std::string filePath = certFilePath; in readIntoMemory() local 59 filePath += "CSR_" + std::to_string(fileHandle); in readIntoMemory() 64 auto rc = transferFileData(filePath.c_str(), true, offset, length, address); in readIntoMemory() 65 fs::remove(filePath); in readIntoMemory() 79 std::string filePath = certFilePath; in read() local 80 filePath += "CSR_" + std::to_string(fileHandle); in read() 85 auto rc = readFile(filePath.c_str(), offset, length, response); in read() 86 fs::remove(filePath); in read() 137 std::string filePath = certFilePath; in write() local 138 filePath += "ClientCert_" + std::to_string(fileHandle); in write() [all …]
|
| H A D | file_io_by_type.cpp | 187 int FileHandler::readFile(const std::string& filePath, uint32_t offset, in readFile() argument 190 if (!fs::exists(filePath)) in readFile() 193 filePath, "FILE_HANDLE", fileHandle); in readFile() 197 size_t fileSize = fs::file_size(filePath); in readFile() 215 std::ifstream stream(filePath, std::ios::in | std::ios::binary); in readFile() 224 "PATH", filePath, "OFFSET", offset, "LENGTH", length); in readFile()
|
| /openbmc/phosphor-ipmi-flash/tools/test/ |
| H A D | tools_bt_unittest.cpp | 42 const std::string filePath = "/asdf"; member in host_tool::__anon753fe9300111::BtHandlerTest 54 EXPECT_CALL(sysMock, open(Eq(filePath), _)).WillOnce(Return(fd)); in TEST_F() 55 EXPECT_CALL(sysMock, getSize(Eq(filePath))).WillOnce(Return(fakeFileSize)); in TEST_F() 73 EXPECT_TRUE(handler->sendContents(filePath, session)); in TEST_F() 81 EXPECT_CALL(sysMock, open(Eq(filePath), _)).WillOnce(Return(-1)); in TEST_F() 83 EXPECT_FALSE(handler->sendContents(filePath, session)); in TEST_F() 96 EXPECT_CALL(sysMock, open(Eq(filePath), _)).WillOnce(Return(fd)); in TEST_F() 97 EXPECT_CALL(sysMock, getSize(Eq(filePath))).WillOnce(Return(fakeFileSize)); in TEST_F() 113 EXPECT_FALSE(handler->sendContents(filePath, session)); in TEST_F()
|
| H A D | tools_net_unittest.cpp | 55 EXPECT_CALL(sysMock, open(StrEq(filePath.c_str()), _)) in expectOpenFile() 58 EXPECT_CALL(sysMock, getSize(StrEq(filePath.c_str()))) in expectOpenFile() 97 const std::string filePath = "/asdf"s; member in host_tool::__anon925496610111::NetHandleTest 108 EXPECT_CALL(sysMock, open(StrEq(filePath.c_str()), _)) in TEST_F() 111 EXPECT_FALSE(handler.sendContents(filePath, session)); in TEST_F() 126 EXPECT_FALSE(handler.sendContents(filePath, session)); in TEST_F() 142 EXPECT_FALSE(handler.sendContents(filePath, session)); in TEST_F() 154 EXPECT_FALSE(handler.sendContents(filePath, session)); in TEST_F() 183 EXPECT_TRUE(handler.sendContents(filePath, session)); in TEST_F() 217 EXPECT_TRUE(handler.sendContents(filePath, session)); in TEST_F() [all …]
|
| H A D | tools_lpc_unittest.cpp | 38 std::string filePath = "/asdf"; in TEST() local 53 EXPECT_CALL(sysMock, open(StrEq(filePath.c_str()), _)) in TEST() 55 EXPECT_CALL(sysMock, getSize(StrEq(filePath.c_str()))) in TEST() 75 EXPECT_TRUE(handler.sendContents(filePath, session)); in TEST()
|
| /openbmc/phosphor-certificate-manager/ |
| H A D | certificate.cpp | 141 char* filePath = tempnam(directoryPath.c_str(), nullptr); in generateUniqueFilePath() local 142 if (filePath == nullptr) in generateUniqueFilePath() 149 std::string filePathStr(filePath); in generateUniqueFilePath() 150 free(filePath); in generateUniqueFilePath() 226 auto installHelper = [this](const auto& filePath) { in Certificate() argument 227 if (!compareKeys(filePath)) in Certificate() 237 auto appendPrivateKey = [this](const std::string& filePath) { in Certificate() argument 238 checkAndAppendPrivateKey(filePath); in Certificate() 283 void Certificate::replace(const std::string filePath) in replace() argument 285 manager.replaceCertificate(this, filePath); in replace() [all …]
|
| H A D | certs_manager.cpp | 252 std::string Manager::install(const std::string filePath) in install() argument 265 if (isCertificateUnique(filePath)) in install() 269 bus, certObjectPath, certType, certInstallPath, filePath, in install() 283 const std::string filePath) in installAll() argument 299 fs::path sourceFile(filePath); in installAll() 302 lg2::error("File is Missing, FILE:{FILE}", "FILE", filePath); in installAll() 369 std::string filePath) in replaceAll() argument 374 return installAll(std::move(filePath)); in replaceAll() 422 const std::string& filePath) in replaceCertificate() argument 424 if (isCertificateUnique(filePath, certificate)) in replaceCertificate() [all …]
|
| H A D | x509_utils.cpp | 91 X509Ptr loadCert(const std::string& filePath) in loadCert() argument 99 "FILE", filePath, "ERRCODE", ERR_get_error()); in loadCert() 103 BIOMemPtr bioCert(BIO_new_file(filePath.c_str(), "rb"), ::BIO_free); in loadCert() 107 "FILE", filePath); in loadCert() 115 "FILE", filePath); in loadCert()
|
| H A D | certificate.hpp | 133 void install(const std::string& filePath, bool restore); 148 void replace(const std::string filePath) override; 236 void checkAndAppendPrivateKey(const std::string& filePath); 245 bool compareKeys(const std::string& filePath);
|
| /openbmc/bmcweb/include/ |
| H A D | duplicatable_file_handle.hpp | 21 std::string filePath; member 42 filePath = (tempDir / "XXXXXXXXXXX").string(); in DuplicatableFileHandle() 44 int fd = mkstemp(filePath.data()); in DuplicatableFileHandle() 85 if (!filePath.empty()) in ~DuplicatableFileHandle() 87 std::filesystem::remove(filePath); in ~DuplicatableFileHandle()
|
| /openbmc/phosphor-debug-collector/ |
| H A D | bmc_dump_entry.hpp | 88 const std::filesystem::path& filePath) in update() argument 94 file = filePath; in update() 119 const std::filesystem::path& filePath, phosphor::dump::Manager& parent) in deserializeEntry() argument 124 new Entry(bus, objPath, id, filePath, parent)); in deserializeEntry() 125 entry->updateFromFile(filePath); in deserializeEntry() 126 entry->deserialize(filePath.parent_path()); in deserializeEntry() 134 "PATH", filePath, "ERROR", e.what()); in deserializeEntry()
|
| H A D | ramoops_manager_main.cpp | 10 std::filesystem::path filePath(SYSTEMD_PSTORE_PATH); in main() local 11 if (!std::filesystem::exists(filePath)) in main() 14 "FILE_PATH", filePath); in main()
|
| H A D | dump_manager_bmc.hpp | 54 const std::string& baseEntryPath, const char* filePath) : in Manager() argument 60 filePath, in Manager() 63 dumpDir(filePath) in Manager()
|
| /openbmc/phosphor-psu-code-mgmt/src/ |
| H A D | version.cpp | 28 const std::string& filePath, const std::vector<std::string>& keys) in getValues() argument 30 if (filePath.empty()) in getValues() 34 Argument::ARGUMENT_VALUE(filePath.c_str())); in getValues() 37 std::ifstream efile(filePath); in getValues() 62 std::string Version::getValue(const std::string& filePath, in getValue() argument 66 auto values = Version::getValues(filePath, {key}); in getValue()
|
| /openbmc/phosphor-psu-code-mgmt/test/ |
| H A D | test_activation.cpp | 81 std::string filePath = "/tmp/images/abcdefgh"; member in TestActivation 91 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() 99 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() 108 filePath = "/tmp/images/12345678"; in TEST_F() 112 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() 122 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() 143 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() 172 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() 224 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() 256 filePath, &mockedAssociationInterface, &mockedActivationListener); in TEST_F() [all …]
|
| /openbmc/telemetry/src/ |
| H A D | persistent_json_storage.cpp | 33 void PersistentJsonStorage::store(const FilePath& filePath, in store() argument 38 const auto path = join(directory, filePath); in store() 66 remove(filePath); in store() 71 bool PersistentJsonStorage::remove(const FilePath& filePath) in remove() argument 73 const auto path = join(directory, filePath); in remove() 99 const FilePath& filePath) const in load() 101 const auto path = join(directory, filePath); in load()
|
| /openbmc/phosphor-user-manager/phosphor-ldap-config/ |
| H A D | ldap_mapper_entry.cpp | 16 const char* filePath, in LDAPMapperEntry() argument 21 persistPath(filePath) in LDAPMapperEntry() 29 const char* filePath, Config& parent) : in LDAPMapperEntry() argument 32 persistPath(filePath) in LDAPMapperEntry()
|
| /openbmc/phosphor-logging/phosphor-rsyslog-config/ |
| H A D | server-conf.hpp | 43 const char* filePath) : in Server() argument 45 configFilePath(filePath), in Server() 101 TransportProtocol protocol, const char* filePath); 112 void restore(const char* filePath);
|
| /openbmc/bmcweb/test/http/ |
| H A D | http_response_test.cpp | 90 res.openFile(temporaryFile.filePath); in TEST() 99 FILE* fd = fopen(temporaryFile.filePath.c_str(), "r+"); in TEST() 111 FILE* fd = fopen(temporaryFile.filePath.c_str(), "r"); in TEST() 123 res.openFile(temporaryFile.filePath); in TEST() 154 FILE* f = fopen(temporaryFile.filePath.c_str(), "r+"); in TEST() 169 file.open(temporaryFile.filePath.c_str(), boost::beast::file_mode::read, in TEST() 184 file.open(temporaryFile.filePath.c_str(), boost::beast::file_mode::read, in TEST()
|
| /openbmc/bmcweb/test/include/ |
| H A D | ssl_key_handler_test.cpp | 22 writeCertificateToFile(myFile.filePath, cert); in TEST() 24 std::string cert2 = verifyOpensslKeyCert(myFile.filePath); in TEST()
|
| /openbmc/bios-bmc-smm-error-logger/src/rde/ |
| H A D | notifier_dbus_handler.cpp | 15 void CperFileNotifierHandler::createEntry(const std::string& filePath) in createEntry() argument 18 std::make_unique<CperFileNotifier>(objServer, filePath, nextEntry); in createEntry()
|
| /openbmc/openpower-pnor-code-mgmt/ |
| H A D | item_updater.cpp | 35 std::string filePath; in createActivation() local 69 filePath = std::get<std::string>(property.second); in createActivation() 74 if ((filePath.empty()) || (purpose == VersionPurpose::Unknown)) in createActivation() 95 if (validateImage(filePath)) in createActivation() 104 fs::path manifestPath(filePath); in createActivation() 118 createVersionObject(path, versionId, version, purpose, filePath); in createActivation()
|
| /openbmc/bios-bmc-smm-error-logger/include/dbus/ |
| H A D | file_notifier.hpp | 26 const std::string& filePath, uint64_t entry) : in CperFileNotifier() argument 31 pathIface->register_property("Path", filePath); in CperFileNotifier()
|
| /openbmc/phosphor-modbus/rtu/port/ |
| H A D | usb_port.cpp | 53 auto filePath = entry.path(); in getDevicePath() local 54 if (std::regex_search(filePath.filename().string(), pattern)) in getDevicePath() 57 fs::read_symlink(filePath).filename().string()); in getDevicePath()
|
| /openbmc/phosphor-logging/test/ |
| H A D | remote_logging_tests.hpp | 29 const char* filePath) : in MockServer() argument 30 phosphor::rsyslog_config::Server(bus, path, filePath) in MockServer()
|