summaryrefslogtreecommitdiff
path: root/mesh/agent.c
Commit message (Collapse)AuthorAgeFilesLines
* mesh: Fix errors found by static analysisInga Stotland2020-11-101-15/+28
| | | | | This fixes a NULL pointer dereference error (cfgmod-server.c) and miscellaneous issues related to unchecked return status.
* mesh: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 48 License: LGPL-2.1-or-later mesh/mesh-mgmt.h mesh/mesh-mgmt.c mesh/net-keys.c mesh/mesh-io-api.h mesh/mesh.h mesh/net-keys.h mesh/model.h mesh/util.h mesh/appkey.c mesh/cfgmod.h mesh/appkey.h mesh/prov.h mesh/prov-acceptor.c mesh/net.c mesh/dbus.h mesh/friend.h mesh/mesh-io-generic.c mesh/main.c mesh/util.c mesh/dbus.c mesh/error.h mesh/mesh-config-json.c mesh/agent.h mesh/pb-adv.c mesh/crypto.c mesh/crypto.h mesh/friend.c mesh/pb-adv.h mesh/provision.h mesh/mesh-config.h mesh/mesh-io-generic.h mesh/agent.c mesh/cfgmod-server.c mesh/mesh-io.h mesh/keyring.h mesh/net.h mesh/keyring.c mesh/mesh-defs.h mesh/mesh.c mesh/rpl.c mesh/manager.c mesh/model.c mesh/mesh-io.c mesh/node.c mesh/prov-initiator.c mesh/rpl.h mesh/node.h mesh/manager.h
* mesh: Free allocated agent in mesh_remove_agent()Inga Stotland2020-05-221-6/+4
| | | | | This adds previously missing call to free memory allocated for agent structure.
* mesh: Fix valgrind memory leak warningsBrian Gix2020-05-151-0/+1
| | | | | These warnings are caused by not completely freeing memory allocations at shutdown, and are not serious, but they make valgrind output cleaner.
* mesh: Clear prov capabilities structure before readingBrian Gix2020-04-011-0/+2
| | | | | | Capabilities need to be zero'd before realtime reading fresh values, because they are mostly bitmasks, which are set when capabilities are detected, and never otherwise cleared.
* mesh: Refresh provisioner's capabilitiesMichaƂ Lowas-Rzechonek2020-04-011-17/+87
| | | | | | As provisioner's capabilities might change during application lifetime (e.g. no network link to download OOB key), let's query the agent again after application calls AddNode().
* mesh: Fix provisioning agent method call failureShaunak Soman2020-01-231-0/+5
| | | | | | Provisioning agent interface methods PublicKey, PrivateKey and Cancel do not accept any parameters. So, while invoking them explicitly set the parameters to "".
* mesh: Fix string of public-oob and static-oobPrathyusha N2019-12-031-2/+2
| | | | Fix string typo as per mesh-api.txt
* mesh: Fix inOOB and outOOB agent handling on prov initiateBrian Gix2019-11-191-10/+18
| | | | | | | | | This code fixes the Provisioner Initiator role so that the following Out-of-Band agent calls are made correctly, and their results handled properly: "push", "twist", "blink", "beep", "vibrate", "in-numeric", "out-numeric", "in-alpha", "out-alpha"
* mesh: Remove unnecessary includes from .c filesInga Stotland2019-05-171-1/+0
|
* mesh: Update copyright datesInga Stotland2019-05-171-1/+1
|
* mesh: Clean up when finishing the Join callInga Stotland2019-01-141-1/+1
| | | | | | | | Consolidate multiple instances where the pending Join data is freed into calling one function free_pending_join_call(). Also, add checks for NULL data in cleanup functions for storage, agent and provisioning acceptor.
* mesh: Implement Provisioning Agent D-Bus interfaceInga Stotland2019-01-081-124/+541
| | | | | | This implements the time limited and user interaction D-Bus API as required for Out-Of-Band authentication during provisioning, and as described in doc/mesh-api.txt.
* mesh: Source files for mesh access layer and utilitiesInga Stotland2018-08-201-0/+229
| | | | | This adds initial implementation of BT Mesh access layer functionality plus utilities.
* tools: Move meshctl sources under tools/mesh directoryInga Stotland2018-07-061-207/+0
| | | | This is a temporary location until the unified mesh solution is provided
* mesh: Make meshctl use bt_shell helpersLuiz Augusto von Dentz2017-12-081-11/+11
| | | | | This makes meshctl use bt_shell to manage the menus and command handling.
* mesh: Correct length test in agent.c:request_asciiSteve Brown2017-11-191-1/+1
|
* mesh: Make use of rl_prompt_inputLuiz Augusto von Dentz2017-08-281-98/+29
| | | | | This removes unnecessary code to ask user input which is already supported by rl_prompt_input.
* mesh: Fix includes to use root relative path namesMarcel Holtmann2017-08-211-2/+2
|
* mesh: Baseline Mesh implementationBrian Gix2017-08-211-0/+276