Software /
code /
prosody
Comparison
util/sasl_cyrus.lua @ 3426:37b9b8e171b9
util.sasl_cyrus: Removed method:forbidden().
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 02 Aug 2010 18:46:13 +0500 |
parent | 3373:cd6836586a6a |
child | 3428:8a12ae696687 |
comparison
equal
deleted
inserted
replaced
3425:26751c628207 | 3426:37b9b8e171b9 |
---|---|
114 cyrussasl.setssf(sasl_i.cyrus, 0, 0xffffffff) | 114 cyrussasl.setssf(sasl_i.cyrus, 0, 0xffffffff) |
115 local s = setmetatable(sasl_i, method); | 115 local s = setmetatable(sasl_i, method); |
116 return s; | 116 return s; |
117 end | 117 end |
118 | 118 |
119 -- get a fresh clone with the same realm, profiles and forbidden mechanisms | 119 -- get a fresh clone with the same realm and service name |
120 function method:clean_clone() | 120 function method:clean_clone() |
121 return new(self.realm, self.service_name) | 121 return new(self.realm, self.service_name) |
122 end | |
123 | |
124 -- set the forbidden mechanisms | |
125 function method:forbidden( restrict ) | |
126 log("warn", "Called method:forbidden. NOT IMPLEMENTED.") | |
127 return {} | |
128 end | 122 end |
129 | 123 |
130 -- get a list of possible SASL mechanims to use | 124 -- get a list of possible SASL mechanims to use |
131 function method:mechanisms() | 125 function method:mechanisms() |
132 local mechanisms = self.mechs; | 126 local mechanisms = self.mechs; |