Bump buildroot to 2019.02
This commit is contained in:
@@ -8,6 +8,10 @@ libssh2.pc contains correct info for the benefit of pkg-config users.
|
||||
Static link with libssh2 requires this information.
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
[Fabrice: Replace $LIBMBEDCRYTO by -lmdedcrypto to avoid adding a full
|
||||
library path to libssh2.pc as it raises build failures on some packages
|
||||
such as xerces]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
Upstream status: https://github.com/libssh2/libssh2/pull/242
|
||||
|
||||
@@ -22,7 +26,7 @@ index c0e89a1a0c98..02c70845d27c 100644
|
||||
[mbedtls], [
|
||||
LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include <mbedtls/version.h>], [
|
||||
AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1])
|
||||
+ LIBS="$LIBS $LIBMBEDCRYPTO"
|
||||
+ LIBS="$LIBS -lmbedcrypto"
|
||||
found_crypto="$1"
|
||||
support_clear_memory=yes
|
||||
])
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
From 28fe5e4de437f8fce6e428b7db9bc8640cda4c61 Mon Sep 17 00:00:00 2001
|
||||
From: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
Date: Thu, 13 Sep 2018 09:51:35 +0200
|
||||
Subject: [PATCH] openssl: fix dereferencing ambiguity potentially causing
|
||||
build failure
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
When dereferencing from *aes_ctr_cipher, being a pointer itself,
|
||||
ambiguity can occur with compiler and build can fail reporting:
|
||||
openssl.c:574:20: error: ‘*aes_ctr_cipher’ is a pointer; did you mean to use ‘->’?
|
||||
*aes_ctr_cipher->nid = type;
|
||||
|
||||
Sorround every *aes_ctr_cipher-> occurence with paranthesis like this
|
||||
(*aes_ctr_cipher)->
|
||||
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
Upstream: https://github.com/libssh2/libssh2/commit/b5b6673c2823a18753a14571a6c01bde33fa3a8b
|
||||
---
|
||||
src/openssl.c | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/openssl.c b/src/openssl.c
|
||||
index 678d5de..c26aaec 100644
|
||||
--- a/src/openssl.c
|
||||
+++ b/src/openssl.c
|
||||
@@ -571,13 +571,13 @@ make_ctr_evp (size_t keylen, EVP_CIPHER **aes_ctr_cipher, int type)
|
||||
EVP_CIPHER_meth_set_cleanup(*aes_ctr_cipher, aes_ctr_cleanup);
|
||||
}
|
||||
#else
|
||||
- *aes_ctr_cipher->nid = type;
|
||||
- *aes_ctr_cipher->block_size = 16;
|
||||
- *aes_ctr_cipher->key_len = keylen;
|
||||
- *aes_ctr_cipher->iv_len = 16;
|
||||
- *aes_ctr_cipher->init = aes_ctr_init;
|
||||
- *aes_ctr_cipher->do_cipher = aes_ctr_do_cipher;
|
||||
- *aes_ctr_cipher->cleanup = aes_ctr_cleanup;
|
||||
+ (*aes_ctr_cipher)->nid = type;
|
||||
+ (*aes_ctr_cipher)->block_size = 16;
|
||||
+ (*aes_ctr_cipher)->key_len = keylen;
|
||||
+ (*aes_ctr_cipher)->iv_len = 16;
|
||||
+ (*aes_ctr_cipher)->init = aes_ctr_init;
|
||||
+ (*aes_ctr_cipher)->do_cipher = aes_ctr_do_cipher;
|
||||
+ (*aes_ctr_cipher)->cleanup = aes_ctr_cleanup;
|
||||
#endif
|
||||
|
||||
return *aes_ctr_cipher;
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 e73d55cd512863aa6423c6e137039e3e1bcbf5ba87f130e7441132c2c78a5425 libssh2-616fd4d1b3e4a55de67c48819fefca83132126b5.tar.gz
|
||||
sha256 ec2b32b44ae5f8fe094f663f63953fb31314de838eb36e8c47e5a89137b5a1bc libssh2-8b870ad771cbd9cd29edbb3dbb0878e950f868ab.tar.gz
|
||||
sha256 e15ed284a15e80115467d6d7f030f0d89d8fabbecd78fb6e0f861f0cfc128fd9 COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBSSH2_VERSION = 616fd4d1b3e4a55de67c48819fefca83132126b5
|
||||
LIBSSH2_VERSION = 8b870ad771cbd9cd29edbb3dbb0878e950f868ab
|
||||
LIBSSH2_SITE = $(call github,libssh2,libssh2,$(LIBSSH2_VERSION))
|
||||
LIBSSH2_LICENSE = BSD
|
||||
LIBSSH2_LICENSE_FILES = COPYING
|
||||
@@ -42,7 +42,7 @@ endif
|
||||
|
||||
HOST_LIBSSH2_DEPENDENCIES += host-openssl
|
||||
HOST_LIBSSH2_CONF_OPTS += --with-openssl \
|
||||
--with-libssl-prefix=$(HOST_DIR)/usr \
|
||||
--with-libssl-prefix=$(HOST_DIR) \
|
||||
--without-libgcrypt
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user