Fixed more missing namespaces
Summary: See the previous diffs, we pollute the global namespace here and there. Found some more missing namespace wrappers. Tried to wrap `FlipperStep` as well, which passed tests but gave weird linking errors in Wilde, so reverted that part (the name is not very ambiguous anyway) Reviewed By: cekkaewnumchai Differential Revision: D24193109 fbshipit-source-id: 111c479e421fdb321e898f948586229f30a7d777
This commit is contained in:
committed by
Facebook GitHub Bot
parent
05f4c0f54f
commit
ffbccf2331
@@ -14,6 +14,9 @@
|
||||
#include <openssl/rsa.h>
|
||||
#include <cstring>
|
||||
|
||||
namespace facebook {
|
||||
namespace flipper {
|
||||
|
||||
void free(
|
||||
EVP_PKEY* pKey,
|
||||
X509_REQ* x509_req,
|
||||
@@ -222,3 +225,6 @@ void free(
|
||||
BIO_free_all(privateKey);
|
||||
BIO_free_all(csrBio);
|
||||
}
|
||||
|
||||
} // namespace flipper
|
||||
} // namespace facebook
|
||||
|
||||
@@ -12,9 +12,15 @@
|
||||
#include <openssl/rsa.h>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace flipper {
|
||||
|
||||
bool generateCertSigningRequest(
|
||||
const char* appId,
|
||||
const char* csrFile,
|
||||
const char* privateKeyFile);
|
||||
|
||||
} // namespace flipper
|
||||
} // namespace facebook
|
||||
|
||||
#endif /* CertificateUtils_hpp */
|
||||
|
||||
@@ -57,7 +57,7 @@ std::string ConnectionContextStore::getCertificateSigningRequest() {
|
||||
|
||||
// Clean all state and generate a new one
|
||||
resetState();
|
||||
bool success = generateCertSigningRequest(
|
||||
bool success = facebook::flipper::generateCertSigningRequest(
|
||||
deviceData_.appId.c_str(),
|
||||
absoluteFilePath(CSR_FILE_NAME).c_str(),
|
||||
absoluteFilePath(PRIVATE_KEY_FILE).c_str());
|
||||
|
||||
Reference in New Issue
Block a user