diff options
author | Joshua Lock <josh@linux.intel.com> | 2009-07-02 12:00:53 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-02 04:29:42 -0700 |
commit | 4f01b2c2eb15a66ffb81c81d10a07635b402d6b7 (patch) | |
tree | 82d0efff5ed7b905a5b299a232eb49811f217ca4 | |
parent | e5b38566c08870a05a2ca24fd405923307d39fe8 (diff) | |
download | connman-4f01b2c2eb15a66ffb81c81d10a07635b402d6b7.tar.gz connman-4f01b2c2eb15a66ffb81c81d10a07635b402d6b7.tar.bz2 connman-4f01b2c2eb15a66ffb81c81d10a07635b402d6b7.zip |
Have services remove method also clear the passphrase
-rw-r--r-- | doc/service-api.txt | 3 | ||||
-rw-r--r-- | src/service.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/service-api.txt b/doc/service-api.txt index 68661373..e9349fc0 100644 --- a/doc/service-api.txt +++ b/doc/service-api.txt @@ -60,6 +60,9 @@ Methods dict GetProperties() can be removed this way. If it is connected, it will be automatically disconnected first. + If the service requires a passphrase it will be + cleared and forgotten when removing. + This is similar to setting the Favorite property to false, but that is currently not supported. diff --git a/src/service.c b/src/service.c index 910ba6c1..ab73772d 100644 --- a/src/service.c +++ b/src/service.c @@ -550,6 +550,9 @@ static DBusMessage *remove_service(DBusConnection *conn, if (service->network != NULL) __connman_network_disconnect(service->network); + g_free (service->passphrase); + service->passphrase = NULL; + connman_service_set_favorite(service, FALSE); __connman_storage_save_service(service); |