summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2016-03-21 16:08:25 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2016-03-22 11:25:46 +0200
commit6091081903ce185a3c260ac41269a82ba3a81e59 (patch)
tree39a84662759b2974204f9b9e3d910d2002e50e26
parent21bd4748035f9189d1e009568beb2cf0fefb3ebc (diff)
downloadconnman-6091081903ce185a3c260ac41269a82ba3a81e59.tar.gz
config: Space as the last character of a private key passphrase
Allow also private key passphrases to end in a space.
-rw-r--r--src/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index 01b1d06e..dcbee068 100644
--- a/src/config.c
+++ b/src/config.c
@@ -976,7 +976,8 @@ char *__connman_config_get_string(GKeyFile *key_file,
return NULL;
/* passphrases can have spaces in the end */
- if (!g_strcmp0(key, SERVICE_KEY_PASSPHRASE))
+ if (!g_strcmp0(key, SERVICE_KEY_PASSPHRASE) ||
+ !g_strcmp0(key, SERVICE_KEY_PRV_KEY_PASS))
return str;
return g_strchomp(str);