]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
2 months agonettle: remove unused block8.h, block-internal.h, and nettle-internal.h
Daiki Ueno [Tue, 3 Mar 2026 09:13:27 +0000 (18:13 +0900)] 
nettle: remove unused block8.h, block-internal.h, and nettle-internal.h

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agonettle: remove bundled code for upstreamed GOST Streebog
Daiki Ueno [Tue, 3 Mar 2026 06:48:25 +0000 (15:48 +0900)] 
nettle: remove bundled code for upstreamed GOST Streebog

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agonettle: remove check for nettle_rsa_sec_decrypt
Daiki Ueno [Tue, 3 Mar 2026 01:28:03 +0000 (10:28 +0900)] 
nettle: remove check for nettle_rsa_sec_decrypt

Now that Nettle 3.10 is required to build the library, the check for
the function is redundant.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agonettle: remove check for nettle_cbc_aes128_encrypt
Daiki Ueno [Tue, 3 Mar 2026 01:25:57 +0000 (10:25 +0900)] 
nettle: remove check for nettle_cbc_aes128_encrypt

nettle_cbc_aes128_encrypt was added in Nettle 3.8, while we require
3.10 or later. We can use the function unconditionally.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agonettle: remove bundled code for *_shake_output
Daiki Ueno [Tue, 3 Mar 2026 01:22:40 +0000 (10:22 +0900)] 
nettle: remove bundled code for *_shake_output

Now that Nettle 3.10 is required to build the library, the bundled
code is no longer used.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agonettle: remove bundled code for RSA-OAEP
Daiki Ueno [Tue, 3 Mar 2026 01:21:07 +0000 (10:21 +0900)] 
nettle: remove bundled code for RSA-OAEP

Now that Nettle 3.10 is required to build the library, the bundled
code is no longer used.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agonettle: remove bundled code for AES-GCM-SIV
Daiki Ueno [Tue, 3 Mar 2026 01:19:10 +0000 (10:19 +0900)] 
nettle: remove bundled code for AES-GCM-SIV

Now that Nettle 3.10 is required to build the library, the bundled
code is no longer used.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoMerge branch 'wip/dueno/nettle-4-followup' into 'master'
Alexander Sosedkin [Wed, 4 Mar 2026 11:42:35 +0000 (11:42 +0000)] 
Merge branch 'wip/dueno/nettle-4-followup' into 'master'

accelerated: don't register custom HMAC for AArch64 if Nettle 4

Closes #1804

See merge request gnutls/gnutls!2080

2 months agonettle: revert workaround for base64_decode_update return values
Daiki Ueno [Tue, 3 Mar 2026 06:41:44 +0000 (15:41 +0900)] 
nettle: revert workaround for base64_decode_update return values

This reverts commit d6014115969655005968491be1da8892ddedc134, as it
turned out that the change of error return value was only available in
an unreleased version of Nettle.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoaccelerated: don't register custom HMAC for AArch64 if Nettle 4
Daiki Ueno [Wed, 4 Mar 2026 01:07:22 +0000 (10:07 +0900)] 
accelerated: don't register custom HMAC for AArch64 if Nettle 4

As a follow-up of commit 4e3921c36529110a94c2a63e0d6601c502901589, add
missing #ifdefs for AArch64, as Nettle 4 doesn't provide an easy way
to implement a custom HMAC instance.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoMerge branch 'update-gnulib' into 'master'
Alexander Sosedkin [Wed, 4 Mar 2026 10:35:25 +0000 (10:35 +0000)] 
Merge branch 'update-gnulib' into 'master'

gnulib: update to 2026-03-01 1cc0125a28

See merge request gnutls/gnutls!2069

2 months agognulib: update to 2026-03-01 1cc0125a28
Alexander Sosedkin [Wed, 18 Feb 2026 15:30:25 +0000 (16:30 +0100)] 
gnulib: update to 2026-03-01 1cc0125a28

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months agoMerge branch 'fix-mingw' into 'master'
Alexander Sosedkin [Tue, 3 Mar 2026 18:55:11 +0000 (18:55 +0000)] 
Merge branch 'fix-mingw' into 'master'

