diff mbox series

[v3,1/3] linux-generic: crypto: add missing include

Message ID 20170223133734.19436-1-dmitry.ereminsolenikov@linaro.org
State Accepted
Commit 17454218029d3f22c15755d91b9e97c46fb16d61
Headers show
Series [v3,1/3] linux-generic: crypto: add missing include | expand

Commit Message

Dmitry Eremin-Solenikov Feb. 23, 2017, 1:37 p.m. UTC
OpenSSL 1.1.0 headers do not include <openssl/evp.h>, so include it
manually to fix the following error:

In file included from ./include/odp_packet_internal.h:28:0,
                 from odp_classification.c:13:
./include/odp_crypto_internal.h:55:5: error: unknown type name ‘EVP_CIPHER_CTX’
     EVP_CIPHER_CTX *ctx;
     ^~~~~~~~~~~~~~

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
 platform/linux-generic/include/odp_crypto_internal.h | 1 +
 1 file changed, 1 insertion(+)

-- 
2.11.0

Comments

Bill Fischofer Feb. 23, 2017, 2:35 p.m. UTC | #1
For this series:

Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>

On Thu, Feb 23, 2017 at 7:37 AM, Dmitry Eremin-Solenikov <
dmitry.ereminsolenikov@linaro.org> wrote:

> OpenSSL 1.1.0 headers do not include <openssl/evp.h>, so include it

> manually to fix the following error:

>

> In file included from ./include/odp_packet_internal.h:28:0,

>                  from odp_classification.c:13:

> ./include/odp_crypto_internal.h:55:5: error: unknown type name

> ‘EVP_CIPHER_CTX’

>      EVP_CIPHER_CTX *ctx;

>      ^~~~~~~~~~~~~~

>

> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

> ---

>  platform/linux-generic/include/odp_crypto_internal.h | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/platform/linux-generic/include/odp_crypto_internal.h

> b/platform/linux-generic/include/odp_crypto_internal.h

> index c7b893aa..f85b76ea 100644

> --- a/platform/linux-generic/include/odp_crypto_internal.h

> +++ b/platform/linux-generic/include/odp_crypto_internal.h

> @@ -13,6 +13,7 @@ extern "C" {

>

>  #include <openssl/des.h>

>  #include <openssl/aes.h>

> +#include <openssl/evp.h>

>

>  #define MAX_IV_LEN      64

>  #define OP_RESULT_MAGIC 0x91919191

> --

> 2.11.0

>

>
diff mbox series

Patch

diff --git a/platform/linux-generic/include/odp_crypto_internal.h b/platform/linux-generic/include/odp_crypto_internal.h
index c7b893aa..f85b76ea 100644
--- a/platform/linux-generic/include/odp_crypto_internal.h
+++ b/platform/linux-generic/include/odp_crypto_internal.h
@@ -13,6 +13,7 @@  extern "C" {
 
 #include <openssl/des.h>
 #include <openssl/aes.h>
+#include <openssl/evp.h>
 
 #define MAX_IV_LEN      64
 #define OP_RESULT_MAGIC 0x91919191