crypto: add compat cast5_set_key with nettle < 3.0.0
Prior to the nettle 3.0.0 release, the cast5_set_key function was actually named cast128_set_key, so we must add a compatibility definition. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
4829e0378d
commit
621e6ae657
@ -34,6 +34,8 @@ typedef nettle_crypt_func nettle_cipher_func;
|
|||||||
|
|
||||||
typedef void * cipher_ctx_t;
|
typedef void * cipher_ctx_t;
|
||||||
typedef unsigned cipher_length_t;
|
typedef unsigned cipher_length_t;
|
||||||
|
|
||||||
|
#define cast5_set_key cast128_set_key
|
||||||
#else
|
#else
|
||||||
typedef const void * cipher_ctx_t;
|
typedef const void * cipher_ctx_t;
|
||||||
typedef size_t cipher_length_t;
|
typedef size_t cipher_length_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user