NetworkManager/src/libnm-core-impl/tests
Thomas Haller 723e1fc76f
libnm: move dependency to libnm-crypto out of libnm-core's "nm-utils.c"
libnm-core is also used by the daemon, thus currently dragging in
libnm-crypto there. But could we ever drop that dependency?

One use of the libnm-crypto is in functions like nm_utils_file_is_certificate()
in "nm-utils.h". These are part of the public API of libnm.

But this is not used by the daemon. Move it to "libnm-client-core"
to be closer to where it's actually used.

As we have unit tests in "libnm-core-impl/tests" that test this function,
those unit tests also would need to move to "libnm-client-impl".
Instead, add the actual implementation of these function to "libnm-crypto"
and test it there.

This patch moves forward declarations from public header "nm-utils.h" to
"nm-client.h". Arguably, "nm-client.h" is not a great name, but we don't
have a general purpose header in "libnm-client-public", so use this.
Note that libnm users can only include <NetworkManager.h> and including
individual files is not supported (and even prevented). Thus moving
the declarations won't break any users.
2022-03-29 11:56:04 +02:00
..
certs build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
meson.build build: fix linking libnm-log-null into different test programs 2021-07-05 14:51:27 +02:00
nm-core-tests-enum-types.c.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
nm-core-tests-enum-types.h.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
test-compare.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
test-crypto.c libnm: move dependency to libnm-crypto out of libnm-core's "nm-utils.c" 2022-03-29 11:56:04 +02:00
test-general-enums.h all: adjust glib-mkenums annotations for automated formatting 2022-02-08 11:14:01 +01:00
test-general.c libnm: rework strv properties of NMSetting as "direct" properties 2022-02-10 22:30:27 +01:00
test-keyfile.c keyfile: don't require verified profile in nm_keyfile_write() 2022-03-28 18:27:37 +02:00
test-secrets.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
test-setting.c all: suppress wrong gcc-12 warning "-Wdangling-pointer" 2022-02-21 19:50:52 +01:00
test-settings-defaults.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00