fix mingw

See merge request gnutls/gnutls!2076

2 months ago.gitlab-ci.yml: unmark mingw jobs as manual
Alexander Sosedkin [Mon, 2 Mar 2026 12:08:08 +0000 (13:08 +0100)] 
.gitlab-ci.yml: unmark mingw jobs as manual

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months ago.gitlab-ci.yml: explicitly initialize wine prefix...
Alexander Sosedkin [Sun, 1 Mar 2026 01:48:19 +0000 (02:48 +0100)] 
.gitlab-ci.yml: explicitly initialize wine prefix...

... with no concurrency, before running the tests

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months ago.gitlab-ci.yml: use separate 32 and 64 mingw images
Alexander Sosedkin [Wed, 25 Feb 2026 16:06:57 +0000 (17:06 +0100)] 
.gitlab-ci.yml: use separate 32 and 64 mingw images

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months agotests/name-constraints-ip: call gnutls_global_init explicitly
Alexander Sosedkin [Sun, 1 Mar 2026 23:51:38 +0000 (00:51 +0100)] 
tests/name-constraints-ip: call gnutls_global_init explicitly

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months agotests/name-constraints-ip: turn check_for_error into a macro
Alexander Sosedkin [Sun, 1 Mar 2026 23:51:05 +0000 (00:51 +0100)] 
tests/name-constraints-ip: turn check_for_error into a macro

This way we can get more meaningful diagnostics
with the use of the __LINE__ macro and tell the failures apart.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agoMerge branch 'wip/dueno/nettle-4' into 'master'
Daiki Ueno [Sat, 28 Feb 2026 00:40:28 +0000 (09:40 +0900)] 
Merge branch 'wip/dueno/nettle-4' into 'master'

Support building with Nettle 4

Closes #1791

See merge request gnutls/gnutls!2075

3 months ago.gitlab-ci.yml: re-enable fedora/nettle jobs with Nettle master
Daiki Ueno [Thu, 26 Feb 2026 22:00:21 +0000 (07:00 +0900)] 
.gitlab-ci.yml: re-enable fedora/nettle jobs with Nettle master

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agonettle: catch both old and new error codes from base64_decode_update
Daiki Ueno [Thu, 26 Feb 2026 23:53:02 +0000 (08:53 +0900)] 
nettle: catch both old and new error codes from base64_decode_update

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agornd-fips: use Nettle 4 digest interface
Daiki Ueno [Thu, 26 Feb 2026 03:23:58 +0000 (12:23 +0900)] 
rnd-fips: use Nettle 4 digest interface

We should switch to the drbg-ctr-aes256 module provided by Nettle.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agotls1-prf: use Nettle 4 digest interface
Daiki Ueno [Thu, 26 Feb 2026 03:23:40 +0000 (12:23 +0900)] 
tls1-prf: use Nettle 4 digest interface

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agonettle: support Nettle 4 cipher interface
Daiki Ueno [Thu, 26 Feb 2026 03:14:47 +0000 (12:14 +0900)] 
nettle: support Nettle 4 cipher interface

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agonettle: support Nettle 4 hash and MAC interfaces
Daiki Ueno [Thu, 26 Feb 2026 03:10:01 +0000 (12:10 +0900)] 
nettle: support Nettle 4 hash and MAC interfaces

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agodsa-fips: omit digest_size argument for sha384_digest with Nettle 4
Daiki Ueno [Wed, 25 Feb 2026 23:19:52 +0000 (08:19 +0900)] 
dsa-fips: omit digest_size argument for sha384_digest with Nettle 4

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agoaccelerated: support GCM_DIGEST in Nettle 4
Daiki Ueno [Wed, 25 Feb 2026 23:17:43 +0000 (08:17 +0900)] 
accelerated: support GCM_DIGEST in Nettle 4

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agoMerge branch 'leak-related-tweaks' into 'master'
Alexander Sosedkin [Fri, 27 Feb 2026 10:19:48 +0000 (10:19 +0000)] 
Merge branch 'leak-related-tweaks' into 'master'

leak related tweaks, trying to catch #1799 in CI

