48 bool write_kdbx4_ =
false;
51 bool use_cached_key_ =
true;
65 std::unique_ptr<Database> Import3(std::istream& src,
const Key& key);
73 std::unique_ptr<Database> Import4(std::istream& src,
const Key& key);
81 void Export3(std::ostream& dst,
const Database& db,
const Key& key);
89 void Export4(std::ostream& dst,
const Database& db,
const Key& key);
98 std::unique_ptr<Database>
Import(
const std::string& path,
const Key& key);
106 std::unique_ptr<Database>
Import(std::istream& src,
const Key& key);
Represents a KeePass (KDB/KDBX) database.
Definition database.hh:74
Keepass2 database file representation.
Definition kdbx.hh:45
void set_use_cached_key(bool use_cached_key)
Definition kdbx.hh:134
std::unique_ptr< Database > Import(const std::string &path, const Key &key)
Imports a KDBX database from a file path.
void set_resource_limits(const detail::ResourceLimits &limits)
std::unique_ptr< Database > Import(std::istream &src, const Key &key)
Imports a KDBX database from an input stream.
void set_write_kdbx4(bool write_kdbx4)
Definition kdbx.hh:125
void Export(std::ostream &dst, const Database &db, const Key &key)
Exports a database to an output stream in KDBX format.
bool use_cached_key() const
Definition kdbx.hh:137
void Export(const std::string &path, const Database &db, const Key &key)
Exports a database to a KDBX file.
Parses and serializes the KDBX XML body.
Definition kdbx_xml.hh:66
Manages database encryption keys for KDB and KDBX formats.
Definition key.hh:45
In-memory representation of a KeePass database.
Visibility/export macro for the shared library.
#define LIBKEEPASS_API
Marks a class, function or variable as part of the public ABI.
Definition export.hh:43
KDBX XML body parser and serializer.
Resource budgets enforced while importing (and parsing) databases.
Wrapper type for protecting sensitive KeePass field values.
Configurable resource budgets for database import and XML parsing.
Definition limits.hh:45