summaryrefslogtreecommitdiff
path: root/src/agent.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-172/+359
2013-01-15agent: Keep track of the driver to unref user context relevantlyTomasz Bursztyka1-2/+3
Fixes BMC#25884
2012-12-17agent: Don't crash when no agent was registered on exitDaniel Wagner1-0/+4
If the user never registered an agent, agent_sender and agent_path are NULL. D-Bus does not handle this gracefully, instead it kills ConnMan. So let's skip the D-Bus part in this case. connmand[4271]: src/agent.c:connman_agent_driver_unregister() Sending release to (null) path (null) iface net.connman.Agent process 4271: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file dbus-message.c line 1198. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace connmand[4271]: Aborting (signal 6) [./src/connmand] connmand[4271]: ++++++++ backtrace ++++++++ connmand[4271]: #0 0x3a9920f500 in /lib64/libpthread.so.0 connmand[4271]: #1 0x3a98e36285 in /lib64/libc.so.6 connmand[4271]: #2 0x3a98e37b9b in /lib64/libc.so.6 connmand[4271]: #3 0x3c7602fff5 in /lib64/libdbus-1.so.3 connmand[4271]: #4 0x3c76026fc1 in /lib64/libdbus-1.so.3 connmand[4271]: #5 0x3c76018aea in /lib64/libdbus-1.so.3 connmand[4271]: #6 0x45b8b1 in connman_agent_driver_unregister() at src/agent.c:426 connmand[4271]: #7 0x457b7c in __connman_service_cleanup() at src/service.c:6756 connmand[4271]: #8 0x43f54f in main() at src/main.c:702 connmand[4271]: #9 0x3a98e2169d in /lib64/libc.so.6 connmand[4271]: +++++++++++++++++++++++++++
2012-11-30agent: Release all agents when stoppingJukka Rissanen1-1/+21
2012-11-23agent: Split agent code into generic and service specific partsJukka Rissanen1-673/+165
2012-09-13agent: Fixes refcounting issueTomasz Bursztyka1-12/+4
Since service is referenced already in the message queue, there is no need to reference it also in the callback data: this might lead to an over refcount issue if the queue message is canceled before receiving any answer to it. (callback's data refcount is still there).
2012-09-04agent: Always clean up and unref on agent shutdownPatrik Flykt1-12/+9
2012-09-04agent: Cancel agent requestsPatrik Flykt1-0/+9
Clean up any queued Agent API messages when the agent disappears or the service is disconnected. Send cancel to the agent on D-Bus timeout.
2012-09-04agent: Implement Agent API Cancel() method callPatrik Flykt1-0/+54
Clean up the queue and cancel the current message at the agent, if any. Split out the actual cancel message sending as it will be used separately from the rest of the code.
2012-09-04agent: Use the Agent queueing functions when sending requestsPatrik Flykt1-81/+52
2012-09-04agent: Implement Agent API message queueingPatrik Flykt1-0/+114
Add functions for queuing Agent API messages and sending the first one when there is no message processed by the agent. Handle D-Bus pending call replies and simplify the D-Bus reply processing by handing the message to the callback function.
2012-07-15agent: Avoid shadowing connection variableMarcel Holtmann1-1/+1
2012-07-13agent: Handle wpspin type as a PreviousPassphraseTomasz Bursztyka1-18/+27
2012-07-13agent: Rewrite how PreviousPassphrase field is handledTomasz Bursztyka1-19/+31
This is a necessary rewrite to make it clearer and simpler, before implementing wpspin type support.
2012-06-26agent: Fix how to provide PreviousPassphrase through D-BusTomasz Bursztyka1-6/+29
2012-06-15agent: Implement the new type and argument for RequestInput method callTomasz Bursztyka1-1/+18
This implements the usage of PreviousPassphrase argument as an informational field type.
2012-05-30agent: Use input request and browser launch timeoutsPatrik Flykt1-6/+8
2012-05-28agent: Update __connman_agent_report_error to return -EINPROGRESSPatrik Flykt1-1/+1
Handle the change from -EIO to -EINPROGRESS return value in service.c.
2012-05-28agent: Update functions used by wispr to send -EINPROGRESSPatrik Flykt1-2/+2
Handle the change from -EIO to -EINPROGRESS return value in wispr.c.
2012-05-28agent: Return -EINPROGRESS when request passphrase calls an agentPatrik Flykt1-1/+1
As a result of returning -EINPROGRESS, the code in service.c can be simplified.
2012-05-23agent: Increase default timeout to 120 secondsMarcel Holtmann1-8/+10
The D-Bus default timeout is 25 seconds and that is clearly not enough time to enter a passphrase. Increasing this to 120 seconds now.
2012-05-22agent: Verify that the reply contains a dictionaryPatrik Flykt1-1/+30
2012-05-04agent: Memory leak in error replyJukka Rissanen1-0/+1
The pending call was not unreffed.
2012-05-04agent: Adding a parameter to give the error name to browser callbackTomasz Bursztyka1-3/+6
2012-05-04agent: Adding a parameter to give the error name to authentication callbackTomasz Bursztyka1-4/+10
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2012-04-26agent: If service has no security, do not ask for a passphraseAlok Barsode1-2/+5
2012-04-20agent: Memory leak in passphrase replyJukka Rissanen1-0/+1
The pending call was not unreffed.
2012-04-17service: Move setting of WPS input from agent to service.Julien Massot1-18/+0
2012-04-17service: request_input_cb handle wps settingJulien Massot1-0/+2
2012-02-14agent: Handle browser request replyTomasz Bursztyka1-0/+41
2012-02-14agent: Add support for requesting browser actionTomasz Bursztyka1-0/+44
2012-02-13agent: Fix capital letter for mandatory requirementSantiago Carot-Nemesio1-3/+3
Sometimes, the mandatory attribute is used with capital letter and other times it isn't. This patch fixes this issue by setting it to lower case to be consistant with agent-doc in wich it is written using lower cases.
2012-01-10agent: Undo empty D-Bus message checkDaniel Wagner1-6/+0
This check is wrong.
2012-01-09agent: Handle empty D-Bus messageDaniel Wagner1-0/+6
In case the agent sends wrongly an empty reply.
2011-12-12agent: Add network name and name length to authentication_cb_tPatrik Flykt1-2/+3
2011-12-12agent: Handle 'Name' and/or 'SSID' fields on method call returnPatrik Flykt1-0/+24
2011-12-12agent: If a service is hidden, request either 'Name' or 'SSID'Patrik Flykt1-0/+33
Implement functions to append 'Name' and 'SSID' fields to Agent API RequestInput D-Bus method call. Add these fields if the service is hidden.
2011-12-12agent: Be explicit when RequestInput method return provides valuesPatrik Flykt1-2/+7
Add a boolean variable to authentication_cb_t callback to explicitely state when values are returned from RequestInput.
2011-09-12agent: Added Username/Password request input logicTomasz Bursztyka1-1/+131
2011-06-21agent: Unify request input callback for passphrase and login based input.Tomasz Bursztyka1-2/+2
2011-04-01agent: Implement EAP identity and passphrase queryHenri Bragge1-3/+44
EAP credentials will be queried whenever connecting to an 802.1X network unless EAP-TLS is used OR if service is provisioned via .config file. Besides adding Identity field into the API, this patch also removes the restriction to receive value for only one field per response. Now both Identity and Passphrase can be received in one call.
2011-01-27agent: WPS input request logicTomasz Bursztyka1-1/+76
2010-12-02agent: Agent API ReportError method callPatrik Flykt1-0/+85
The __connman_agent_report_error function creates and sends a ReportError method call to the registered agent. The agent can reply with D-Bus error org.moblin.connman.Agent.Error.Retry if the same service is to be retried.
2010-09-21Remove RequestPassphrase functionality from Agent APIPatrik Flykt1-28/+0
Remove the obsolete __connman_agent_request_passphrase function as the RequestPassphrase method call has been replaced with RequestInput.
2010-09-21Agent API RequestInput method for requesting passphrasesPatrik Flykt1-0/+130
request_input_passphrase_reply creates and sends an Agent API RequestInput method call and waits for the method call return. The function expects a passhphrase_cb_t to be supplied. Only the "Passphrase" dictionary field is requested by the method call and only the "Passphrase" dictionary field in the method call return is used.
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-08-29Add basic hookup of passphrase agent callbackMarcel Holtmann1-7/+33
2009-08-29Add support for handling errors from agent registrationMarcel Holtmann1-1/+1
2009-08-29Remove all the useless D-Bus connection passingMarcel Holtmann1-4/+7