56 std::string *errorMessage =
nullptr,
bool delete_client_identity(std::string *errorMessage, const std::string &directoryPath)
Delete persisted client identity material from disk.
Definition client_identity_storage.cpp:147
SaveClientIdentityResult save_client_identity(const network::PairingIdentity &identity, const std::string &directoryPath)
Save client pairing identity material to disk.
Definition client_identity_storage.cpp:159
std::string default_client_identity_directory()
Return the default directory used to store pairing identity files.
Definition client_identity_storage.cpp:101
LoadClientIdentityResult load_client_identity(const std::string &directoryPath)
Load persisted client pairing identity material from disk.
Definition client_identity_storage.cpp:105
Declares host pairing helpers.
Client identity material used for Moonlight host pairing.
Definition host_pairing.h:20
Result of loading persisted client pairing identity material.
Definition client_identity_storage.h:19
std::vector< std::string > warnings
Non-fatal warnings encountered while loading.
Definition client_identity_storage.h:21
bool fileFound
True when persisted identity files were present.
Definition client_identity_storage.h:22
network::PairingIdentity identity
Loaded client identity, or an empty identity when unavailable.
Definition client_identity_storage.h:20
Result of saving client pairing identity material.
Definition client_identity_storage.h:28
std::string errorMessage
Error detail when saving failed.
Definition client_identity_storage.h:30
bool success
True when the identity was saved successfully.
Definition client_identity_storage.h:29