Software /
code /
verse
File
util/sasl/plain.lua @ 356:f95e797895ee
SCRAM: Add channel binding support (SCRAM-SHA-1-PLUS)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Sep 2014 19:03:15 +0200 |
parent | 354:58cd27b74ba5 |
child | 358:a8f6fd6a70ed |
line wrap: on
line source
return function (stream, mechanisms, preference) if stream.username and stream.password then mechanisms["PLAIN"] = function (stream) return "success" == coroutine.yield("\0"..stream.username.."\0"..stream.password); end; preference["PLAIN"] = 5; end end