[network-manager-openconnect] Allow alphanumeric software token secrets



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]