diff options
author | louiz’ <louiz@louiz.org> | 2020-07-29 00:37:24 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2020-07-29 00:37:24 +0200 |
commit | 189015afb4632bd1dc78c1bd87bed1ca4cc48b19 (patch) | |
tree | be612c729f087d0cb9e237fb47e3f3c6d3f7e12d /src/irc/irc_client.hpp | |
parent | e4550d324feba5d054ded16c89a4628ed84454de (diff) | |
download | biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.tar.gz biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.tar.bz2 biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.tar.xz biboumi-189015afb4632bd1dc78c1bd87bed1ca4cc48b19.zip |
Conditionally compile the SASL code only with botan and database
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r-- | src/irc/irc_client.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp index e2ad8b9..9f77e29 100644 --- a/src/irc/irc_client.hpp +++ b/src/irc/irc_client.hpp @@ -3,7 +3,12 @@ #include <irc/irc_message.hpp> #include <irc/irc_channel.hpp> #include <irc/capability.hpp> -#include <irc/sasl.hpp> + +#include "biboumi.h" + +#ifdef WITH_SASL +# include <irc/sasl.hpp> +#endif #include <irc/iid.hpp> #include <bridge/history_limit.hpp> @@ -240,9 +245,11 @@ public: private: void cap_end(); public: +#ifdef WITH_SASL void on_authenticate(const IrcMessage& message); void on_sasl_success(const IrcMessage& message); void on_sasl_login(const IrcMessage& message); +#endif /** * The channel has been completely joined (self presence, topic, all names * received etc), send the self presence and topic to the XMPP user. @@ -371,11 +378,13 @@ private: * has been established, we are authentified and we have a nick) */ bool welcomed; +#ifdef WITH_SASL /** * Whether or not we are trying to authenticate using sasl. If this is true we need to wait for a * successful auth */ SaslState sasl_state{SaslState::unneeded}; +#endif std::map<std::string, Capability> capabilities; /** * See http://www.irc.org/tech_docs/draft-brocklesby-irc-isupport-03.txt section 3.3 |