Be explicit about types stored in config file

This commit is contained in:
Sebastian Messmer 2016-06-26 15:37:00 -07:00
parent b838046246
commit 7b56706c1a

View File

@ -67,10 +67,10 @@ Data CryConfig::save() const {
pt.put<uint64_t>("cryfs.blocksizeBytes", _blocksizeBytes); pt.put<uint64_t>("cryfs.blocksizeBytes", _blocksizeBytes);
pt.put<string>("cryfs.filesystemId", _filesystemId.ToString()); pt.put<string>("cryfs.filesystemId", _filesystemId.ToString());
if (_exclusiveClientId != none) { if (_exclusiveClientId != none) {
pt.put("cryfs.exclusiveClientId", *_exclusiveClientId); pt.put<uint32_t>("cryfs.exclusiveClientId", *_exclusiveClientId);
} }
#ifndef CRYFS_NO_COMPATIBILITY #ifndef CRYFS_NO_COMPATIBILITY
pt.put("cryfs.migrations.hasVersionNumbers", _hasVersionNumbers); pt.put<bool>("cryfs.migrations.hasVersionNumbers", _hasVersionNumbers);
#endif #endif
stringstream stream; stringstream stream;