equal
deleted
inserted
replaced
138 |
138 |
139 if not x509cert or not name then |
139 if not x509cert or not name then |
140 origin.send(st.error_reply(stanza, "cancel", "bad-request", "Missing fields.")); -- cancel? not modify? |
140 origin.send(st.error_reply(stanza, "cancel", "bad-request", "Missing fields.")); -- cancel? not modify? |
141 return true |
141 return true |
142 end |
142 end |
143 |
143 |
144 local can_manage = append:get_child("no-cert-management", xmlns_saslcert) ~= nil; |
144 local can_manage = append:get_child("no-cert-management", xmlns_saslcert) ~= nil; |
145 x509cert = x509cert:gsub("^%s*(.-)%s*$", "%1"); |
145 x509cert = x509cert:gsub("^%s*(.-)%s*$", "%1"); |
146 |
146 |
147 local cert = x509.load( |
147 local cert = x509.load( |
148 "-----BEGIN CERTIFICATE-----\n" |
148 "-----BEGIN CERTIFICATE-----\n" |