comparison mod_s2s_auth_posh/mod_s2s_auth_posh.lua @ 3289:f2037a754480

mod_s2s_auth_posh: Be a tiny bit stricter with types
author Kim Alvefur <zash@zash.se>
date Sat, 25 Aug 2018 20:10:21 +0200
parents 3eee4029ac6c
children 58a112bd9792
comparison
equal deleted inserted replaced
3288:3eee4029ac6c 3289:f2037a754480
97 end 97 end
98 local posh = session.posh; 98 local posh = session.posh;
99 local jwk = posh and posh.jwk; 99 local jwk = posh and posh.jwk;
100 local fingerprints = jwk and jwk.fingerprints; 100 local fingerprints = jwk and jwk.fingerprints;
101 101
102 if not fingerprints then 102 if type(fingerprints) ~= "table" then
103 log("debug", "No POSH authentication data available"); 103 log("debug", "No POSH authentication data available");
104 return; 104 return;
105 end 105 end
106 106
107 local cert_der = pem2der(cert:pem()); 107 local cert_der = pem2der(cert:pem());