Software /
code /
verse
Comparison
util/sasl/scram.lua @ 359:a7aa761a436d
util.sasl.scram: Fix typo
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Sep 2014 20:33:40 +0200 |
parent | 358:a8f6fd6a70ed |
child | 362:d8c3e94d765d |
comparison
equal
deleted
inserted
replaced
358:a8f6fd6a70ed | 359:a7aa761a436d |
---|---|
96 | 96 |
97 return function (stream, name) | 97 return function (stream, name) |
98 if stream.username and (stream.password or (stream.client_key or stream.server_key)) then | 98 if stream.username and (stream.password or (stream.client_key or stream.server_key)) then |
99 if name == "SCRAM-SHA-1" then | 99 if name == "SCRAM-SHA-1" then |
100 return scram, 99; | 100 return scram, 99; |
101 elseif name = "SCRAM-SHA-1-PLUS" then | 101 elseif name == "SCRAM-SHA-1-PLUS" then |
102 local sock = stream.conn:ssl() and stream.conn:socket(); | 102 local sock = stream.conn:ssl() and stream.conn:socket(); |
103 if sock and sock.getfinished then | 103 if sock and sock.getfinished then |
104 return scram, 100; | 104 return scram, 100; |
105 end | 105 end |
106 end | 106 end |