[network-manager-openconnect] Allow alphanumeric software token secrets
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openconnect] Allow alphanumeric software token secrets
- Date: Mon, 3 Jun 2013 21:26:20 +0000 (UTC)
commit 4815296f2420b1fccbe1c2821d5429b4cc5d721c
Author: Kevin Cernekee <cernekee gmail com>
Date: Sun Mar 24 18:15:22 2013 -0700
Allow alphanumeric software token secrets
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 files changed, 1 insertions(+), 1 deletions(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]