]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared: drop redundant dlopen_cryptsetup() calls from cryptsetup_* helpers 41785/head
authorDaan De Meyer <daan@amutable.com>
Thu, 23 Apr 2026 08:10:24 +0000 (08:10 +0000)
committerDaan De Meyer <daan@amutable.com>
Thu, 23 Apr 2026 08:10:24 +0000 (08:10 +0000)
commit240b26503b26cddb0275a4e0e2b6918950379c69
tree5983a1a93ddb7161b092e8d6a9bc23107ebbf00f
parent724e5b51e7c837210fddfac42ccd8ccee7d385a1
shared: drop redundant dlopen_cryptsetup() calls from cryptsetup_* helpers

cryptsetup_set_minimal_pbkdf(), cryptsetup_get_token_as_json() and
cryptsetup_add_token_json() each take a struct crypt_device *cd, which
can only be obtained by first calling sym_crypt_init*() — and that
already requires dlopen_cryptsetup() to have succeeded. The internal
calls here were only implicitly re-loading a library the caller is
guaranteed to have already loaded.
src/shared/cryptsetup-util.c