summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-21client: Remove the now obsolete command parsing functionsPatrik Flykt3-48/+11
2013-02-21client: Remove unused functionsPatrik Flykt2-62/+0
Remove find_service() as it is no longer used and match_service_name() which was only used by find_service().
2013-02-21client: Factor out monitor commandPatrik Flykt1-129/+30
2013-02-21client: Create monitor helper functionsPatrik Flykt2-0/+94
2013-02-21client: Factor out technology enable and disable commandsPatrik Flykt1-40/+48
2013-02-21client: Wait for a reply from Manager APIPatrik Flykt1-2/+10
2013-02-21client: Wait for a reply from Technology APIPatrik Flykt1-6/+10
Also reduce logging.
2013-02-21client: Factor out scan commandPatrik Flykt1-12/+19
2013-02-21client: Reduce technology loggingPatrik Flykt1-8/+3
Reduce technology logging messages and modify the remaining one. Also free the DBusError.
2013-02-21client: Factor out disconnect commandPatrik Flykt1-12/+13
2013-02-21client: Factor out connect commandPatrik Flykt1-12/+13
2013-02-21client: Don't look up service on connect or disconnectPatrik Flykt1-16/+7
Attempt to connect or disconnect without looking up the service in advace. Fix memory leak and update the error message.
2013-02-21client: Factor out technologies commandPatrik Flykt1-9/+4
2013-02-21client: Factor out state commandPatrik Flykt1-9/+4
2013-02-21client: Print out any errors on command executionPatrik Flykt1-2/+6
2013-02-21client: Factor out config commandPatrik Flykt1-110/+130
Using the lengths returned from the property setting functions more than one config option can be specified on the command line. Use the simple argument parsing function as getopt is slightly limited in functionality.
2013-02-21client: Wait for a reply when removing servicePatrik Flykt1-9/+10
2013-02-21client: Fix setting service propertiesPatrik Flykt1-8/+25
Set properties for a service ignoring any cached lookups. Send the method call only if ther is no error. When sending, wait for the result in order to see if the method call succeeded.
2013-02-21client: Quick fix for parsing IPv6.Configuration correctlyPatrik Flykt1-7/+26
Fixes BMC#25925
2013-02-21client: Return number of arguments processed when setting propertiesPatrik Flykt1-3/+6
2013-02-21client: Return number of proxies addedPatrik Flykt1-3/+3
2013-02-21client: Return the number of proxy arguments discoveredPatrik Flykt1-3/+12
2013-02-21client: Return the number of added dict entriesPatrik Flykt1-3/+12
Check that both the dict entry name and data are non-NULL, the dict data does not start with '--' indicating a new option and that the length is not exhausted. Return the number of dict entries.
2013-02-21client: Return the number of added array entriesPatrik Flykt1-4/+9
Check that the array element is non-NULL, does not start with '--' indicating a new option or that the array length is not exhausted. Return the number of array elements added.
2013-02-21client: Factor out services commandPatrik Flykt1-60/+45
Update the help printout as well, '--properties' is not mandatory. Add a simple argument parsing function.
2013-02-21client: Add boolean parsing helper functionPatrik Flykt2-0/+27
2013-02-21client: Fix up interactive option parsingPatrik Flykt1-42/+21
Use g_strsplit to get a NULL terminated array of chars and compute the number of array items.
2013-02-21client: Make DBusConnection globalPatrik Flykt2-1/+3
2013-02-21client: Factor out help implementationPatrik Flykt2-71/+82
Use command table to produce help text. Add description texts for various options and use both option and description arrays to produce option help texts. Remove old help printing function.
2013-02-21client: Create prototypes for all commandsPatrik Flykt4-11/+133
Provide the infrastructure to factor out the commands.
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-19doc: Add description of GetProperties methodJukka Rissanen1-1/+8
2013-02-19test: Script for getting, setting and clearing VPN propertiesJukka Rissanen1-0/+66
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: Ignore VPN UserRoutes and ServerRoutes propertiesJukka Rissanen1-0/+4
These properties are not needed here so ignore them.
2013-02-19error: Handle ECONNREFUSED gracefully in dbus error handlerJukka Rissanen1-0/+1
2013-02-19pptp: Set the username/password before starting daemonJukka Rissanen1-4/+4
This is required in order to avoid free memory access that is happening if we call vpn_provider_set_string() with same string that is already in the settings db.
2013-02-19l2tp: Set the username/password before starting daemonJukka Rissanen1-4/+4
This is required in order to avoid free memory access that is happening if we call vpn_provider_set_string() with same string that is already in the settings db.
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 Rissanen4-5/+22
Add a variant to vpn_provider_set_string() that does not print sensitive data like password in clear text to log files.
2013-02-19l2tp: Clear password if authentication failsJukka Rissanen1-1/+7
This allows plugin to query agent so that user can give correct password.
2013-02-19pptp: Clear password if authentication failsJukka Rissanen1-1/+7
This allows plugin to query agent so that user can give new password. Fixes BMC#25963
2013-02-19main: Create VPN_STORAGEDIR when starting upJukka Rissanen1-0/+10
Eventually all VPN directories from STORAGEDIR is to be migrated into VPN_STORAGEDIR
2013-02-19TODO: Add note about removal of L2TP and PPTP prefix for PPP optionsJukka Rissanen1-0/+10