Software /
code /
prosody-modules
Comparison
mod_client_certs/mod_client_certs.lua @ 1343:7dbde05b48a9
all the things: Remove trailing whitespace
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Tue, 11 Mar 2014 18:44:01 +0100 |
parent | 1096:1abb8f2a5761 |
child | 1779:bdf1de953fd9 |
comparison
equal
deleted
inserted
replaced
1342:0ae065453dc9 | 1343:7dbde05b48a9 |
---|---|
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" |