client: Allow passing SCRAM hashes for use in authentication

Wed, 03 Aug 2022 02:59:09 +0200

author
Kim Alvefur <zash@zash.se>
date
Wed, 03 Aug 2022 02:59:09 +0200
changeset 452
628896d39d8e
parent 451
a0c55329c38d
child 453
e60c776b7760

client: Allow passing SCRAM hashes for use in authentication

client.lua file | annotate | diff | comparison | revisions
--- a/client.lua	Wed Aug 03 02:47:55 2022 +0200
+++ b/client.lua	Wed Aug 03 02:59:09 2022 +0200
@@ -72,8 +72,9 @@
 	return true;
 end
 
-function stream:connect_client(jid, pass)
+function stream:connect_client(jid, pass, client_key, server_key)
 	self.jid, self.password = jid, pass;
+	self.client_key, self.server_key = client_key, server_key;
 	self.username, self.host, self.resource = jid_split(jid);
 
 	-- Required XMPP features

mercurial