projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test: Add build system support and a main function for unit tests
[quassel.git]
/
src
/
core
/
cipher.cpp
diff --git
a/src/core/cipher.cpp
b/src/core/cipher.cpp
index
fb6a697
..
c5a40c2
100644
(file)
--- a/
src/core/cipher.cpp
+++ b/
src/core/cipher.cpp
@@
-30,9
+30,6
@@
Cipher::Cipher(QByteArray key, QString cipherType)
}
-Cipher::~Cipher()
-{}
-
bool Cipher::setKey(QByteArray key)
{
if (key.isEmpty()) {
@@
-56,7
+53,8
@@
bool Cipher::setKey(QByteArray key)
// if(Preferences::self()->encryptionType())
// m_cbc = true;
// else
- m_cbc = false;
+// default to CBC
+ m_cbc = true;
m_key = key;
}
return true;