diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-06-02 16:24:52 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-06-12 11:53:37 +0200 |
commit | b99b2941276a74878a23470b36c75b0c21dbdd4a (patch) | |
tree | ee50e6509c4e61392b4bff40e93904fa2107ae57 /src/shared/cryptsetup-util.h | |
parent | resolved: permit dnssec rrtype questions when we aren't validating (diff) | |
download | systemd-b99b2941276a74878a23470b36c75b0c21dbdd4a.tar.xz systemd-b99b2941276a74878a23470b36c75b0c21dbdd4a.zip |
repart: Use crypt_reencrypt_run() if available
crypt_reencrypt() is deprecated, so let's look for and prefer
crypt_reencrypt_run() if it is available.
Diffstat (limited to '')
-rw-r--r-- | src/shared/cryptsetup-util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/cryptsetup-util.h b/src/shared/cryptsetup-util.h index f00ac367b6..d255e59004 100644 --- a/src/shared/cryptsetup-util.h +++ b/src/shared/cryptsetup-util.h @@ -70,10 +70,10 @@ DLSYM_PROTOTYPE(crypt_volume_key_get); #if HAVE_CRYPT_REENCRYPT_INIT_BY_PASSPHRASE DLSYM_PROTOTYPE(crypt_reencrypt_init_by_passphrase); #endif -#if HAVE_CRYPT_REENCRYPT -DISABLE_WARNING_DEPRECATED_DECLARATIONS; +#if HAVE_CRYPT_REENCRYPT_RUN +DLSYM_PROTOTYPE(crypt_reencrypt_run); +#elif HAVE_CRYPT_REENCRYPT DLSYM_PROTOTYPE(crypt_reencrypt); -REENABLE_WARNING; #endif DLSYM_PROTOTYPE(crypt_metadata_locking); #if HAVE_CRYPT_SET_DATA_OFFSET |