diff options
author | Ray Kinsella <mdr@ashroe.eu> | 2021-01-11 12:01:49 +0000 |
---|---|---|
committer | BenoƮt Ganne <bganne@cisco.com> | 2021-01-13 13:58:22 +0100 |
commit | bf40e3eff94e403d8360bcf7499126aa5f95a3f5 (patch) | |
tree | f2dc43cbf054b113a756ede3936341072ad8eff2 /src | |
parent | f097300c2bd980abdc485e008628aec987340990 (diff) |
crypto-openssl: chacha support in openssl version
Fix build errors related to chachapoly when the
system openssl version is < 0x10100000.
Type: fix
Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: I62283fcc44c952ddd4d6a9f621c18e8be1af8af1
(cherry picked from commit bf93c6e9bf340e323157ca2b4ffa8e83a36e5108)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/crypto_openssl/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/crypto_openssl/main.c b/src/plugins/crypto_openssl/main.c index 020e3303899..de101cfb6b3 100644 --- a/src/plugins/crypto_openssl/main.c +++ b/src/plugins/crypto_openssl/main.c @@ -253,7 +253,7 @@ openssl_ops_enc_gcm (vlib_main_t * vm, vnet_crypto_op_t * ops[], /* is_gcm */ 1); } -static_always_inline u32 +static_always_inline __clib_unused u32 openssl_ops_enc_chacha20_poly1305 (vlib_main_t * vm, vnet_crypto_op_t * ops[], vnet_crypto_op_chunk_t * chunks, u32 n_ops, const EVP_CIPHER * cipher) @@ -317,7 +317,7 @@ openssl_ops_dec_gcm (vlib_main_t * vm, vnet_crypto_op_t * ops[], /* is_gcm */ 1); } -static_always_inline u32 +static_always_inline __clib_unused u32 openssl_ops_dec_chacha20_poly1305 (vlib_main_t * vm, vnet_crypto_op_t * ops[], vnet_crypto_op_chunk_t * chunks, u32 n_ops, const EVP_CIPHER * cipher) |