summaryrefslogtreecommitdiffstats
path: root/Sluift
diff options
context:
space:
mode:
authorEdwin Mons <edwin.mons@isode.com>2013-11-19 17:21:57 (GMT)
committerEdwin Mons <edwin.mons@isode.com>2013-11-19 17:21:57 (GMT)
commit6bae543da16d6579244de5c7c1ced88e66287265 (patch)
treef2b5947e389bd570383918fec5e9e0ac947b7049 /Sluift
parent3dfd467727be84089dd8c39aac2df4f7ee9b43aa (diff)
downloadswift-6bae543da16d6579244de5c7c1ced88e66287265.zip
swift-6bae543da16d6579244de5c7c1ced88e66287265.tar.bz2
Sluift: add allow_plain_without_tls client option
Change-Id: Ieef0e455bb13e9ee38d583bee87ebb7e506bd00c
Diffstat (limited to 'Sluift')
-rw-r--r--Sluift/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Sluift/client.cpp b/Sluift/client.cpp
index d6f876f..c1be73e 100644
--- a/Sluift/client.cpp
+++ b/Sluift/client.cpp
@@ -344,6 +344,10 @@ SLUIFT_LUA_FUNCTION(Client, set_options) {
if (!lua_isnil(L, -1)) {
client->getOptions().boshURL = URL::fromString(lua_tostring(L, -1));
}
+ lua_getfield(L, 2, "allow_plain_without_tls");
+ if (!lua_isnil(L, -1)) {
+ client->getOptions().allowPLAINWithoutTLS = lua_toboolean(L, -1);
+ }
lua_pushvalue(L, 1);
return 0;
}