luci-app-ocserv: express PKID in a way that is acceptable by openconnect

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos 2015-01-19 18:24:48 +01:00
parent 52ecc90b31
commit d3104487b4

View file

@ -42,7 +42,7 @@ if fd then local ln
found_pki = true
elseif found_pki then
local hash = ln:match("([a-f0-9]+)")
o_pki.default = hash and hash:upper()
o_pki.default = hash and "sha1:" .. hash:upper()
complete = complete + 1
found_pki = false
end