Commit Graph

23 Commits

Author SHA1 Message Date
lean
a01b1ac233 libunistring: add host build 2024-04-18 16:31:40 +08:00
Boris Krasnovskiy
9cfc82bdb3 gnutls: Avoid building unused gnutls dependency
Avoid building unused gnutls dependency

Signed-off-by: Boris Krasnovskiy <borkra@gmail.com>
2022-11-08 14:43:46 +08:00
breakings
6972983eb4
gnutls: update to 3.7.8 (#563) 2022-10-24 10:02:01 +00:00
breakings
b06118e93c
gnutls: update to 3.7.7 (#515)
- libgnutls: Fixed double free during verification of pkcs7 signatures.
  Reported by Jaak Ristioja (#1383). [GNUTLS-SA-2022-07-07, CVSS: medium]
  [CVE-2022-2509]

- libgnutls: gnutls_hkdf_expand now only accepts LENGTH argument less than or
  equal to 255 times hash digest size, to comply with RFC 5869 2.3.

- libgnutls: Length limit for TLS PSK usernames has been increased
  from 128 to 65535 characters (#1323).

- libgnutls: AES-GCM encryption function now limits plaintext
  length to 2^39-256 bits, according to SP800-38D 5.2.1.1.

- libgnutls: New block cipher functions have been added to transparently
  handle padding.  gnutls_cipher_encrypt3 and gnutls_cipher_decrypt3 can be
  used in combination of GNUTLS_CIPHER_PADDING_PKCS7 flag to automatically
  add/remove padding if the length of the original plaintext is not a multiple
  of the block size.

- libgnutls: New function for manual FIPS self-testing.

API and ABI modifications:
- gnutls_fips140_run_self_tests: New function
- gnutls_cipher_encrypt3: New function
- gnutls_cipher_decrypt3: New function
- gnutls_cipher_padding_flags_t: New enum

Signed-off-by: Nick Hainke <vincent@systemli.org>

Signed-off-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Nick Hainke <vincent@systemli.org>
2022-09-04 23:48:47 +08:00
Nick Hainke
7e8f67d082 gnutls: disable brotli
Disable the brotli library by default. It is not used and may prevent
linking issues in the future.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-07-05 17:52:47 +00:00
Nick Hainke
ff971652f4 gnutls: fix disable zstd
Configure.ac syntax changed to:
  Old: --without-libbrotli --without-libzstd (also --with-*)
  New: --without-brotli --without-zstd (also --with-*)
  6b794e49d1

Fixes: 6385813ddfb4 ("gnutls: update to 3.7.5")

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-07-05 17:52:40 +00:00
Nick Hainke
64f13b752e gnutls: update to 3.7.6
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-07-05 17:52:34 +00:00
Nick Hainke
7e0ae8d7bd gnutls: update to 3.7.5
Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-07-05 17:52:26 +00:00
Nick Hainke
28cd4fe7cf gnutls: cleanup Makefile
- Add PKG_LICENSE_FILES
- Use SPDX
- Rearrange

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-07-05 17:52:19 +00:00
John Audia
92da63e418 gnutls: Update to 3.7.4
Bump to latest upstream release.  Rebased existing patches.

This version introduces certificate compression support, and with that,
optional dependencies on zlib and zstd. When configure picks them up,
build will fail due to missing dependencies:

Package libgnutls is missing dependencies for the following libraries:
libz.so.1
libzstd.so.1

Disable zlib and zstd support to avoid that.

Signed-off-by: John Audia <graysky@archlinux.us>
[disable zlib and zstd]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-03-31 06:24:11 +00:00
Rosen Penev
c5c82b29d4 gnutls: update to 3.7.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-03-31 06:24:04 +00:00
Stijn Tintel
081bd2e69b gnutls: add build dependency on gettext-full/host
The gnutls package uses the gettext-version fixup, which is only
available if gettext-full/host has been built. Add the missing build
dependency to fix these errors:

bash: line 1: /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/gettext: No such file or directory

bash: line 1: /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/autopoint: No such file or directory

It also prevents configure from using host gettext:

checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge

vs:

checking for msgfmt... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/msgfmt
checking for gmsgfmt... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/gmsgfmt
checking for xgettext... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/xgettext
checking for msgmerge... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/msgmerge

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-03-31 06:23:54 +00:00
Stijn Tintel
f4dcf7c1da gnutls: enable AUTORELEASE
Enable AUTORELEASE in a separate commit so that the next commit can be
reverted without having to manually re-introduce it.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-03-31 06:23:42 +00:00
Eneas U de Queiroz
c1ba24c8e3 gnutls: don't run aclocal --install
Remove the --install parameter when running aclocal.  The --install
argument is used to copy third-party files to the first -I directory.
gnutls has -I m4 first, which would copy files to its local build
directory.  However, openwrt prepends the staging dir m4 directory,
causing aclocal --install to copy an old definition of
ax_code_coverage.m4 into the staging dir.

If strace is built after gnutls, compilation will fail:

    Makefile:9303: *** missing separator.  Stop.

The version of ax_code_coverage.m4 that gets installed does not define
@CODE_COVERAGE_RULES@.

Removing the --install parameter in gnutls solves the issue.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-03-30 09:41:09 +00:00
Stijn Tintel
1970381d8d Revert "gnutls: update to 3.7.2"
Fixes #16083

This reverts commit 59a39d4c6fbe9c0179b16a714bf1a0c3afcbef5e.
2022-03-30 09:41:00 +00:00
Beginner
f5da0aa44c
gnutls: revert (#394)
* Revert "gnutls: disable zlib (#393)"

This reverts commit c872102fcf.

* Revert "gnutls: add build dependency on gettext-full/host"

This reverts commit 693a785ee3.

* Revert "gnutls: Update to 3.7.4"

This reverts commit 8f62def8a5.

* Revert " gnutls: don't run aclocal --install"

This reverts commit f161712d37.
2022-03-30 17:39:45 +08:00
breakings
c872102fcf
gnutls: disable zlib (#393)
Fixes:
Package libgnutls is missing dependencies for the following libraries:
libz.so.1
Disable zlib support to avoid that.
Signed-off-by: John Audia <graysky@archlinux.us>
[disable zlib and zstd]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

Co-authored-by: breakings <breakingstop@gmail.com>
2022-03-30 14:31:48 +08:00
Stijn Tintel
693a785ee3 gnutls: add build dependency on gettext-full/host
The gnutls package uses the gettext-version fixup, which is only
available if gettext-full/host has been built. Add the missing build
dependency to fix these errors:

bash: line 1: /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/gettext: No such file or directory

bash: line 1: /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/autopoint: No such file or directory

It also prevents configure from using host gettext:

checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge

vs:

checking for msgfmt... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/msgfmt
checking for gmsgfmt... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/gmsgfmt
checking for xgettext... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/xgettext
checking for msgmerge... /home/stijn/Development/OpenWrt/openwrt/staging_dir/hostpkg/bin/msgmerge

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-03-27 03:11:11 +08:00
John Audia
8f62def8a5 gnutls: Update to 3.7.4
Bump to latest upstream release.  Rebased existing patches.

This version introduced certificate compression support, and with that,
an optional dependency on zstd. When zstd is built, configure will pick
it up, and build will fail due to a missing dependency:

Package libgnutls is missing dependencies for the following libraries:
libzstd.so.1

Disable zstd support to avoid that.

Signed-off-by: John Audia <graysky@archlinux.us>
[disable zstd]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-03-26 07:29:04 +08:00
breakings
f161712d37 gnutls: don't run aclocal --install 2022-03-26 07:28:24 +08:00
lean
49b7495639 packages: merge upstream 2021-06-15 17:47:11 +08:00
coolsnowwolf
c36ad692b4 packages: sync to new packages 2020-07-08 14:18:52 +08:00
coolsnowwolf
d17588da1a first commit 2018-10-18 16:56:47 +08:00