util/sasl/scram.lua
changeset 12132 593e823566e1
parent 12028 9184bdda22be
child 12600 78f874441e21
equal deleted inserted replaced
12131:baa7cdde69a6 12132:593e823566e1
    39 Supported Channel Binding Backends
    39 Supported Channel Binding Backends
    40 
    40 
    41 'tls-unique' according to RFC 5929
    41 'tls-unique' according to RFC 5929
    42 ]]
    42 ]]
    43 
    43 
    44 local default_i = 4096
    44 local default_i = 10000
    45 
    45 
    46 local function validate_username(username, _nodeprep)
    46 local function validate_username(username, _nodeprep)
    47 	-- check for forbidden char sequences
    47 	-- check for forbidden char sequences
    48 	for eq in username:gmatch("=(.?.?)") do
    48 	for eq in username:gmatch("=(.?.?)") do
    49 		if eq ~= "2C" and eq ~= "3D" then
    49 		if eq ~= "2C" and eq ~= "3D" then