See merge request gnutls/gnutls!2072

3 months agotests/gnutls-asan.supp: tighten up
Alexander Sosedkin [Thu, 19 Feb 2026 14:23:07 +0000 (15:23 +0100)] 
tests/gnutls-asan.supp: tighten up

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agotests/slow: remove ASAN suppression file
Alexander Sosedkin [Thu, 19 Feb 2026 14:14:20 +0000 (15:14 +0100)] 
tests/slow: remove ASAN suppression file

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agotests/tls13-early-data-neg2: add an overlooked free
Alexander Sosedkin [Thu, 19 Feb 2026 12:32:08 +0000 (13:32 +0100)] 
tests/tls13-early-data-neg2: add an overlooked free

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agotests/resume-with-*: add a few overlooked frees
Alexander Sosedkin [Thu, 19 Feb 2026 11:59:26 +0000 (12:59 +0100)] 
tests/resume-with-*: add a few overlooked frees

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agotests/resume-with-previous-*: turn functions w/o retval void
Alexander Sosedkin [Thu, 19 Feb 2026 11:58:35 +0000 (12:58 +0100)] 
tests/resume-with-previous-*: turn functions w/o retval void

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agoaccelerated: give up on defining nettle HMAC interface
Daiki Ueno [Wed, 25 Feb 2026 23:06:07 +0000 (08:06 +0900)] 
accelerated: give up on defining nettle HMAC interface

Nettle 4 doesn't provide a way to define custom HMAC instances.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agonettle: use Nettle provided function types
Daiki Ueno [Thu, 26 Feb 2026 21:57:16 +0000 (06:57 +0900)] 
nettle: use Nettle provided function types

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agonettle: include <nettle/sha[12].h> instead of deprecated <nettle/sha.h>
Daiki Ueno [Wed, 25 Feb 2026 23:03:38 +0000 (08:03 +0900)] 
nettle: include <nettle/sha[12].h> instead of deprecated <nettle/sha.h>

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agonettle: use SHA*_BLOCK_SIZE instead of deprecated SHA*_DATA_SIZE
Daiki Ueno [Wed, 25 Feb 2026 22:50:42 +0000 (07:50 +0900)] 
nettle: use SHA*_BLOCK_SIZE instead of deprecated SHA*_DATA_SIZE

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agoMerge branch 'zfridric_devel' into 'master'
Zoltán Fridrich [Mon, 23 Feb 2026 12:54:32 +0000 (12:54 +0000)] 
Merge branch 'zfridric_devel' into 'master'

Fix parsing of BIT STRING encoded EdDSA keys

Closes #1749

See merge request gnutls/gnutls!2060

3 months agoAdd tests for different EDDSA ecpoint encodings
Zoltan Fridrich [Tue, 17 Feb 2026 13:07:39 +0000 (14:07 +0100)] 
Add tests for different EDDSA ecpoint encodings

Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
3 months agoFix parsing of BIT STRING encoded EdDSA keys
Zoltan Fridrich [Thu, 29 Jan 2026 15:49:11 +0000 (16:49 +0100)] 
Fix parsing of BIT STRING encoded EdDSA keys

Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
3 months agoMerge branch 'const' into 'master'
Daiki Ueno [Mon, 23 Feb 2026 03:07:08 +0000 (12:07 +0900)] 
Merge branch 'const' into 'master'

Fix discard const qualifier

See merge request gnutls/gnutls!2073

3 months agoFix discard const qualifier
Rudi Heitbaum [Sun, 22 Feb 2026 09:38:01 +0000 (09:38 +0000)] 
Fix discard const qualifier

Since glibc-2.43 and ISO C23, the functions bsearch, memchr, strchr,
strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr
that return pointers into their input arrays now have definitions as
macros that return a pointer to a const-qualified type when the input
argument is a pointer to a const-qualified type.

additional and p pointer returns are only being used for comparisons so declare
them as const, which matches the input variable.

