X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=5ef25571e7e1b24a8bd947a45a903d9547a8b28f;hb=aa1008be162cb27da938cce93ba533f54d228869;hp=101f52766ba377dd95a512d2bb29b60c2534333b;hpb=04315f46a16fc3627218377071e008b6b9744992;p=quassel.git diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 101f5276..5ef25571 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -363,6 +363,19 @@ void CoreNetwork::setCipherKey(const QString &target, const QByteArray &key) return; } } + + +bool CoreNetwork::cipherUsesCBC(const QString &target) +{ + CoreIrcChannel *c = qobject_cast(ircChannel(target)); + if (c) + return c->cipher()->usesCBC(); + CoreIrcUser *u = qobject_cast(ircUser(target)); + if (u) + return u->cipher()->usesCBC(); + + return false; +} #endif /* HAVE_QCA2 */ bool CoreNetwork::setAutoWhoDone(const QString &channel)