Update buildroot from 17.02.2 -> 17.02.3
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
From 0b906cb025a506be1b73e5b485179585d1a90be2 Mon Sep 17 00:00:00 2001
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Thu, 11 May 2017 14:04:47 +0300
|
||||
Subject: [PATCH] af_alg: fix crypt() definition conflict
|
||||
|
||||
Rename the crypt() method to avoid conflict with POSIX crypt(). Fixes the
|
||||
following build failure with musl libc:
|
||||
|
||||
In file included from ../../../../src/libstrongswan/utils/utils.h:53:0,
|
||||
from ../../../../src/libstrongswan/library.h:101,
|
||||
from af_alg_ops.h:24,
|
||||
from af_alg_ops.c:16:
|
||||
af_alg_ops.c:110:22: error: conflicting types for 'crypt'
|
||||
METHOD(af_alg_ops_t, crypt, bool,
|
||||
^
|
||||
../../../../src/libstrongswan/utils/utils/object.h:99:13: note: in definition of macro 'METHOD'
|
||||
static ret name(union {iface *_public; this;} \
|
||||
^
|
||||
In file included from af_alg_ops.c:18:0:
|
||||
.../host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/unistd.h:144:7: note: previous declaration of 'crypt' was here
|
||||
char *crypt(const char *, const char *);
|
||||
^
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Upstream status: https://github.com/strongswan/strongswan/pull/72
|
||||
|
||||
src/libstrongswan/plugins/af_alg/af_alg_ops.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/libstrongswan/plugins/af_alg/af_alg_ops.c b/src/libstrongswan/plugins/af_alg/af_alg_ops.c
|
||||
index 331d1e8010aa..452cd1ac30c9 100644
|
||||
--- a/src/libstrongswan/plugins/af_alg/af_alg_ops.c
|
||||
+++ b/src/libstrongswan/plugins/af_alg/af_alg_ops.c
|
||||
@@ -107,7 +107,7 @@ METHOD(af_alg_ops_t, hash, bool,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
-METHOD(af_alg_ops_t, crypt, bool,
|
||||
+METHOD(af_alg_ops_t, crypt_, bool,
|
||||
private_af_alg_ops_t *this, u_int32_t type, chunk_t iv, chunk_t data,
|
||||
char *out)
|
||||
{
|
||||
@@ -224,7 +224,7 @@ af_alg_ops_t *af_alg_ops_create(char *type, char *alg)
|
||||
.public = {
|
||||
.hash = _hash,
|
||||
.reset = _reset,
|
||||
- .crypt = _crypt,
|
||||
+ .crypt = _crypt_,
|
||||
.set_key = _set_key,
|
||||
.destroy = _destroy,
|
||||
},
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -2,3 +2,6 @@
|
||||
md5 9d7c77b0da9b69f859624897e5e9ebbf strongswan-5.4.0.tar.bz2
|
||||
# Calculated based on the hash above
|
||||
sha256 f8288faaea6a9cd8a7d413c0b76b7922be5da3dfcd01fd05cb30d2c55d3bbe89 strongswan-5.4.0.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 f5ba7f46cf7ae81dd81bc86f9e4cfa0c5c7c6987149b3bc9c0b8bf08598a1063 strongswan-4.4.0-5.5.2_gmp_mpz_powm_sec.patch
|
||||
sha256 03db8c7a4133e877e8992e155c046dd27ec4810d50f239abf55595f0280caf31 strongswan-5.0.0-5.5.2_asn1_choice.patch
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
STRONGSWAN_VERSION = 5.4.0
|
||||
STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
|
||||
STRONGSWAN_SITE = http://download.strongswan.org
|
||||
STRONGSWAN_PATCH = \
|
||||
$(STRONGSWAN_SITE)/patches/21_gmp_mpz_powm_sec_patch/strongswan-4.4.0-5.5.2_gmp_mpz_powm_sec.patch \
|
||||
$(STRONGSWAN_SITE)/patches/22_asn1_choice_patch/strongswan-5.0.0-5.5.2_asn1_choice.patch
|
||||
STRONGSWAN_LICENSE = GPLv2+
|
||||
STRONGSWAN_LICENSE_FILES = COPYING LICENSE
|
||||
STRONGSWAN_DEPENDENCIES = host-pkgconf
|
||||
|
||||
Reference in New Issue
Block a user