Skip to content

Commit

Permalink
Add resetState documentation
Browse files Browse the repository at this point in the history
Summary:
Add documentation to `ConnectionContextStore::resetState`.

Useful to have, I guess.

Reviewed By: passy

Differential Revision: D46849937

fbshipit-source-id: 7dec76e23b566f460f0b22e0fa14b73e16a142f0
  • Loading branch information
lblasa authored and facebook-github-bot committed Jun 21, 2023
1 parent 5e5b56b commit 3f64249
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xplat/Flipper/ConnectionContextStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ class ConnectionContextStore {
*/
folly::Optional<FlipperCertificateExchangeMedium> getLastKnownMedium();
void storeConnectionConfig(folly::dynamic& config);
/**
* Reset state just removes all certificate exchange related files stored on
* the client. These are:
* - Certificate Sign Request (CSR)
* - CA Certificate
* - Server Certificate
* - Client Certificate
* - Client Key
* - Configuration file (includes device identifier)
*/
bool resetState();

/** Convert and save to disk the existing certificate to PKCS #12 format.
Expand Down

0 comments on commit 3f64249

Please sign in to comment.