Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2010-09-25 14:41:00 +0400
committerFelix Geyer <debfx@fobos.de>2010-09-25 14:41:00 +0400
commite3da80fcc61476a931564cac98ea56186dabacce (patch)
tree20e201ce4a68b12045645c016b77c09951909a17 /src/streams/SymmetricCipherStream.cpp
parenta9ac4bbf41aa1d7f4f25f45ea5cc237894e1fb56 (diff)
Add KeePass2Writer.
Support attributes MasterKeyChanged, MasterKeyChangeRec, MasterKeyChangeForce and Tags. Close streams in the dtor.
Diffstat (limited to 'src/streams/SymmetricCipherStream.cpp')
-rw-r--r--src/streams/SymmetricCipherStream.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/streams/SymmetricCipherStream.cpp b/src/streams/SymmetricCipherStream.cpp
index fd7354727..edfbc0b74 100644
--- a/src/streams/SymmetricCipherStream.cpp
+++ b/src/streams/SymmetricCipherStream.cpp
@@ -28,6 +28,11 @@ SymmetricCipherStream::SymmetricCipherStream(QIODevice* baseDevice, SymmetricCip
m_cipher = new SymmetricCipher(algo, mode, direction, key, iv);
}
+SymmetricCipherStream::~SymmetricCipherStream()
+{
+ close();
+}
+
bool SymmetricCipherStream::reset()
{
if (isWritable()) {