133 #include "../core/stdafx.hpp"
137 #include "../core/util/OTDataFolder.hpp"
138 #include "../core/util/OTPaths.hpp"
145 #ifdef OT_CASH_USING_MAGIC_MONEY
159 void CleanupDumpFile(
const char* filepathexact)
161 std::fstream f(filepathexact, std::ios::in);
165 f.open(filepathexact, std::ios::out | std::ios::trunc);
167 remove(filepathexact);
171 void SetDumper(
const char* filepathexact)
174 CleanupDumpFile(filepathexact);
175 BIO* out = BIO_new_file(filepathexact,
"w");
183 #ifdef OT_CASH_USING_LUCRE
190 OTString strOpenSSLDumpFilename(
"openssl.dumpfile"), strOpenSSLDumpFilePath,
195 "_OT_LucreDumper(): Failed to Get Data Path");
197 strOpenSSLDumpFilePath, strDataPath, strOpenSSLDumpFilename);
199 "_OT_LucreDumper(): Unable To Build Full Path");
201 strOpenSSLDumpFilename.Set(
"");
211 m_str_dumpfile = strOpenSSLDumpFilePath.
Get();
212 strOpenSSLDumpFilePath.
Set(
"");
223 CleanupDumpFile(m_str_dumpfile.c_str());
228 #else // No digital cash lib is selected? Perhaps error message here?
230 #endif // Which digital cash library we're using.
static EXPORT bool RelativeToCanonical(OTString &out_strCanonicalPath, const OTString &strBasePath, const OTString &strRelativePath)
EXPORT void Set(const char *data, uint32_t enforcedMaxLength=0)
#define OT_ASSERT_MSG(x, s)
EXPORT const char * Get() const
static EXPORT OTString Get()