summaryrefslogtreecommitdiff
path: root/client
AgeCommit message (Collapse)AuthorFilesLines
2016-05-30[connman] Fixed memory leak issue.submit/tizen/20160607.090155accepted/tizen/wearable/20160607.235343accepted/tizen/tv/20160607.235409accepted/tizen/mobile/20160607.235355accepted/tizen/ivi/20160607.235418accepted/tizen/common/20160607.194721Niraj Kumar Goit1-0/+24
Added NULL check before derefrencing of pointer variable. Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com> Change-Id: If065f024fe62e72887591f54eaabf4ed70a8d2e2
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak15-0/+2
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang3-40/+483
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang11-195/+1508
2013-06-13client: Fix passphrase handlingPatrik Flykt1-2/+10
An empty passphrase means that WPS is to be tried next. If WPS is not supported by the service, passphrase can not be left empty.
2013-06-13client: Implement VPN Agent API RequestInput method callPatrik Flykt1-54/+77
Instead of having a global agent_input struct, make the structure a member of the agent_data structure that gets passed around when handling the RequestInput method call. With this modification agent_data is self-contained with all needed information and the RequestInput handling code can be shared between ConnMan and VPN agent implementations.
2013-06-13client: Add vpnagent command to register and unregister VPN AgentPatrik Flykt1-0/+30
2013-06-13client: Implement support for queueing Agent messagesPatrik Flykt1-9/+60
ConnMan and ConnMan VPN daemon both send only one Agent message at a time. Since they are two different daemons, they can be sending messages at the same time independent of each other. Implement a check for an agent request from the other daemon being already processed and if so store the message for later. When the current agent request has been processed, check if there are pending requests from the other daemon and re-run the pending function. In order to support arbitrary queueing, make all method call implementations asynchronous.
2013-06-13client: Add VPN Agent support for Release, Cancel and ReportErrorPatrik Flykt2-0/+119
Create a new agent data structure for the VPN Agent and add the needed minor modifications to Release, Cancel and ReportError method calls in order to get them working both for Agent and VPN Agent. Create new register and unregister functions for the VPN Agent code.
2013-06-13client: Create agent data structure and pass it in function callbacksPatrik Flykt3-76/+116
Collect the agent variables into a data structure and update the agent functionality to pass this data structure around as function callback user data. Update the agent mode input functionality to store both the callback function and user data pointers. Notice that only only one input callback can be handled at any one time due to the input handling itself and the simple storing of callback and user data pointers.
2013-06-13client: Don't handle Agent messages in monitor codePatrik Flykt1-0/+4
Agent messages need to be handled in the agent code, ignore them when they get captured in the monitor code.
2013-06-13client: Fix DBUS_TYPE_UINT16 pretty-printingPatrik Flykt1-0/+5
The previous pretty-printing fix causes another change to be made for DBUS_TYPE_UINT16.
2013-06-07client: Avoid printing extra prompt on RequestInputPatrik Flykt1-1/+2
2013-06-07client: Read D-Bus string type only if argument is 'Type'Patrik Flykt1-3/+4
A basic type was always read independent of the argument type which on some systems lead to a crash and on others only to a warning printout.
2013-06-07client: Pretty-print D-Bus signed integersPatrik Flykt1-1/+7
To keep it more logical, rename the unsigned variable in the code.
2013-06-07client: Add VPN monitoring supportPatrik Flykt1-38/+84
When adding VPN monitoring capabilities, also clean up the monitor code.
2013-06-07client: Add support for displaying VPN connectionsPatrik Flykt1-4/+75
Show a list of VPN connections known to the VPN daemon. Also allow D-Bus path names to start with numbers, as it is fine with the D-Bus library to define such path names. Fix up help command pretty-printing as the VPN command is slightly longer.
2013-06-07client: Add VPN connection helper functionPatrik Flykt2-0/+149
Add helper function for printing VPN connections. Show also configuration and failure states using 'C' and 'F' as configuration might take some time and failure conveys practical information to the user.
2013-06-07client: Add parameter to specify D-Bus service for method callPatrik Flykt4-26/+33
2013-06-07client: Add missing header file boilerplatePatrik Flykt2-0/+26
2013-05-24client: Accept correctly spelled option namePatrik Flykt1-2/+4
Accept also correctly spelled version of 'preferred' option.
2013-05-22client: Fix minor issues in D-Bus path name checkingPatrik Flykt1-2/+3
2013-05-22client: Fix index for IPv6 configuration optionPatrik Flykt1-1/+1
2013-05-22client: Reserve space for trailing NULL in the arrayPatrik Flykt1-1/+1
2013-05-08client: Do service name syntax check when a name is specifiedPatrik Flykt1-3/+3
2013-05-08Fix gcc compiler warning with -Wformat-security.Justin Maggard1-1/+1
Cosmetic fix.
2013-05-06client: Check that strings passed to D-Bus to contain valid charsJukka Rissanen1-0/+45
D-Bus aborts if we feed invalid characters to it. So do some sanity check before that.
2013-05-06client: Newline missing after printing scan error messageJukka Rissanen1-1/+1
2013-05-06client: Fix for handling an unset callbackPatrik Flykt1-1/+9
If there is no callback set, don't try to call readline function.
2013-05-06client: Fixes for handling Agent messagesPatrik Flykt1-8/+12
Properly handle agent confirmation input, unset the prompt when RequestInput processing ends and set the passphrase only if it contains some text.
2013-05-03client: Initial RequestInput handling supportPatrik Flykt1-0/+199
When receiving a RequestInput Agent API D-Bus call, ask the input in a somewhat logical order from the user with user names first and passwords next. If a passphrase is entered, ignore any WPS pin code requests. Prepare for passphrase length checking by going through the RequestInput message to get the 'Type' argument.
2013-05-03client: Add ReportError handlingPatrik Flykt1-0/+49
Report error and wait for the user to reply with yes/no.
2013-05-03client: Add RequestBrowser handlingPatrik Flykt1-1/+87
Print out the RequestBrowser URL and wait for user input to proced. Add a helper function for getting a yes/no confirmation from the user and another one for getting the last part of the service object path.
2013-05-03client: Implement Agent Release and Cancel method callsPatrik Flykt1-0/+50
Unref the saved Agent D-Bus message on Release and Cancel. In response to the Release method call unnregister Agent interface and quit if in non-interactive mode.
2013-05-03client: Add command mode and agent mode helper functionsPatrik Flykt2-19/+38
In command mode remember history and do command completion, in agent mode do neither. Enable saving and restoring of the readline prompt and add the GIOChannel watch also for non-interactive mode.
2013-05-03client: Add agent commandPatrik Flykt1-0/+30
2013-05-03client: Add support for registering and unregistering an agentPatrik Flykt2-0/+180
Add agent .h and .c files containing registering and unregistering functionality.
2013-05-03client: Enable method call return to exit or continue runningPatrik Flykt3-25/+50
Enable a client method call return function to exit or continue running when in non-interactive mode. When a connmanctl_dbus_method_return_func_t returns -EINPROGRESS in non-interactive mode, the command line client is kept running even after the method call has been processed. The command line client needs to keep running after a successful Agent registration in order to process Agent method calls. Also enabling tethering in non-interactive mode needs the client executing until SSID, passphrase and tethering mode have been set.
2013-05-03client: Make dbus helper function variable const char *Patrik Flykt2-4/+4
2013-04-30client: Fix up wrongly included typedefPatrik Flykt2-8/+15
2013-04-30client: Remove unneeded members from structsPatrik Flykt1-90/+70
Remove now obsolete memebers from the option struct and instead add a description field. Also remove the now unnecessary include.
2013-04-30client: Move commands around to more logical places in the tablePatrik Flykt1-4/+4
2013-04-23client: Trim off spaces from user inputPatrik Flykt1-8/+20
After splitting the input string into components, create a new array holding the non-zero substrings as input for the commands. Thus the input can start and end as well as divide its separate parts by any number spaces.
2013-04-23client: Add command completionPatrik Flykt3-0/+37
Add completion support for connmanctl commands.
2013-04-23client: Follow coding stylePatrik Flykt3-5/+6
Follow coding style and use __connmanctl prefix for the commands() function.
2013-04-23client: Add support for tetheringPatrik Flykt1-0/+175
Add tethering support. For WiFi also set the SSID and passphrase if they have been specified on the command line. Check that setting both SSID and passphrase succeed before trying to enable tethering. After successfully setting SSID and passphrase for WiFi, use the boolean value parsing helper function return value to decide whether WiFi tethering is to be enabled, disabled or not modified. Fixes BMC#25886
2013-04-06client: Add --help, -h optionsPatrik Flykt1-1/+10
2013-04-05client: Fix help text, IPv4 setting uses netmaskPatrik Flykt1-1/+1
2013-04-04client: Move boolean parsing helper function to commands filePatrik Flykt3-27/+26
The helper function is not used elsewhere, thus move it.
2013-04-04client: Remove now obsolete functions and filesPatrik Flykt9-1231/+1
Remove now obsolete files from services. Remove data_manager, dbus and technology .h and .c files. Update Makefile.am accordingly.