]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Pulse: one more known failcode (0x0e = client cert required)
authorDaniel Lenski <dlenski@gmail.com>
Tue, 15 Dec 2020 18:02:21 +0000 (10:02 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 25 Jan 2021 21:17:50 +0000 (13:17 -0800)
Verified by connecting to a Pulse server which requires a client cert,
without providing one via -c/-k.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
pulse.c

diff --git a/pulse.c b/pulse.c
index fb8676d18134e8331e31fd697ba82a618ccc4fe3..582cbdceaa86f0796036520d01b08cb78f6b9ba2 100644 (file)
--- a/pulse.c
+++ b/pulse.c
@@ -1710,6 +1710,9 @@ static int pulse_authenticate(struct openconnect_info *vpninfo, int connecting)
                        if (failcode == 0x0d) {
                                vpn_progress(vpninfo, PRG_ERR,
                                             _("Authentication failure: Account locked out\n"));
+                       } else if (failcode == 0x0e) {
+                               vpn_progress(vpninfo, PRG_ERR,
+                                            _("Authentication failure: Client certificate required\n"));
                        } else {
                                vpn_progress(vpninfo, PRG_ERR,
                                             _("Authentication failure: Code 0x%02x\n"),