]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
android: Upgrade crypto libraries
authorKevin Cernekee <cernekee@gmail.com>
Sun, 28 Jan 2018 03:50:40 +0000 (19:50 -0800)
committerKevin Cernekee <cernekee@gmail.com>
Mon, 12 Feb 2018 03:39:14 +0000 (19:39 -0800)
Update gmp, nettle, gnutls to the latest stable releases.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
android/Makefile
android/fetch.sh

index 8d9442bf0765ff8b30e7c4eec5ea757dddbe98dd..ca724fe9d40f8ddd0751215a186ef9eb92248c8c 100644 (file)
@@ -126,9 +126,9 @@ libxml: $(LIBXML_DEPS)
 #
 # Build GNU MP
 #
-GMP_VER := 5.1.2
-GMP_TAR := gmp-$(GMP_VER).tar.bz2
-GMP_SHA := 2cb498322b9be4713829d94dee944259c017d615
+GMP_VER := 6.1.2
+GMP_TAR := gmp-$(GMP_VER).tar.xz
+GMP_SHA := 87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912
 GMP_SRC := sources/gmp-$(GMP_VER)
 GMP_BUILD := $(TRIPLET)/gmp
 
@@ -137,7 +137,7 @@ $(GMP_TAR):
 
 $(GMP_SRC)/configure: $(GMP_TAR)
        mkdir -p sources
-       tar xfj $< -C sources
+       tar -xJf $< -C sources
        touch $@
 
 $(GMP_BUILD)/Makefile: $(TOOLCHAIN_BUILT) $(GMP_SRC)/configure
@@ -160,9 +160,9 @@ gmp: $(GMP_DEPS)
 #
 # Build nettle
 #
-NETTLE_VER := 2.7.1
+NETTLE_VER := 3.4
 NETTLE_TAR := nettle-$(NETTLE_VER).tar.gz
-NETTLE_SHA := e7477df5f66e650c4c4738ec8e01c2efdb5d1211
+NETTLE_SHA := ae7a42df026550b85daca8389b6a60ba6313b0567f374392e54918588a411e94
 NETTLE_SRC := sources/nettle-$(NETTLE_VER)
 NETTLE_BUILD := $(TRIPLET)/nettle
 
@@ -193,9 +193,9 @@ nettle: $(NETTLE_DEPS)
 #
 # Build GnuTLS
 #
-GNUTLS_VER := 3.2.21
+GNUTLS_VER := 3.5.17
 GNUTLS_TAR := gnutls-$(GNUTLS_VER).tar.xz
-GNUTLS_SHA := fa12e643ad21bcaf450d534f262c813d75843966
+GNUTLS_SHA := 86b142afef587c118d63f72ccf307f3321dbc40357aae528202b65d913d20919
 GNUTLS_SRC := sources/gnutls-$(GNUTLS_VER)
 GNUTLS_BUILD := $(TRIPLET)/gnutls
 
@@ -223,9 +223,10 @@ $(GNUTLS_BUILD)/Makefile: $(TOOLCHAIN_BUILT) $(GNUTLS_SRC)/configure $(NETTLE_DE
                --disable-doc --disable-openssl-compatibility --disable-cxx \
                --disable-openssl-compatibility --disable-ocsp \
                --disable-openpgp-authentication --disable-anon-authentication \
-               --disable-psk-authentication --disable-srp-authentication \
+               --enable-psk-authentication --disable-srp-authentication \
                --disable-dtls-srtp-support  --enable-dhe --enable-ecdhe \
-               --disable-rsa-export
+               --disable-rsa-export --with-included-libtasn1 \
+               --with-included-unistring --without-p11-kit
 
 $(GNUTLS_BUILD)/lib/libgnutls.la: $(GNUTLS_BUILD)/Makefile
        $(MAKE) -C $(GNUTLS_BUILD)
index 91dd914a83a43acdb8b7a612be8e662f413cbd62..4938f4b19ee6e0ae487c005b3aeed7cc514d9b99 100755 (executable)
@@ -31,10 +31,10 @@ nettle_MIRROR_1=http://mirror.anl.gov/pub/gnu/nettle
 nettle_MIRROR_2=http://ftp.gnu.org/gnu/nettle
 nettle_MIRROR_3=http://gd.tuwien.ac.at/gnu/gnusrc/nettle
 
-gnutls_MIRROR_0=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2
-gnutls_MIRROR_1=http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/gnutls/v3.2
-gnutls_MIRROR_2=http://gd.tuwien.ac.at/pub/gnupg/gnutls/v3.2
-gnutls_MIRROR_3=http://thammuz.tchpc.tcd.ie/mirrors/gnupg/gnutls/v3.2
+gnutls_MIRROR_0=https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5
+gnutls_MIRROR_1=http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/gnutls/v3.5
+gnutls_MIRROR_2=http://gd.tuwien.ac.at/pub/gnupg/gnutls/v3.5
+gnutls_MIRROR_3=http://thammuz.tchpc.tcd.ie/mirrors/gnupg/gnutls/v3.5
 
 stoken_MIRROR_0=http://sourceforge.net/projects/stoken/files
 stoken_SUFFIX_0=/download