Fixes:
    ../../../lib/x509/hostname-verify.c: In function 'gnutls_x509_crt_check_hostname2':
    ../../../lib/x509/hostname-verify.c:165:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      165 |             ((p = strchr(hostname, ':')) != NULL ||
          |                 ^
    ../../../lib/x509/ip.c: In function 'gnutls_x509_cidr_to_rfc5280':
    ../../../lib/x509/ip.c:233:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      233 |         p = strchr(cidr, '/');
          |           ^
    ../../lib/priority.c: In function '_gnutls_resolve_priorities':
    ../../lib/priority.c:2534:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     2534 |         additional = strchr(ss, ':');
          |                    ^
    ../../lib/str.c: In function '_gnutls_hostname_compare':
    ../../lib/str.c:722:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      722 |                 p = strrchr(certname, '.');
          |                   ^

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
3 months agoMerge branch 'test-long-label-fix-leak' into 'master'
Alexander Sosedkin [Thu, 19 Feb 2026 16:41:59 +0000 (16:41 +0000)] 
Merge branch 'test-long-label-fix-leak' into 'master'

tests/pkcs11/long-label: fix a leak

Closes #1799

See merge request gnutls/gnutls!2068

3 months agotests/pkcs11/long-label: fix a leak
Alexander Sosedkin [Wed, 18 Feb 2026 17:38:52 +0000 (18:38 +0100)] 
tests/pkcs11/long-label: fix a leak

Fixes: #1799
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agoMerge branch 'wip/asosedkin/release-3.8.12' into 'master' 3.8.12
Alexander Sosedkin [Mon, 9 Feb 2026 15:36:50 +0000 (15:36 +0000)] 
Merge branch 'wip/asosedkin/release-3.8.12' into 'master'

Release 3.8.12

Closes #1773 and #1790

See merge request gnutls/gnutls!2062

3 months agoRelease 3.8.12
Alexander Sosedkin [Thu, 5 Feb 2026 18:29:25 +0000 (19:29 +0100)] 
Release 3.8.12

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: name_constraints_node_list_intersect over sorted
Alexander Sosedkin [Wed, 4 Feb 2026 19:03:49 +0000 (20:03 +0100)] 
x509/name_constraints: name_constraints_node_list_intersect over sorted

Fixes: #1773
Fixes: GNUTLS-SA-2026-02-09-2
Fixes: CVE-2025-14831
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: make types_with_empty_intersection a bitmask
Alexander Sosedkin [Wed, 4 Feb 2026 17:31:37 +0000 (18:31 +0100)] 
x509/name_constraints: make types_with_empty_intersection a bitmask

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: implement name_constraints_node_list_union
Alexander Sosedkin [Wed, 4 Feb 2026 12:30:08 +0000 (13:30 +0100)] 
x509/name_constraints: implement name_constraints_node_list_union

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: add sorted_view in preparation...
Alexander Sosedkin [Wed, 4 Feb 2026 08:09:46 +0000 (09:09 +0100)] 
x509/name_constraints: add sorted_view in preparation...

... for actually using it later for performance gains.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: introduce a rich comparator
Alexander Sosedkin [Mon, 26 Jan 2026 19:16:36 +0000 (20:16 +0100)] 
x509/name_constraints: introduce a rich comparator

These are preparatory changes before implementing N * log N intersection
over sorted lists of constraints.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: name_constraints_node_add_{new,copy}
Alexander Sosedkin [Thu, 5 Feb 2026 12:22:10 +0000 (13:22 +0100)] 
x509/name_constraints: name_constraints_node_add_{new,copy}

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: reject some malformed domain names
Alexander Sosedkin [Mon, 26 Jan 2026 19:14:33 +0000 (20:14 +0100)] 
x509/name_constraints: reject some malformed domain names

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agotests/name-constraints-ip: stop swallowing errors...
Alexander Sosedkin [Mon, 26 Jan 2026 18:10:58 +0000 (19:10 +0100)] 
tests/name-constraints-ip: stop swallowing errors...

... now when it started to pass

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agox509/name_constraints: use actual zeroes in universal exclude IP NC
Alexander Sosedkin [Mon, 26 Jan 2026 18:02:27 +0000 (19:02 +0100)] 
x509/name_constraints: use actual zeroes in universal exclude IP NC

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agopre_shared_key: add null check on pskcred
Alexander Sosedkin [Thu, 29 Jan 2026 16:38:01 +0000 (17:38 +0100)] 
pre_shared_key: add null check on pskcred

Fixes: #1790
Fixes: GNUTLS-SA-2026-02-09-1
Fixes: CVE-2026-1584
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agoNEWS: add an entry for overflows reported by Tim Rühsen
Alexander Sosedkin [Thu, 5 Feb 2026 18:58:11 +0000 (19:58 +0100)] 
NEWS: add an entry for overflows reported by Tim Rühsen

3 months ago_gnutls_bin2hex: make it robuster against empty input
Daiki Ueno [Fri, 23 Jan 2026 07:29:25 +0000 (16:29 +0900)] 
_gnutls_bin2hex: make it robuster against empty input

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agotests: use public API in pkcs12_s2k test as possible
Daiki Ueno [Fri, 23 Jan 2026 07:18:35 +0000 (16:18 +0900)] 
tests: use public API in pkcs12_s2k test as possible

The pkcs12_s2k was using _gnutls_bin2hex, which is a private
function. This changes the test logic to compare with binary blogs
instead of hex encoded data, and switches to using a public function,
gnutls_hex_decode.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agox509: avoid integer overflow when escaping DN
Daiki Ueno [Fri, 16 Jan 2026 02:26:21 +0000 (11:26 +0900)] 
x509: avoid integer overflow when escaping DN

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agobuffer: add more extensive integer overflow checks
Daiki Ueno [Thu, 15 Jan 2026 00:31:47 +0000 (09:31 +0900)] 
buffer: add more extensive integer overflow checks

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agodoc/Makefile: re-add three binaries to DISTCLEANFILES
Alexander Sosedkin [Mon, 9 Feb 2026 06:46:40 +0000 (07:46 +0100)] 
doc/Makefile: re-add three binaries to DISTCLEANFILES

This has previously been fixed in
8daba130cc0c4100186af0b61bc3e65d54a46727,
but then 5300a8683d937ccf09ed01170d3bcb93d97ed605 reverted it out
together with the other change.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months ago.gitlab-ci.yml: kill wineserver before running tests
Alexander Sosedkin [Mon, 9 Feb 2026 11:42:22 +0000 (12:42 +0100)] 
.gitlab-ci.yml: kill wineserver before running tests

3 months ago.gitlab-ci.yml: do not run fedora-i686/test w/o fedora-i686/build
Alexander Sosedkin [Mon, 9 Feb 2026 08:58:06 +0000 (09:58 +0100)] 
.gitlab-ci.yml: do not run fedora-i686/test w/o fedora-i686/build

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months ago.gitlab-ci.yml: unregister qemu binfmt handler first
Alexander Sosedkin [Mon, 9 Feb 2026 08:54:31 +0000 (09:54 +0100)] 
.gitlab-ci.yml: unregister qemu binfmt handler first

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months ago.gitlab-ci.yml: fix .mingw/test binfmt setup
Alexander Sosedkin [Mon, 9 Feb 2026 06:30:43 +0000 (07:30 +0100)] 
.gitlab-ci.yml: fix .mingw/test binfmt setup

Previously, multiple inheritance has shadowed the before_script
of .mingw/test, so the binfmt preparation didn't run.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months ago.gitlab-ci.yml: add --skip-po hack to fedora-docdist/test as well
Alexander Sosedkin [Sun, 8 Feb 2026 19:56:33 +0000 (20:56 +0100)] 
.gitlab-ci.yml: add --skip-po hack to fedora-docdist/test as well

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months ago.gitlab-ci.yml: move mingw job to Fedora 43 for newer nettle
Alexander Sosedkin [Sun, 8 Feb 2026 18:25:31 +0000 (19:25 +0100)] 
.gitlab-ci.yml: move mingw job to Fedora 43 for newer nettle

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agoNEWS: mention 3.8.12 changes
Alexander Sosedkin [Thu, 5 Feb 2026 18:27:48 +0000 (19:27 +0100)] 
NEWS: mention 3.8.12 changes

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agoMerge branch 'update-cligen' into 'master'
Alexander Sosedkin [Mon, 9 Feb 2026 06:16:25 +0000 (06:16 +0000)] 
Merge branch 'update-cligen' into 'master'

cligen: update submodule

See merge request gnutls/gnutls!2064

3 months agoMerge branch 'pkcs11-long-label-dependencies' into 'master'
Alexander Sosedkin [Mon, 9 Feb 2026 06:15:58 +0000 (06:15 +0000)] 
Merge branch 'pkcs11-long-label-dependencies' into 'master'

tests/Makefile: specify overlooked pkcs11-long-label dependencies

See merge request gnutls/gnutls!2063

3 months agoMerge branch 'wip/dueno/gettext-1.0' into 'master'
Alexander Sosedkin [Fri, 6 Feb 2026 18:00:08 +0000 (18:00 +0000)] 
Merge branch 'wip/dueno/gettext-1.0' into 'master'

configure.ac: hide m4_ifdef from autopoint

Closes #1792

See merge request gnutls/gnutls!2061

3 months agoMerge branch 'adapter-Hygon' into 'master'
Alexander Sosedkin [Fri, 6 Feb 2026 17:58:22 +0000 (17:58 +0000)] 
Merge branch 'adapter-Hygon' into 'master'

lib: add support for Hygon Genuine CPUs in x86 acceleration

See merge request gnutls/gnutls!2053

3 months agoMerge branch 'wip/dueno/gcc-analyzer-fixes' into 'master'
Alexander Sosedkin [Fri, 6 Feb 2026 17:55:48 +0000 (17:55 +0000)] 
Merge branch 'wip/dueno/gcc-analyzer-fixes' into 'master'

Use matching allocator/deallocator

Closes #1787

See merge request gnutls/gnutls!2058

3 months agocligen: update submodule
Alexander Sosedkin [Fri, 6 Feb 2026 17:35:56 +0000 (18:35 +0100)] 
cligen: update submodule

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agotests/Makefile: specify overlooked pkcs11-long-label dependencies
Alexander Sosedkin [Fri, 6 Feb 2026 14:50:17 +0000 (15:50 +0100)] 
tests/Makefile: specify overlooked pkcs11-long-label dependencies

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
3 months agoocsp: suppress false-positive reported by GCC 15 analyzer
Daiki Ueno [Thu, 22 Jan 2026 09:32:47 +0000 (18:32 +0900)] 
ocsp: suppress false-positive reported by GCC 15 analyzer

GCC 15 analyzer reports:

  ocsp.c:2470:17: warning: dereference of NULL '*ocsps' [CWE-476] [-Wanalyzer-null-dereference]
   2470 |                 gnutls_ocsp_resp_deinit((*ocsps)[i]);
        |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*ocsps should always be non-NULL when this part is exercised. This
adds an assertion for that.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agodane: use matching deallocator for gnutls_malloc
Daiki Ueno [Thu, 22 Jan 2026 08:01:34 +0000 (17:01 +0900)] 
dane: use matching deallocator for gnutls_malloc

Spotted by GCC analyzer:

  dane.c:972:17: warning: memory allocated with 'gnutls_malloc' should be deallocated with 'free' but was deallocated with 'free'
    972 |                 free(new_cert_list);
        |                 ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agornd: use matching allocator for gnutls_free
Daiki Ueno [Thu, 22 Jan 2026 07:59:33 +0000 (16:59 +0900)] 
rnd: use matching allocator for gnutls_free

Spotted by GCC 15 analyzer:

  ./../includes/gnutls/gnutls.h:2321:24: warning: memory allocated with 'calloc' should be deallocated with 'gnutls_free' but was deallocated with 'gnutls_free'
   2321 | #define gnutls_free(a) gnutls_free((void *)(a)), a = NULL
        |                        ^~~~~~~~~~~~~~~~~~~~~~~~
  rnd.c:166:9: note: in expansion of macro 'gnutls_free'
    166 |         gnutls_free(ctx);
        |         ^~~~~~~~~~~

Signed-off-by: Daiki Ueno <ueno@gnu.org>
3 months agoMerge branch 'testdane-stability' into 'master'
Alexander Sosedkin [Thu, 5 Feb 2026 11:49:23 +0000 (11:49 +0000)] 
Merge branch 'testdane-stability' into 'master'

tests/suite/testdane.sh: try to make it more stable

See merge request gnutls/gnutls!2054

3 months agoconfigure.ac: hide m4_ifdef from autopoint
Daiki Ueno [Tue, 3 Feb 2026 04:30:32 +0000 (13:30 +0900)] 
configure.ac: hide m4_ifdef from autopoint

The recent version of autopoint warns about multiple invocation of
AM_GNU_GETTEXT_REQUIRE_VERSION, without evaluating m4_ifdef. This
obfuscates the first occurrence with a quote to work around that.

Suggested by Bruno Haible.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
4 months agoMerge branch 'getport-avoid-ipv6' into 'master'
Alexander Sosedkin [Wed, 28 Jan 2026 12:06:40 +0000 (12:06 +0000)] 
Merge branch 'getport-avoid-ipv6' into 'master'

tests/scripts/common.sh: avoid IPv6 in check_if_port_*

See merge request gnutls/gnutls!2057

4 months agotests/scripts/common.sh: avoid IPv6 in check_if_port_*
Alexander Sosedkin [Tue, 20 Jan 2026 00:34:05 +0000 (01:34 +0100)] 
tests/scripts/common.sh: avoid IPv6 in check_if_port_*

I've encountered a race condition when IPv4 couldn't bind, IPv6 did bind,
the check passed because IPv6 could bind,
but then tlsfuzzer testsuite used IPv4 and failed.
One of the simplest solutions is to filter out IPv6 in the checks.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agoMerge branch 'tests-assorted-stability' into 'master'
Alexander Sosedkin [Tue, 27 Jan 2026 16:36:27 +0000 (16:36 +0000)] 
Merge branch 'tests-assorted-stability' into 'master'

assorted test stability improvements

See merge request gnutls/gnutls!2059

4 months agoMerge branch 'getport-avoid-ephemeral' into 'master'
Alexander Sosedkin [Tue, 27 Jan 2026 15:45:13 +0000 (15:45 +0000)] 
Merge branch 'getport-avoid-ephemeral' into 'master'

tests/scripts/common.sh: avoid ephemeral port range in GETPORT

See merge request gnutls/gnutls!2056

4 months agoMerge branch 'update-tlsfuzzer' into 'master'
Alexander Sosedkin [Tue, 27 Jan 2026 15:23:05 +0000 (15:23 +0000)] 
Merge branch 'update-tlsfuzzer' into 'master'

tests/suite/tls-fuzzer: update submodules, tweak/enable tests

See merge request gnutls/gnutls!2055

4 months agoMerge branch 'fix-doc-parallel-build' into 'master'
Daiki Ueno [Sat, 24 Jan 2026 01:59:08 +0000 (10:59 +0900)] 
Merge branch 'fix-doc-parallel-build' into 'master'

doc: Fix races in a parallel build, take 2.

See merge request gnutls/gnutls!1933

4 months agodoc: Fix races in a parallel build, take 2.
Maxim Cournoyer [Thu, 16 Oct 2025 03:50:06 +0000 (12:50 +0900)] 
doc: Fix races in a parallel build, take 2.

This is an alternative solution to that originally made in commit
8daba130c (now reverted), that doesn't break 'make distcheck'.

* doc/Makefile.am (error_codes.texi, algorithms.texi, alerts.texi):
Group as a single grouped target.  Document.

Fixes: <https://gitlab.com/gnutls/gnutls/-/issues/1635>
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
4 months agoPartially re-apply "doc: Fix races in a parallel build."
Maxim Cournoyer [Thu, 16 Oct 2025 03:49:33 +0000 (12:49 +0900)] 
Partially re-apply "doc: Fix races in a parallel build."

This partially reverts commit
5300a8683d937ccf09ed01170d3bcb93d97ed605, reinstating just the MKDIR_P
change, which is a good one.

Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
4 months agotests/suite/tls-fuzzer: exclude test‑tls13‑finished.py padding tests...
Alexander Sosedkin [Thu, 22 Jan 2026 16:28:58 +0000 (17:28 +0100)] 
tests/suite/tls-fuzzer: exclude test‑tls13‑finished.py padding tests...

... as gnutls sends NST early (explicitly valid by RFC8446 4.6.1)
and that races against sending malformed Finished.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/suite/tls-fuzzer/gnutls-nocert-tls13.json: clarify a comment
Alexander Sosedkin [Thu, 22 Jan 2026 15:27:31 +0000 (16:27 +0100)] 
tests/suite/tls-fuzzer/gnutls-nocert-tls13.json: clarify a comment

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/resume.c: use a callback for processing NST data
Alexander Sosedkin [Wed, 21 Jan 2026 17:58:20 +0000 (18:58 +0100)] 
tests/resume.c: use a callback for processing NST data

This is supposed to avoid a rare race condition with NST coming late.
The callback and its use are taken from
tests/tls13/hello_retry_request_resume.c

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/suite/testrng.sh: shorten with a helper
Alexander Sosedkin [Wed, 21 Jan 2026 16:59:47 +0000 (17:59 +0100)] 
tests/suite/testrng.sh: shorten with a helper

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/suite/testrng.sh: check ./rng return code
Alexander Sosedkin [Wed, 21 Jan 2026 16:51:33 +0000 (17:51 +0100)] 
tests/suite/testrng.sh: check ./rng return code

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/cert-reencoding.sh: clean up, valgrind, IPv4
Alexander Sosedkin [Tue, 20 Jan 2026 17:36:26 +0000 (18:36 +0100)] 
tests/cert-reencoding.sh: clean up, valgrind, IPv4

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/suite/testdane.sh: just skip on hosts with a long hostname
Alexander Sosedkin [Mon, 19 Jan 2026 17:53:21 +0000 (18:53 +0100)] 
tests/suite/testdane.sh: just skip on hosts with a long hostname

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/suite/tls-fuzzer: update submodules, tweak/enable tests
Alexander Sosedkin [Mon, 19 Jan 2026 14:40:27 +0000 (15:40 +0100)] 
tests/suite/tls-fuzzer: update submodules, tweak/enable tests

Modifies existing invocations of some updated tests:
* test-dhe-rsa-key-exchange-with-bad-messages.py: wrong alert on missing dh_Yc
* test-ecdsa-in-certificate-verify.py: skip sha224 and brainpool
* test-tls13-ccs.py: see #1788
* test-tls13-certificate-verify.py: expect ML-DSA sigalgs
* test-tls13-ecdsa-in-certificate-verify.py: expect ML-DSA sigalgs
* test-tls13-ecdsa-support.py: no support for brainpool
* test-tls13-keyupdate.py: see #1789
* test-tls13-session-resumption.py: no NST on PSK_ONLY; wrong cert on 1.2 -> 1.3

Adds invocations for select new tests:
* test-ccs.py
* test-connection-abort.py
* test-interleaved-CKE-with-CCS.py
* test-no-mlkem-in-old-tls.py
* test-point-extension.py (with a lot of waiving)
* test-tls13-connection-abort.py
* test-tls13-no-unknown-groups.py
* test-tls13-unencrypted-alert.py

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/suite/testdane.sh: with and w/o --local-dns; 50% success rate
Alexander Sosedkin [Fri, 16 Jan 2026 16:43:35 +0000 (17:43 +0100)] 
tests/suite/testdane.sh: with and w/o --local-dns; 50% success rate

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/scripts/common.sh: avoid ephemeral port range in GETPORT
Alexander Sosedkin [Tue, 20 Jan 2026 00:25:08 +0000 (01:25 +0100)] 
tests/scripts/common.sh: avoid ephemeral port range in GETPORT

The idea is to avoid a race condition between checking the port
and some outgoing connection snatching it before the server binds to it.
We're still racing against others, just outside of the ephemeral range.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
4 months agotests/suite/testdane.sh: add more SMTP hosts
Alexander Sosedkin [Fri, 16 Jan 2026 17:01:35 +0000 (18:01 +0100)] 
tests/suite/testdane.sh: add more SMTP hosts

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>