From: Tobias Brunner Date: Wed, 9 Feb 2022 15:08:30 +0000 (+0100) Subject: pkcs5: Rename kdf_t to avoid conflict X-Git-Tag: 5.9.6rc1~2^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35ad267fce680a7126caf03d02bc3fe61cdac712;p=thirdparty%2Fstrongswan.git pkcs5: Rename kdf_t to avoid conflict --- diff --git a/src/libstrongswan/crypto/pkcs5.c b/src/libstrongswan/crypto/pkcs5.c index e7677a9c19..b3f1acd67f 100644 --- a/src/libstrongswan/crypto/pkcs5.c +++ b/src/libstrongswan/crypto/pkcs5.c @@ -131,7 +131,7 @@ static bool verify_padding(crypter_t *crypter, chunk_t *blob) /** * Prototype for key derivation functions. */ -typedef bool (*kdf_t)(private_pkcs5_t *this, chunk_t password, chunk_t key); +typedef bool (*derive_t)(private_pkcs5_t *this, chunk_t password, chunk_t key); /** * Try to decrypt the given data with the given password using the given @@ -139,7 +139,7 @@ typedef bool (*kdf_t)(private_pkcs5_t *this, chunk_t password, chunk_t key); * to, key and iv point to the actual keys and initialization vectors resp. */ static bool decrypt_generic(private_pkcs5_t *this, chunk_t password, - chunk_t data, chunk_t *decrypted, kdf_t kdf, + chunk_t data, chunk_t *decrypted, derive_t kdf, chunk_t keymat, chunk_t key, chunk_t iv) { if (!kdf(this, password, keymat)) @@ -341,7 +341,7 @@ METHOD(pkcs5_t, decrypt, bool, private_pkcs5_t *this, chunk_t password, chunk_t data, chunk_t *decrypted) { chunk_t keymat, key, iv; - kdf_t kdf; + derive_t kdf; if (!ensure_crypto_primitives(this, data) || !decrypted) {