NetworkManager/src/libnmc-base
Íñigo Huguet 18240bb72d libnmc: don't strip prefix tags from secret names
The daemon is now capable of understanding and removing these prefix
tags by itself. It is better than this is not a responsibility of the
secret agent because it requires changes in all secret agents to work
properly (see https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1536).

If the secret agent knows what these prefix tags are, it can remove them
only in the text that is displayed in the UI, but maintaining the
original string as the secret name that is returned to the daemon.

Secret agents that doesn't know what these prefix tags are won't do
anything with them, and they will also return the same string as secret
name, as expected. The only drawback is that they might display the full
string to the user, which is not a nice UX but it will at least work.

Also, allow to translate the secret name for the UI in libnmc.
2024-06-18 14:00:38 +00:00
..
meson.build build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
nm-client-utils.c core, libnm: expose the reason for unmanaged devices 2024-03-20 15:25:09 +01:00
nm-client-utils.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-polkit-listener.c core: use nm_io_fcntl_setfl_update_nonblock() helper 2023-04-04 08:43:21 +02:00
nm-polkit-listener.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nm-secret-agent-simple.c libnmc: don't strip prefix tags from secret names 2024-06-18 14:00:38 +00:00
nm-secret-agent-simple.h libnmc: allow user input in ECHO mode for 2FA challenges 2024-02-21 11:31:49 +01:00
nm-vpn-helpers.c libnmc: fix openconnect option "--cafile" in nm_vpn_openconnect_authenticate_helper() 2023-05-12 13:25:58 +02:00
nm-vpn-helpers.h nmcli, nmtui: reduce duplication around openconnect auth helper 2023-05-11 13:15:53 +01:00
qrcodegen.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
qrcodegen.h all: reformat code to clang shipped with Fedora 39 2023-12-06 10:37:24 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

libnmc-base

A helper library on top of libnm for our clients. The "c" in "libnmc-base" stands for clients.

This has no additional dependencies on top of libnm, so any client application that uses libnm can statically link with this helper at will.

As such, this is very similar in purpose to ../libnm-client-aux-extern, the difference is only in scope.