summaryrefslogtreecommitdiff
path: root/src/config.c
AgeCommit message (Collapse)AuthorFilesLines
2017-03-14Apply DNS configuration methodsubmit/tizen/20170322.011410accepted/tizen/wearable/20170322.235735accepted/tizen/unified/20170322.235830accepted/tizen/tv/20170322.235708accepted/tizen/mobile/20170322.235633accepted/tizen/ivi/20170322.235801accepted/tizen/common/20170322.153711Seonah Moon1-0/+25
Change-Id: If16e739fde7e9d736c66015ab1efa982e49d3482 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2016-06-14[SPIN] config: Ignore provision_service for open(none) security.Niraj Kumar Goit1-0/+7
Change-Id: I9f787846f3b1f4b4f147f64821a8b5c25b0367d7 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-14 [SPIN] config: reset phase2(eap-method) parameter.Niraj Kumar Goit1-0/+4
Change-Id: I7a48419ddcf18c735a609324c0c98510193c63ed Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2016-06-10Add support for WPS2-PSK security type in Security property of service interfaceJaehyun Kim1-0/+3
Change-Id: I5531a2e3e45da6b3d4caa6d5df15f54ebc2700d8
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-2/+4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2015-01-16config: Fix service provision issuetizen_3.0_ivi_releasesubmit/tizen/20150116.024418accepted/tizen/wearable/20150119.093941accepted/tizen/tv/20150119.093517accepted/tizen/mobile/20150119.094359accepted/tizen/ivi/20150116.052317accepted/tizen/common/20150119.084328tizen_3.0_ivitizen_3.0.2015.q1_commontizen_3.0.2014.q4_commonZhang zhengguang1-5/+0
Fixes TC-2298 Root cause: ConnMan will check the wifi security type from nfc daemon to decide whether to auto connect the related wifi service, but it can't get the security type in current mechanism, So that the wifi AP got from nfc tag will not be connected. Solution: ConnMan doesn't need to check wifi security type when it tries to provision service. Change-Id: I4ee3294214b756f9a39b6dc21cb658acd0640cc7
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-43/+103
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-223/+317
2013-05-30config: Remove code implementing Protected config file settingPatrik Flykt1-54/+0
The code was relevant only for Manager.ProvisionService method call which was removed a long time ago.
2013-03-25config: Allow user to specify how IP address is usedJukka Rissanen1-4/+36
If IPv4 address is missing then DHCPv4 is used. If IPv6 address is missing, then SLAAC or DHCPv6 is used. This was specified in doc/config-format.txt but implementation was missing. We also allow the IP address to contain "off", "dhcp" or "auto" string, so user can specify how the IP address can be set for the interface. Fixes BMC#25985
2013-02-26config: Add a function to provision mutable serviceTomasz Bursztyka1-2/+103
The point here is to create a virtual configuration, which does not come from a real file. This is a handy way for plugins to be able to provision services without creating any file on the FS. In case of a wifi configuration type and if connect is requested, it will trigger a scan, thus leading to a possible service being provisioned by such virtual configuration. If so and if connect was requested: the service will be asked to connect.
2013-02-26config: Make load service from each keyfile group as a functionTomasz Bursztyka1-17/+24
2013-02-26config: Remove superfluous error codeTomasz Bursztyka1-22/+14
It simplifies the code removing uselesse variable, moreover such variable has the same name as an existing label in the same function.
2013-02-22config: Run service autoconnect after provisioning the wifi serviceJukka Rissanen1-0/+2
We trigger autoconnect request in service after the wifi service has been provisioned. This is useful in headless systems where there is no user to trigger the connect to provisioned service, and it might take some time before system autoconnect is run.
2013-02-22config: Add ethernet provisioning supportJukka Rissanen1-8/+44
2013-02-22config: Support static IP address for wifi serviceJukka Rissanen1-41/+456
2013-02-19config: Read only wifi configJukka Rissanen1-1/+5
2013-02-19config: Remove obsolete definitionJukka Rissanen1-2/+0
2012-11-23inotify: Move inotify code into its own fileDaniel Wagner1-120/+2
The inotify code will be used by the core (config.c) and the session policy plugin. We introduce a new API for file modifcation notifcation. We move the factored out code part from the last patch into a new file and also change the inotify code so that it allows to monitor not only STORAGEDIR. When registering a new observer, the callee has to tell which directory should be watched. inotify.c will group the observers together.
2012-11-23config: Factor out config inotify handlerDaniel Wagner1-45/+52
The inotify code can be reused. So before we introduce a new generic inotify API, let's factor out in order to simplify the review process.
2012-09-07config: Call g_clear_error to prevent memory leakDanny Jeongseok Seo1-0/+1
2012-09-04Use g_slist_prepend() where appropriatePatrik Flykt1-1/+1
Convert usage of g_slist_append() to g_slist_prepend() where appropriate. gdbus, dnsproxy, resolver, rtnl, session and session unit test have ordering requirements and thus not touched.
2012-07-15config: Avoid shadowing config structure variableMarcel Holtmann1-10/+15
2012-07-13config: Get configurations that are provisionedJukka Rissanen1-0/+81
We need the list of provisioned services so that all the hidden ones can be scanned.
2012-07-13config: Read hidden AP information from config fileJukka Rissanen1-0/+9
2012-06-11config: Check if we need to rescan the config file for any changesJukka Rissanen1-3/+17
2012-06-11config: No service removal on cleanupJukka Rissanen1-0/+9
We must not remove the services when connman is stopped.
2012-06-11config: Check individual service entries for removalJukka Rissanen1-1/+37
Check if we need to remove a service if user removes an entry from config file. If user changes entry name in config file, then we remove the service and then try to provision the service again because the SSID might still be found.
2012-06-11config: Use config file name and entry when deciding removalJukka Rissanen1-1/+1
We need to know the config file and entry name in next patch in order to know if the service entry was removed from config file.
2012-06-11config: Save service after provisioning itJukka Rissanen1-0/+2
2012-06-11service: Sort service sequence after checking provisioned servicesJukka Rissanen1-0/+2
2012-06-11service: Add function to set the favorite flagJukka Rissanen1-1/+1
Add a function that sets favorite flag but which does not touch the ordering of service sequence. This is needed when we check provisioned config file which traverses the service sequence. If a proper provisioned service is found, then it is marked as favorite but in this case we must not do any ordering of service sequence because we are in the middle of sequence traversal.
2012-06-11config: Set config information in serviceJukka Rissanen1-0/+10
This is needed so that service can know if the config file is removed when connmand is not running.
2012-06-11config: Remove service if config file is removedJukka Rissanen1-21/+48
If the user removes the config file, we disconnect and then try to remove the corresponding service directory and all known files (settings and data).
2012-05-28config: Remove unused functionJukka Rissanen1-56/+0
2012-05-15config: Reject invalid SSID hexadecimal entriesPatrik Flykt1-1/+7
Reject provisioning .config file SSID entries that are not in hexadecimal.
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2012-04-17config: Warn user if no configuration is foundJukka Rissanen1-3/+10
This is useful so that user gets information that he needs to fix the config file.
2011-09-12storage: Switch to settings fileAlok Barsode1-15/+4
All the global settings would reside in /var/lib/connman/settings. We also migrate global keys from /var/lib/connman/default.profile to /var/lib/connman/settings for a smooth transition.
2011-06-27config: Provision service after adding new .config files.Mohamed Abbas1-0/+22
For now if new .config files are added connman will create new config and but do not provision existing services. This patch will provision existing service if any config file are added or modified. Fixes bug #4880.
2011-06-16element: Remove element.cDaniel Wagner1-0/+1
2011-04-11config: Use static function to validate identifiersSamuel Ortiz1-2/+20
Config file names are not exposed through D-Bus, so there is no need to run connman_dbus_validate_ident() on them. Checking for a readable string still makes sense though.
2011-04-11config: Fix compiler warning on 64 bits hostsSamuel Ortiz1-1/+1
2011-04-11config: Default config protection set to TRUESamuel Ortiz1-2/+7
Configs will be protected, unless explicitely set otherwise.
2011-04-11config: Remove the from_fs config fieldSamuel Ortiz1-21/+1
D-Bus provisions will also be immutable, and will be allowed to overwrite unprotected configs.
2011-04-11config: Check SSID length before comparing protected SSIDsSamuel Ortiz1-0/+3
2011-04-11config: Save D-Bus provisioned filesSamuel Ortiz1-7/+60
They will not be able to overwrite protected configs though.
2011-04-11config: Fix service pointers memory leakSamuel Ortiz1-11/+20
2011-04-11config: Do not overwrite protected servicesSamuel Ortiz1-0/+44
2011-04-11config: Add configuration protected flagSamuel Ortiz1-0/+8