diff options
author | Thomas Haller <thaller@redhat.com> | 2022-04-11 17:52:46 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-04-20 12:07:03 +0200 |
commit | cdc3e3fa95f289f124bbc288b1d4642bf2ade2c1 (patch) | |
tree | 33ac7eb17facd8cb3512ead07bd38f5f012022d1 | |
parent | bb0ba779f60971d432751b9cfc4b2565b2dcc3c9 (diff) |
libnm: use own nm_unbase64mem_full() instead of systemd's in nm_utils_base64secret_decode()
-rw-r--r-- | src/libnm-core-impl/nm-utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libnm-core-impl/nm-utils.c b/src/libnm-core-impl/nm-utils.c index d5d884f2e4..0d3f6a6fda 100644 --- a/src/libnm-core-impl/nm-utils.c +++ b/src/libnm-core-impl/nm-utils.c @@ -23,7 +23,6 @@ #include "libnm-glib-aux/nm-enum-utils.h" #include "libnm-glib-aux/nm-time-utils.h" #include "libnm-glib-aux/nm-secret-utils.h" -#include "libnm-systemd-shared/nm-sd-utils-shared.h" #include "libnm-core-aux-intern/nm-common-macros.h" #include "nm-utils-private.h" #include "nm-setting-private.h" @@ -5356,7 +5355,7 @@ nm_utils_base64secret_decode(const char *base64_key, gsize required_key_len, gui base64_key_len = strlen(base64_key); - r = nm_sd_utils_unbase64mem(base64_key, base64_key_len, TRUE, &bin_arr, &bin_len); + r = nm_unbase64mem_full(base64_key, base64_key_len, TRUE, &bin_arr, &bin_len); if (r < 0) return FALSE; if (bin_len != required_key_len) { |