Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. [PATCH] config: space as last character in passphrase
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Tue, 15 Mar 2016 18:54:56 -0700
From: [email protected]
To: [email protected]
Cc: Naveen Singh <[email protected]>
Subject: [PATCH] config: space as last character in passphrase
Message-ID: <[email protected]>

From: Naveen Singh <[email protected]>

If in the example.config file, passphrase has space (\s)
in the end, it gets stripped while creating the service
directory. This causes 4 way hand shake to fail. This commit
allows space as the last character in passphrase by not stripping
it.

Tested with various combinations of passphrase
---
 src/config.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/config.c b/src/config.c
index 7cf3cf4..b130f48 100644
--- a/src/config.c
+++ b/src/config.c
@@ -975,6 +975,16 @@ char *__connman_config_get_string(GKeyFile *key_file,
        if (!str)
                return NULL;
 
+       /*
+        * passphrase can have space in the end in example.config
+        * (specified by /s). It should not be removed as it would
+        * result in 4 way hand-shake failure.
+        */
+       if (g_strcmp0(key, SERVICE_KEY_PASSPHRASE) == 0)
+       {
+               return str;
+       }
+
        return g_strchomp(str);
 }
 
-- 
2.7.0.rc3.207.g0ac5344



------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 5, Issue 23
**************************************

Reply via email to