[PATCH nm-openconnect 2/3] Allow alphanumeric software token secrets
Kevin Cernekee
cernekee at gmail.com
Sun Mar 24 21:15:22 EDT 2013
RSA uses (mostly) purely numeric secrets, but other schemes may have
different requirements.
We will still strip out non-ASCII characters to avoid problems like
linefeeds showing up in the exported VPN configuration files.
---
properties/nm-openconnect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/properties/nm-openconnect.c b/properties/nm-openconnect.c
index 4e1e5ea..f7c43d8 100644
--- a/properties/nm-openconnect.c
+++ b/properties/nm-openconnect.c
@@ -577,7 +577,7 @@ update_connection (NMVpnPluginUiWidgetInterface *iface,
/* zap invalid characters */
for (; *src; src++)
- if ((*src >= '0' && *src <= '9') || *src == '-')
+ if (*src >= ' ' && *src <= '~')
*(dst++) = *src;
*dst = 0;
--
1.7.10.4
More information about the openconnect-devel
mailing list