[PW_SID:1085080] agent: add passphrase storage options#497
Conversation
Add RequestPassphraseWithOptions support for PSK passphrase requests. The method lets an agent return the passphrase together with options that affect how IWD handles it. Currently the only option is Store. When Store is false, use the passphrase for the current connection attempt but keep it out of the network profile. Fall back to RequestPassphrase if the agent does not implement the new method.
Document RequestPassphraseWithOptions and the Store option for agents that want to control whether a PSK passphrase is saved in the network profile.
Extend the PSK agent test helper to implement RequestPassphraseWithOptions and add coverage for Store=false. The test verifies that IWD can use the agent-provided passphrase without writing PSK secrets back to the profile.
|
Fetch PR Prep - Setup ELL Make Distcheck Build - Configure Make Check Make Check w/Valgrind Incremental Build with patches |
|
Fetch PR GitLint Prep - Setup ELL Make Distcheck Build - Configure Make Check Make Check w/Valgrind Incremental Build with patches Autotest Runner Output: Clang Build |
Add RequestPassphraseWithOptions support for PSK passphrase requests.
The method lets an agent return the passphrase together with options
that affect how IWD handles it.
Currently the only option is Store. When Store is false, use the
passphrase for the current connection attempt but keep it out of the
network profile.
Fall back to RequestPassphrase if the agent does not implement the new
method.
src/agent.c | 108 +++++++++++++++++++++++++++++++++++++++++++-------
src/agent.h | 1 +
src/network.c | 12 ++++++
3 files changed, 107 insertions(+), 14 deletions(-)