From: Daniel Lenski Date: Sat, 8 Sep 2018 20:51:26 +0000 (-0700) Subject: catch 'Valid client certificate is required' as EPERM X-Git-Tag: v8.00~80 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=879e25ad9bec30a331ee9048103e624bf8ca6f3b;p=users%2Fdwmw2%2Fopenconnect.git catch 'Valid client certificate is required' as EPERM Signed-off-by: Daniel Lenski --- 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 {