X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=5ef25571e7e1b24a8bd947a45a903d9547a8b28f;hp=101f52766ba377dd95a512d2bb29b60c2534333b;hb=3972e140226f32760bb2606650f93132c188b2dc;hpb=e0781eeb34db0aaa775bd3439c1c98103437f009 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)