summaryrefslogtreecommitdiff
path: root/vpn/vpn-provider.c
AgeCommit message (Collapse)AuthorFilesLines
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-0/+0
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-20/+97
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-235/+242
2013-04-03vpn-provider: Send domain name to connman when connection is readyJukka Rissanen1-0/+7
Fixes BMC#25994
2013-03-27vpn-provider: Nameservers were not sent to connmand vpn pluginJukka Rissanen1-21/+27
We got some nameservers from VPN server but we never sent the nameserver list to connmand vpn plugin. Fixes BMC#25966
2013-03-27vpn-provider: Fix uninitialized memory readJukka Rissanen1-1/+1
The immutable field might be left uninitialized without this.
2013-03-08vpn-provider: Do not save or load provisioned VPN connectionsJukka Rissanen1-3/+13
The vpnd will not read or save provider data from disk. Only way to provision VPN is by setting necessary data in VPN .config file.
2013-03-08vpn-provider: SetProperty and ClearProperty do not work if immutableJukka Rissanen1-0/+6
Immutable VPN connection settings cannot be changed by SetProperty or ClearProperty dbus API.
2013-03-08vpn-provider: Introduce immutable flag to provider dataJukka Rissanen1-0/+5
2013-03-08vpn-provider: Do not allow changes to settings that are immutableJukka Rissanen1-5/+24
The immutable settings are those that are read from .config file.
2013-03-08vpn-provider: Do not quit vpnd if there are no VPN configurationsJukka Rissanen1-24/+0
Because we now support provisioning of VPN services via .config file, we need to keep vpnd running so that it can monitor the connman-vpn directory for new config files.
2013-02-28vpn-provider: Parse user networks correctlyJukka Rissanen1-1/+5
Check NULL string before passing it to g_strsplit()
2013-02-19vpn-provider: SetProperty works with all propertiesJukka Rissanen1-2/+6
2013-02-19vpn-provider: ClearProperty works with all propertiesJukka Rissanen1-0/+2
2013-02-19vpn-provider: Allow use of Domain property nameJukka Rissanen1-3/+6
Allow use of both VPN.Domain and Domain property strings.
2013-02-19vpn-provider: Add GetProperties method implementationJukka Rissanen1-0/+42
2013-02-19vpn-provider: Do not send state property if state is not changedJukka Rissanen1-1/+5
2013-02-19vpn-provider: Setting VPN properties will send PropertyChanged signalJukka Rissanen1-31/+67
2013-02-19vpn-provider: Set the state to FAILURE after auth errorJukka Rissanen1-0/+1
2013-02-19vpn-provider: Go internally into IDLE after FAILUREJukka Rissanen1-0/+7
Do not stay in FAILURE state as clients like connmand can get confused about our current state. Symptom for the problem is that after a failed connect attempt, a new connect attempt by the client would cause immediately a failure return code because vpnd is still in FAILURE state. The actual connect attempt might still succeed but then the client would not know about the success status. By setting the state to IDLE we avoid this confusion.
2013-02-19vpn-provider: Make state debug print more usefulJukka Rissanen1-2/+1
Print the state value as a string as it is useful information.
2013-02-19vpn-provider: Avoid printing password to log filesJukka Rissanen1-3/+16
Add a variant to vpn_provider_set_string() that does not print sensitive data like password in clear text to log files.
2013-02-19vpn-provider: Add extra whitespaceJukka Rissanen1-1/+1
2013-02-19vpn-provider: Add route support in vpn config fileJukka Rissanen1-15/+84
2013-02-19vpn-provider: Remove unprovisioned providers at startupJukka Rissanen1-1/+79
Check if there are any providers that were provisioned but their .config file is removed. If such providers are found, then remove the provider files from file system.
2013-02-19vpn-provider: Type string in provider needs to be in lower caseJukka Rissanen1-1/+1
2013-02-19vpn-provider: Initial .config file supportJukka Rissanen1-17/+135
2013-01-08vpn-provider: Check if providers list is NULL before using itPatrik Flykt1-0/+3
2012-12-14vpn-provider: Report disconnect errors other than -EINPROGRESSPatrik Flykt1-3/+3
Return code -EINPROGRESS is an indication of a disconnect taking place, not a disconnect error.
2012-12-14vpn-provider: Set state when connecting and disconnectingPatrik Flykt1-7/+6
Update provider state when connect or disconnect is initiated.
2012-11-30vpn-provider: Unregister provider from dbus when freedJukka Rissanen1-32/+36
The provider object was not unregistered from dbus watch when the provider was removed which caused free memory access error.
2012-11-30vpn-provider: Register agent driverJukka Rissanen1-0/+30
2012-11-30vpn: Make VPN plugin connection function asyncJukka Rissanen1-7/+22
This is needed as we want to ask user the passwords etc.
2012-11-30vpn-provider: Add getter functionsJukka Rissanen1-0/+15
2012-11-30vpn: Add initial support for async connectJukka Rissanen1-1/+8
Needed for agent VPN support.
2012-11-26vpn-provider: VPN driver pointer was not clearedJukka Rissanen1-0/+15
When VPN driver is unregistered, we must clear the corresponding pointer in provider struct. If this is not done we will have already freed memory access in clean_provider() function.
2012-11-23vpnd: Add function that quits vpnd if no VPN configurations are foundJukka Rissanen1-0/+22
2012-11-23vpn-provider: Remove vpn provider from storage when neededJukka Rissanen1-0/+2
2012-11-23vpn-provider: Send ConnectionRemoved signal when neededJukka Rissanen1-1/+37
2012-11-23vpn-provider: Send ConnectionAdded signal when neededJukka Rissanen1-0/+21
2012-11-23provider: Removed the connect part from the create() functionJukka Rissanen1-33/+12
The connect operation is done separately from create operation in connman-vpnd so change the function to reflect that.
2012-11-23vpn: Free allocated ipconfig structJukka Rissanen1-0/+3
2012-11-23vpnd: Add -r option which enables route handling in vpndJukka Rissanen1-6/+24
By default routes are handled by connman daemon.
2012-11-23vpn: Resolve vpn hostname if necessaryJukka Rissanen1-1/+7
2012-11-23provider: Refactor server and user route handlingJukka Rissanen1-121/+512
The server and user route handling is refactored in order to reflect the vpn dbus API changes. The routes are now array of dicts in dbus API.
2012-11-23vpn: New vpn daemon that handles vpn connections and clientsJukka Rissanen1-0/+1680