summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-12-05session: Move cleanup/destroy function upDaniel Wagner1-48/+48
We need to call those function from create_policy_config() therefore more it in front of it.
2012-12-05session: Return error code from callbackDaniel Wagner2-2/+4
In the case the callback is directly called we can use the return value to provide it to the user.
2012-12-05session: Fix error case handlingDaniel Wagner1-2/+3
There is no need to unref the pending message, because in all cases we generate a reply message which takes care of unrefing the message. Hence the dbus_message_unref() is not needed. Furthermore, we need to pass the created error message to the bus via g_dbus_send_message() so that the client gets always a response.
2012-12-05session: Fix error return codeDaniel Wagner1-1/+1
The error codes propagated over D-Bus are non-negative values.
2012-12-05session: Remove notify watchDaniel Wagner1-0/+3
free_session() will be also called from the error path (e.g. __connman_session_create()). In case we have added a watch we need to disarm it.
2012-12-05test: simple-agent must monitor vpn statusJukka Rissanen1-1/+17
simple-agent needs to monitor vpnd status as vpnd can stop if there are no vpn configured. When vpnd quits we must not quit the agent as then wifi questions would not be asked from the user any more.
2012-12-05TODO: Add unit test taskPatrik Flykt1-0/+10
2012-12-05build: Fix build to enable session-policy-localPatrik Flykt2-2/+2
2012-12-05session_policy: Remove dummy pluginDaniel Wagner3-119/+0
The default configuration will be created by the core if no plugin is used. Therefore there is no need for this plugin.
2012-12-05session_policy_local: Rename session_policy_iviDaniel Wagner3-40/+40
On popular request the plugin is renamed. The plugin is reading local files and has nothing to do with IVI.
2012-12-05session_policy_ivi: Initialize variable and remove an unused oneDaniel Wagner1-2/+1
Remove unused 'err' variable and properly initialize 'ident' for error cases.
2012-12-05build: Fix non-builtin session-pluginDaniel Wagner1-1/+2
The session ivi plugin needs to know where STORAGEDIR points to.
2012-12-04dhcpv6: Memory leak when sending Option Request OptionJukka Rissanen1-0/+2
2012-11-30pptp: Header file was missingJukka Rissanen1-0/+1
2012-11-30l2tp: Header file was missingJukka Rissanen1-0/+1
2012-11-30TODO: Add tasks for variable types and data structuresPatrik Flykt1-0/+22
2012-11-30pptp: Clear password when disconnectingJukka Rissanen1-0/+6
2012-11-30l2tp: Clear password when disconnectingJukka Rissanen1-0/+6
2012-11-30vpn: Driver disconnect needs provider informationJukka Rissanen2-2/+2
The provider pointer needs to be passed to VPN driver when disconnecting. Otherwise we cannot find the correct provider that is being disconnected.
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-30agent: Release all agents when stoppingJukka Rissanen1-1/+21
2012-11-30pptp: Do not save the passwordJukka Rissanen1-6/+0
2012-11-30l2tp: Do not save the passwordJukka Rissanen1-6/+0
2012-11-30pptp: Ask username and password from agentJukka Rissanen1-8/+242
2012-11-30l2tp: Ask username and password from agentJukka Rissanen2-12/+241
2012-11-30vpn-agent: Routine to add username and password into agent dictJukka Rissanen2-0/+48
2012-11-30openconnect: Add support for --no-cert-check client optionJukka Rissanen1-1/+51
2012-11-30openconnect: Domain pointer was used incorrectlyJukka Rissanen1-4/+8
We must allocate the domain name from the heap and not point to it directly because the dbus library will deallocate it and we will have invalid memory access.
2012-11-30test: Add vpn agent support into simple-agentJukka Rissanen1-2/+116
2012-11-30openconnect: Add asking cookie from agentJukka Rissanen1-14/+217
It is possible to ask the cookie from agent for OpenConnect VPN client. The agent should connect to VPN gateway, get the HTML page, show the page in window or parse the HTML, then allow user to feed the user id and passphrase and post the result. The server will then return cookie to agent which should pass the cookie to openconnect plugin in connman-vpnd daemon.
2012-11-30vpn-agent: Add generic functions to add information into agent dictJukka Rissanen3-1/+145
2012-11-30vpn: Make VPN plugin connection function asyncJukka Rissanen4-9/+28
This is needed as we want to ask user the passwords etc.
2012-11-30vpn-provider: Add getter functionsJukka Rissanen2-0/+19
2012-11-30vpn: Add initial support for async connectJukka Rissanen9-36/+93
Needed for agent VPN support.
2012-11-30doc: Describe VPN agent APIJukka Rissanen1-0/+137
2012-11-30gdbus: Add g_dbus_add_properties_watch functionLuiz Augusto von Dentz2-0/+33
Convenient function to create watches for D-Bus properties.
2012-11-29gdbus: Don't automatically attach ObjectManagerLucas De Marchi2-21/+36
Let each project attach the object manager interface instead of registering it automatically.
2012-11-29gdbus: Don't register DBus.Properties with no propertiesLucas De Marchi1-3/+6
Delay registering DBus.Properties interface until the moment there are properties on that path. This is needed for objects that currently don't expose any property to not export the interface.
2012-11-29build: Disable FORTIFY_SOURCE when optimization is disabledDaniel Wagner1-3/+3
The last fix was wrong. We need to use U_FORTIFY_SOURCE flag for this.
2012-11-27dnsproxy: Fix hash table comparison function to avoid crashPatrik Flykt1-1/+1
2012-11-26build: Add VPN documentation files into dist tar fileJukka Rissanen1-1/+3
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-26vpn-main: Plugin cleanup was not doneJukka Rissanen1-0/+1
2012-11-26vpn: Cleanup properly if vpn connect failsJukka Rissanen1-2/+4
Make sure that user callback data is cleared correctly if vpn connect attempt fails.
2012-11-26vpn: Cleanup vpn connections when vpnd diesJukka Rissanen1-0/+2
2012-11-26vpn: Do not remove vpn connections hash when vpnd diesJukka Rissanen1-14/+9
We must keep the vpn connections hash alive as long as connman is running. We must not remove the hash when vpnd dies, otherwise we might feed null pointer to various glib hash functions.
2012-11-26build: Fix up distribution dependencies in makefilesPatrik Flykt2-4/+5
Ensure all files needed at build time are added to the distribution tar file, especially those for VPN. Files in any *_SOURCES variables or ending with *.in are already covered.
2012-11-26gdbus: Remove not needed NULL pointer checksSzymon Janc1-2/+2
g_strdup returns NULL if argument passed is NULL and there is no need to double check that.
2012-11-26gdbus: Replace leading spaces with tabsSyam Sidhardhan1-4/+4
Trivial formatting fix.