ocserv: fix the public key ID calculation
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 14 Dec 2019 08:55:11 +0000 (09:55 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 16 Dec 2019 17:15:14 +0000 (18:15 +0100)
commit391258f4f6363fcfc8f47d7d85b5ff53878b42dd
tree747f4f258fcf74228664a857b51907740e95b8f9
parent6aeda9c4c82ca8cc510e329db391cca965509ab8
ocserv: fix the public key ID calculation

New versions of certtool change its output format and thus break
the previous parsing. This update works with certtool 3.5.x or later.
It also restricts the output to valid values for openconnect 7.x or
later for simplification.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
(cherry picked from commit c81ca8dae3e914b41b754e1cdc7cad3aeead9e66)
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua