From 879e25ad9bec30a331ee9048103e624bf8ca6f3b Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Sat, 8 Sep 2018 13:51:26 -0700 Subject: [PATCH] catch 'Valid client certificate is required' as EPERM Signed-off-by: Daniel Lenski --- gpst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpst.c b/gpst.c index 85aea223..fb75d67b 100644 --- a/gpst.c +++ b/gpst.c @@ -305,7 +305,8 @@ out: || !strcmp(err, "GlobalProtect portal does not exist")) { vpn_progress(vpninfo, PRG_DEBUG, "%s\n", err); result = -EEXIST; - } else if (!strcmp(err, "Invalid authentication cookie")) { + } else if (!strcmp(err, "Invalid authentication cookie") + || !strcmp(err, "Valid client certificate is required")) { vpn_progress(vpninfo, PRG_ERR, "%s\n", err); result = -EPERM; } else { -- 2.50.1