[network-manager-openconnect/nm-0-9-8] Allow alphanumeric software token secrets



commit f51b70add4c9826394b0407a51cf745ecd2461d2
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 9424777..74f5f03 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]