NetworkManager/src/libnm-crypto
Thomas Haller 9aa02f6543
crypto: cleanup error handling in nm_crypto_is_pkcs12_data()
Our convention is that a function that fails MUST set the GError output.
No need to check for that in nm_crypto_is_pkcs12_data(). Simplify the
error paths.

Also, in gnutls' _nm_crypto_verify_pkcs12(), don't call gnutls_pkcs12_deinit()
before gnutls_strerror(). It's unclear whether that couldn't set a
different error reason.
2022-03-29 11:56:05 +02:00
..
meson.build build: move nm-crypto to separate directory "src/libnm-crypto" 2022-03-29 11:56:04 +02:00
nm-crypto-gnutls.c crypto: cleanup error handling in nm_crypto_is_pkcs12_data() 2022-03-29 11:56:05 +02:00
nm-crypto-impl.h build: move nm-crypto to separate directory "src/libnm-crypto" 2022-03-29 11:56:04 +02:00
nm-crypto-nss.c crypto: cleanup error handling in nm_crypto_is_pkcs12_data() 2022-03-29 11:56:05 +02:00
nm-crypto-null.c build: move nm-crypto to separate directory "src/libnm-crypto" 2022-03-29 11:56:04 +02:00
nm-crypto.c crypto: cleanup error handling in nm_crypto_is_pkcs12_data() 2022-03-29 11:56:05 +02:00
nm-crypto.h libnm: move dependency to libnm-crypto out of libnm-core's "nm-utils.c" 2022-03-29 11:56:04 +02:00
README.md build: move nm-crypto to separate directory "src/libnm-crypto" 2022-03-29 11:56:04 +02:00

libnm-crypto

libnm-core has a dependency on crypto code (either backed by "gnutls", "nss" or the "null" dummy implementation).

libnm-core gets then statically linked into the daemon and into libnm.so.