Summary: From sonar* to flipper*. Reviewed By: priteshrnandgaonkar Differential Revision: D9944461 fbshipit-source-id: 870997e3d1d5aaef73dd445e6d94615f93fe6abc
34 lines
711 B
C++
34 lines
711 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <folly/io/async/SSLContext.h>
|
|
#include <folly/dynamic.h>
|
|
#include "FlipperInitConfig.h"
|
|
|
|
using namespace folly;
|
|
|
|
namespace facebook {
|
|
namespace flipper {
|
|
|
|
class ConnectionContextStore {
|
|
|
|
public:
|
|
ConnectionContextStore(DeviceData deviceData);
|
|
bool hasRequiredFiles();
|
|
std::string createCertificateSigningRequest();
|
|
std::shared_ptr<SSLContext> getSSLContext();
|
|
std::string getCertificateDirectoryPath();
|
|
std::string getDeviceId();
|
|
void storeConnectionConfig(folly::dynamic& config);
|
|
|
|
private:
|
|
DeviceData deviceData_;
|
|
|
|
std::string absoluteFilePath(const char* filename);
|
|
bool ensureFlipperDirExists();
|
|
|
|
};
|
|
|
|
} // namespace flipper
|
|
} //namespace facebook
|