Comparison

client.lua @ 452:628896d39d8e

client: Allow passing SCRAM hashes for use in authentication
author Kim Alvefur <zash@zash.se>
date Wed, 03 Aug 2022 02:59:09 +0200
parent 444:12c1be0044c6
child 457:73d4eb93657b
comparison
equal deleted inserted replaced
451:a0c55329c38d 452:628896d39d8e
70 end 70 end
71 self.notopen = true; 71 self.notopen = true;
72 return true; 72 return true;
73 end 73 end
74 74
75 function stream:connect_client(jid, pass) 75 function stream:connect_client(jid, pass, client_key, server_key)
76 self.jid, self.password = jid, pass; 76 self.jid, self.password = jid, pass;
77 self.client_key, self.server_key = client_key, server_key;
77 self.username, self.host, self.resource = jid_split(jid); 78 self.username, self.host, self.resource = jid_split(jid);
78 79
79 -- Required XMPP features 80 -- Required XMPP features
80 self:add_plugin("tls"); 81 self:add_plugin("tls");
81 self:add_plugin("sasl"); 82 self:add_plugin("sasl");