]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
4 weeks agotests/mini-dtls-fragments: implement a basic DTLS test
Alexander Sosedkin [Fri, 20 Mar 2026 15:09:40 +0000 (16:09 +0100)] 
tests/mini-dtls-fragments: implement a basic DTLS test

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
5 weeks agoMerge branch 'typo-test-fix' into 'master'
Daiki Ueno [Mon, 27 Apr 2026 23:38:52 +0000 (08:38 +0900)] 
Merge branch 'typo-test-fix' into 'master'

tests: fix typo in skip message

See merge request gnutls/gnutls!2101

5 weeks agotests: fix typo in skip message 2101/head
Sam James [Mon, 27 Apr 2026 17:51:19 +0000 (18:51 +0100)] 
tests: fix typo in skip message

Otherwise we try to execute the skip message which results in noise
in the log. Copy the other places we skip and echo to stderr.

Signed-off-by: Sam James <sam@gentoo.org>
5 weeks agoMerge branch 'wip/dueno/hpke2' into 'master'
Daiki Ueno [Mon, 27 Apr 2026 08:48:14 +0000 (17:48 +0900)] 
Merge branch 'wip/dueno/hpke2' into 'master'

Minor cleanup of HPKE API

See merge request gnutls/gnutls!2097

5 weeks agoMerge branch 'wip/dueno/minor-fixes' into 'master'
Daiki Ueno [Mon, 27 Apr 2026 08:27:03 +0000 (17:27 +0900)] 
Merge branch 'wip/dueno/minor-fixes' into 'master'

Minor fixes for 3.8.13 release

Closes #1797 and #1855

See merge request gnutls/gnutls!2099

5 weeks agoMerge branch 'wip/dueno/mldsa-pk-from-sk-followup' into 'master'
Daiki Ueno [Mon, 27 Apr 2026 08:26:09 +0000 (17:26 +0900)] 
Merge branch 'wip/dueno/mldsa-pk-from-sk-followup' into 'master'

nettle: sanity check ML-DSA private key in pk_fixup

See merge request gnutls/gnutls!2093

5 weeks agonettle: support truncated authentication tag in Nettle 4 build 2099/head
Daiki Ueno [Mon, 27 Apr 2026 05:25:28 +0000 (14:25 +0900)] 
nettle: support truncated authentication tag in Nettle 4 build

Reported by Joshua Rogers.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agotests: execise client cert selection for RSA-PSS-RSAE algorithms
Daiki Ueno [Mon, 27 Apr 2026 02:10:08 +0000 (11:10 +0900)] 
tests: execise client cert selection for RSA-PSS-RSAE algorithms

This adds a test case for 8366cd25ff81ddf27a7a5d885f64a3fdcc0c5125, by
extending send-client-cert test with only RSA-PSS-* signature
algorithms are indicated by the server.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agoNEWS: mention gnutls_pkcs11_obj_get_pk_algorithm as a new function
Daiki Ueno [Sun, 26 Apr 2026 12:58:28 +0000 (21:58 +0900)] 
NEWS: mention gnutls_pkcs11_obj_get_pk_algorithm as a new function

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agodoc/Makefile: add stamp_error_codes to EXTRA_DIST
Alexander Sosedkin [Wed, 18 Feb 2026 18:58:42 +0000 (19:58 +0100)] 
doc/Makefile: add stamp_error_codes to EXTRA_DIST

This also moves stamp_* to MAINTAINERCLEANFILES from DISTCLEANFILES,
which should not include what's in the tarball.

Fixes: #1797
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Modified-by: Daiki Ueno <ueno@gnu.org>
5 weeks agotests: match automake variables for pkcs11-obj-get-pk-algorithm
Daiki Ueno [Sun, 26 Apr 2026 02:13:33 +0000 (11:13 +0900)] 
tests: match automake variables for pkcs11-obj-get-pk-algorithm

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agobuild: switch to using static_assert instead of verify
Daiki Ueno [Sun, 26 Apr 2026 02:10:10 +0000 (11:10 +0900)] 
build: switch to using static_assert instead of verify

Gnulib now emulates static_assert in C23, prefer it over verify.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agoMerge branch 'fix-tls-1.3-handshake' into 'master'
Daiki Ueno [Mon, 27 Apr 2026 02:09:25 +0000 (11:09 +0900)] 
Merge branch 'fix-tls-1.3-handshake' into 'master'

Fix TLS 1.3 handshake

Closes #1842

See merge request gnutls/gnutls!2095

5 weeks ago.gitlab-ci.yml: enable HPKE in Fedora builds 2097/head
Daiki Ueno [Sun, 26 Apr 2026 01:15:34 +0000 (10:15 +0900)] 
.gitlab-ci.yml: enable HPKE in Fedora builds

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke/hpke-builders: use a relative include
Alexander Sosedkin [Fri, 24 Apr 2026 08:44:16 +0000 (10:44 +0200)] 
hpke/hpke-builders: use a relative include

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
5 weeks agohpke-key-management: use memcmp instead of manual comparison
Daiki Ueno [Tue, 21 Apr 2026 08:10:12 +0000 (17:10 +0900)] 
hpke-key-management: use memcmp instead of manual comparison

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke-key-management: fix the license header
Daiki Ueno [Tue, 21 Apr 2026 07:53:11 +0000 (16:53 +0900)] 
hpke-key-management: fix the license header

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: rework public key serialization logic with existing facilities
Daiki Ueno [Tue, 21 Apr 2026 07:38:34 +0000 (16:38 +0900)] 
hpke: rework public key serialization logic with existing facilities

Instead of manually serializing or deserializing KEM public keys, use
_gnutls_ecc_ansi_x962_{import,export} for NIST curves and copy
raw_pub from gnutls_pk_params_st for Edwards curves.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: use _gnutls_set_datum as possible
Daiki Ueno [Tue, 21 Apr 2026 03:42:21 +0000 (12:42 +0900)] 
hpke: use _gnutls_set_datum as possible

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agoconfigure: make it possible to toggle HPKE support
Daiki Ueno [Mon, 20 Apr 2026 14:00:33 +0000 (23:00 +0900)] 
configure: make it possible to toggle HPKE support

This adds a configure option to toggle support for HPKE. Currently the
feature is disabled, until the API is considered stable.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agoNEWS: expand HPKE entry with a bit more detail
Daiki Ueno [Mon, 20 Apr 2026 13:49:48 +0000 (22:49 +0900)] 
NEWS: expand HPKE entry with a bit more detail

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agodoc: add HPKE section in "Using GnuTLS as a cryptographic library"
Daiki Ueno [Mon, 20 Apr 2026 04:53:02 +0000 (13:53 +0900)] 
doc: add HPKE section in "Using GnuTLS as a cryptographic library"

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: fix documentation comments
Daiki Ueno [Mon, 20 Apr 2026 13:39:50 +0000 (22:39 +0900)] 
hpke: fix documentation comments

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: stop exposing gnutls_hpke_get_enc_size from public API
Daiki Ueno [Mon, 20 Apr 2026 13:09:59 +0000 (22:09 +0900)] 
hpke: stop exposing gnutls_hpke_get_enc_size from public API

Given gnutls_hpke_encap allocates the "enc" anyway, having a special
function to get the size doesn't make much sense.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: rename gnutls_hpke_generate_keypair to _derive_keypair
Daiki Ueno [Mon, 20 Apr 2026 13:01:25 +0000 (22:01 +0900)] 
hpke: rename gnutls_hpke_generate_keypair to _derive_keypair

As the gnutls_hpke_generate_keypair function always generates a key
from IKM, rename it to _derive_keypair to match the terminology in
RFC 9180.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: stop exposing testing functions from public API
Daiki Ueno [Mon, 20 Apr 2026 12:56:09 +0000 (21:56 +0900)] 
hpke: stop exposing testing functions from public API

This removes gnutls_hpke_set_seq, which was unused, and renames
gnutls_hpke_get_seq and gnutls_hpke_set_ikme to be clear that they are
testing functions.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: give all additional information to encap/decap at once
Daiki Ueno [Mon, 20 Apr 2026 12:30:32 +0000 (21:30 +0900)] 
hpke: give all additional information to encap/decap at once

This merges gnutls_hpke_set_{psk,sender_privkey,sender_pubkey} into
gnutls_hpke_encap and gnutls_hpke_decap to avoid copying keys.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agognutls_hpke_generate_keypair: expect initialized keys
Daiki Ueno [Mon, 20 Apr 2026 11:21:42 +0000 (20:21 +0900)] 
gnutls_hpke_generate_keypair: expect initialized keys

This moves responsibility of initializing gnutls_pubkey_t or
gnutls_privkey_t to the caller of the function, to match the existing
convention in gnutls_privkey_generate*.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: add "const" qualifier to gnutls_pubkey_t/gnutls_privkey_t
Daiki Ueno [Mon, 20 Apr 2026 05:30:21 +0000 (14:30 +0900)] 
hpke: add "const" qualifier to gnutls_pubkey_t/gnutls_privkey_t

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: remove unnecessary "const" qualifier to enum types
Daiki Ueno [Mon, 20 Apr 2026 05:05:21 +0000 (14:05 +0900)] 
hpke: remove unnecessary "const" qualifier to enum types

Since they are a scalar, enum types are always constant.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke-tests: remove unnecessary cleanup label
Daiki Ueno [Mon, 20 Apr 2026 11:23:32 +0000 (20:23 +0900)] 
hpke-tests: remove unnecessary cleanup label

As `fail` exits the program, the cleanup label will never be reached
upon error case.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: fix gtk-doc markup for gnutls_hpke_{mode,role}_t
Daiki Ueno [Mon, 20 Apr 2026 04:43:37 +0000 (13:43 +0900)] 
hpke: fix gtk-doc markup for gnutls_hpke_{mode,role}_t

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agohpke: shorten function names by stripping _context_
Daiki Ueno [Mon, 20 Apr 2026 03:57:32 +0000 (12:57 +0900)] 
hpke: shorten function names by stripping _context_

Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 weeks agoMerge branch 'wip/dueno/news-3.8.13' into 'master'
Alexander Sosedkin [Fri, 24 Apr 2026 07:47:13 +0000 (07:47 +0000)] 
Merge branch 'wip/dueno/news-3.8.13' into 'master'

NEWS: add entries for 3.8.13 [ci skip]

See merge request gnutls/gnutls!2091

5 weeks agoNEWS: add entries for 3.8.13 [ci skip] 2091/head
Daiki Ueno [Mon, 13 Apr 2026 07:31:18 +0000 (16:31 +0900)] 
NEWS: add entries for 3.8.13 [ci skip]

Signed-off-by: Daiki Ueno <ueno@gnu.org>
6 weeks agoMerge branch 'dev/ddudas/hpke' into 'master'
Daiki Ueno [Sat, 18 Apr 2026 11:42:13 +0000 (20:42 +0900)] 
Merge branch 'dev/ddudas/hpke' into 'master'

Expose HPKE through abstract key API

See merge request gnutls/gnutls!1976

6 weeks agoUpdated NEWS and HPKE functions release version. 1976/head
d-Dudas [Thu, 16 Apr 2026 19:07:34 +0000 (22:07 +0300)] 
Updated NEWS and HPKE functions release version.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoRemoved libgnutls_hpke.la
d-Dudas [Mon, 13 Apr 2026 14:50:23 +0000 (17:50 +0300)] 
Removed libgnutls_hpke.la

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoFixed memory leaks.
d-Dudas [Mon, 13 Apr 2026 12:39:29 +0000 (15:39 +0300)] 
Fixed memory leaks.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoRemoved file commited by mistake.
d-Dudas [Mon, 13 Apr 2026 11:46:51 +0000 (14:46 +0300)] 
Removed file commited by mistake.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoAdded minitasn1 dependency to HPKE Makefile
d-Dudas [Mon, 13 Apr 2026 11:12:04 +0000 (14:12 +0300)] 
Added minitasn1 dependency to HPKE Makefile

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoMake raw pubkey optional for raw privkey import.
d-Dudas [Mon, 13 Apr 2026 07:15:50 +0000 (10:15 +0300)] 
Make raw pubkey optional for raw privkey import.

If no raw pubkey is provided when importing raw
privkey, then derive the pubkey from privkey.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoReplaced buf+size pairs with datum
d-Dudas [Fri, 3 Apr 2026 19:22:19 +0000 (22:22 +0300)] 
Replaced buf+size pairs with datum

Also removed _gnutls_hpke prefix from
static functions.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoRemove GNUTLS_ prefix from private HPKE macros
d-Dudas [Thu, 2 Apr 2026 18:42:58 +0000 (21:42 +0300)] 
Remove GNUTLS_ prefix from private HPKE macros

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoReplace int to bool as return type for boolean functions
d-Dudas [Thu, 2 Apr 2026 18:28:05 +0000 (21:28 +0300)] 
Replace int to bool as return type for boolean functions

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoCreated separate HPKE module
d-Dudas [Tue, 31 Mar 2026 20:53:34 +0000 (23:53 +0300)] 
Created separate HPKE module

Added lib/hpke/Makefile.am and moved
files from lib/hpke/helpers to lib/hpke.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoAdded gnutls/hpke.h
d-Dudas [Tue, 31 Mar 2026 19:55:22 +0000 (22:55 +0300)] 
Added gnutls/hpke.h

Moved every HPKE-related definitions and
declarations from gnutls/abstract.h to
the new gnutls/hpke.h.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoHPKE API rework.
d-Dudas [Sun, 15 Mar 2026 06:44:19 +0000 (08:44 +0200)] 
HPKE API rework.

Aligned the HPKE with RFC9180.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoAdded HPKE API for DHKEM.
d-Dudas [Mon, 3 Nov 2025 19:29:17 +0000 (21:29 +0200)] 
Added HPKE API for DHKEM.

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
6 weeks agoMerge branch 'fix-p11tool-same-url' into 'master'
Daiki Ueno [Sat, 18 Apr 2026 02:06:17 +0000 (11:06 +0900)] 
Merge branch 'fix-p11tool-same-url' into 'master'

Add new API to fetch privkey type

Closes #1467

See merge request gnutls/gnutls!2074

6 weeks agoFix TLS 1.3 handshake 2095/head
Romain Tartière [Fri, 17 Apr 2026 00:08:31 +0000 (14:08 -1000)] 
Fix TLS 1.3 handshake

Add the signature_algorithms_cert to the list of allowed algorithms if
present, and fallback to the signature_algorithms otherwise.

This better fit [RFC8446 section 4.2.3][1]:

> If no "signature_algorithms_cert" extension is present, then the
> "signature_algorithms" extension also applies to signatures appearing
> in certificates.

This fix TLS 1.3 handshake with Java after [JDK-8349583][2].

[1]: https://datatracker.ietf.org/doc/html/rfc8446#section-4.2.3
[2]: https://bugs.openjdk.org/browse/JDK-8349583

Signed-off-by: Romain Tartière <romain@blogreen.org>
6 weeks agoAdd unit test for gnutls_pkcs11_obj_get_pk_algorithm 2074/head
Ghadi Elie Rahme [Fri, 17 Apr 2026 15:54:11 +0000 (15:54 +0000)] 
Add unit test for gnutls_pkcs11_obj_get_pk_algorithm

Signed-off-by: Ghadi Elie Rahme <ghadi.rahme@canonical.com>
6 weeks agoMerge branch 'tests-kryoptic-sha3' into 'master'
Daiki Ueno [Fri, 17 Apr 2026 03:45:29 +0000 (12:45 +0900)] 
Merge branch 'tests-kryoptic-sha3' into 'master'

tests/pkcs11-provider/pkcs11-provider-hmac: uncomment SHA-3 tests

See merge request gnutls/gnutls!2094

6 weeks agotests/pkcs11-provider/pkcs11-provider-hmac: uncomment SHA-3 tests 2094/head
Alexander Sosedkin [Thu, 16 Apr 2026 10:59:22 +0000 (12:59 +0200)] 
tests/pkcs11-provider/pkcs11-provider-hmac: uncomment SHA-3 tests

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
6 weeks agop11tool: use object reference to list data
Ghadi Elie Rahme [Tue, 24 Feb 2026 15:57:17 +0000 (15:57 +0000)] 
p11tool: use object reference to list data

Closes #1467

Signed-off-by: Ghadi Elie Rahme <ghadi.rahme@canonical.com>
6 weeks agolib/pkcs11.c: fix dangling pointer in pkcs11_read_pubkey
Ghadi Elie Rahme [Tue, 24 Feb 2026 15:57:12 +0000 (15:57 +0000)] 
lib/pkcs11.c: fix dangling pointer in pkcs11_read_pubkey

Fixes a dangling pointer affecting CKK_EC_EDWARD. if _gnutls_pubkey_parse_ecc_eddsa_params
or _gnutls_ecc_curve_get_params fail, the cleanup section will be executed freeing tmpX
and leaving the datum in pobj dangling.

Signed-off-by: Ghadi Elie Rahme <ghadi.rahme@canonical.com>
6 weeks agoauto-generated files update
Ghadi Elie Rahme [Mon, 9 Mar 2026 14:39:01 +0000 (14:39 +0000)] 
auto-generated files update

Signed-off-by: Ghadi Elie Rahme <ghadi.rahme@canonical.com>
6 weeks agolib/pkcs11: Add new API to fetch privkey type
Ghadi Elie Rahme [Fri, 6 Mar 2026 18:08:53 +0000 (18:08 +0000)] 
lib/pkcs11: Add new API to fetch privkey type

Signed-off-by: Ghadi Elie Rahme <ghadi.rahme@canonical.com>
6 weeks agoMerge branch 'wip/dueno/nc-tree-followup' into 'master'
Daiki Ueno [Wed, 15 Apr 2026 10:57:24 +0000 (19:57 +0900)] 
Merge branch 'wip/dueno/nc-tree-followup' into 'master'

x509/name_constraints: minor fixes after !2083

See merge request gnutls/gnutls!2092

6 weeks agonettle: sanity check ML-DSA private key in pk_fixup 2093/head
Daiki Ueno [Wed, 15 Apr 2026 09:36:48 +0000 (18:36 +0900)] 
nettle: sanity check ML-DSA private key in pk_fixup

The caller should set raw_priv properly before calling pk_fixup. Add a
sanity check following the EdDSA case.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
6 weeks agox509/name_constraints: use stdbool more 2092/head
Daiki Ueno [Wed, 15 Apr 2026 09:28:00 +0000 (18:28 +0900)] 
x509/name_constraints: use stdbool more

Signed-off-by: Daiki Ueno <ueno@gnu.org>
6 weeks agox509/name_constraints: remove unnecessary manual cleanup
Daiki Ueno [Wed, 15 Apr 2026 09:24:50 +0000 (18:24 +0900)] 
x509/name_constraints: remove unnecessary manual cleanup

There was a duplicate cleanup logic at the exit from
namename_constraints_init: one done manually and the other with
name_constraints_deinit. Remove the former as it's redundant.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
6 weeks agoMerge branch 'dev/ddudas/debug/compilation-warnings' into 'master'
Daiki Ueno [Wed, 15 Apr 2026 06:21:32 +0000 (15:21 +0900)] 
Merge branch 'dev/ddudas/debug/compilation-warnings' into 'master'

Fixed some compilation warnings

See merge request gnutls/gnutls!2090

6 weeks agoUpdated cligen submodule 2090/head
d-Dudas [Tue, 14 Apr 2026 18:05:59 +0000 (21:05 +0300)] 
Updated cligen submodule

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
7 weeks agoFixed some compilation warnings
d-Dudas [Mon, 13 Apr 2026 18:24:22 +0000 (21:24 +0300)] 
Fixed some compilation warnings

Signed-off-by: David Dudas <david.dudas03@e-uvt.ro>
7 weeks agoMerge branch 'wip/dueno/mldsa-pk-from-sk' into 'master'
Daiki Ueno [Mon, 13 Apr 2026 01:56:54 +0000 (10:56 +0900)] 
Merge branch 'wip/dueno/mldsa-pk-from-sk' into 'master'

nettle: support deriving ML-DSA public key from expanded secret key

Closes #1723

See merge request gnutls/gnutls!2088

7 weeks agoMerge branch 'master' into 'master'
Daiki Ueno [Sun, 12 Apr 2026 23:36:20 +0000 (08:36 +0900)] 
Merge branch 'master' into 'master'

aarch64: Enable GCS

Closes #1764

See merge request gnutls/gnutls!2038

7 weeks agonettle: support deriving ML-DSA public key from expanded secret key 2088/head
Daiki Ueno [Thu, 9 Apr 2026 04:47:26 +0000 (13:47 +0900)] 
nettle: support deriving ML-DSA public key from expanded secret key

RFC 9881 defines 3 private key formats for ML-DSA: "seed",
"expandedKey" and both. When it is "expandedKey", a non-trivial
conversion is required to derive a public key, which is now
implemented in leancrypto through lc_dilithium_pk_from_sk. This patch
modifies the pk_fixup backend function to use it to derive a public
key when importing a private key.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
7 weeks agoaarch64: Enable GCS 2038/head
Guillaume Gardet [Thu, 23 Oct 2025 13:19:08 +0000 (15:19 +0200)] 
aarch64: Enable GCS

Signed-off-by: Guillaume Gardet <guillaume.gardet@arm.com>
7 weeks agonettle: use "switch" instead of "if" in wrap_nettle_pk_fixup
Daiki Ueno [Fri, 10 Apr 2026 00:54:48 +0000 (09:54 +0900)] 
nettle: use "switch" instead of "if" in wrap_nettle_pk_fixup

This makes it easier to conditionalize code with #ifdef.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
7 weeks agoprivkey_to_pubkey: use constants to access public key parameters
Daiki Ueno [Thu, 9 Apr 2026 03:58:16 +0000 (12:58 +0900)] 
privkey_to_pubkey: use constants to access public key parameters

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoMerge branch 'master' into 'master'
Daiki Ueno [Mon, 30 Mar 2026 00:29:10 +0000 (09:29 +0900)] 
Merge branch 'master' into 'master'

Check client certificate usage in serv

See merge request gnutls/gnutls!2087

2 months agoMerge branch 'wip/dueno/nc-tree' into 'master'
Daiki Ueno [Mon, 30 Mar 2026 00:24:06 +0000 (09:24 +0900)] 
Merge branch 'wip/dueno/nc-tree' into 'master'

x509/name_constraints: rework with rbtree-list

See merge request gnutls/gnutls!2083

2 months agoUse client certificate in gnutls-cli test 2087/head
Joachim Vandersmissen [Sun, 29 Mar 2026 15:55:08 +0000 (10:55 -0500)] 
Use client certificate in gnutls-cli test

Signed-off-by: Joachim Vandersmissen <git@jvdsn.com>
2 months agoMerge branch 'wip/dueno/doc-update' into 'master'
Daiki Ueno [Sun, 29 Mar 2026 00:20:08 +0000 (09:20 +0900)] 
Merge branch 'wip/dueno/doc-update' into 'master'

cli,serv: make it explicit that they are a testing program

See merge request gnutls/gnutls!2086

2 months agoSECURITY.md: suggest CVSS v3.1 [ci skip] 2086/head
Daiki Ueno [Fri, 27 Mar 2026 01:26:03 +0000 (10:26 +0900)] 
SECURITY.md: suggest CVSS v3.1 [ci skip]

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoSECURITY.md: don't impose normal process for low severity issues
Daiki Ueno [Sat, 28 Mar 2026 08:00:09 +0000 (17:00 +0900)] 
SECURITY.md: don't impose normal process for low severity issues

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoSECURITY.md: make it explicit that testing programs are out of scope
Daiki Ueno [Fri, 27 Mar 2026 01:24:13 +0000 (10:24 +0900)] 
SECURITY.md: make it explicit that testing programs are out of scope

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agocli,serv: make it explicit that they are a testing program
Daiki Ueno [Fri, 27 Mar 2026 01:18:52 +0000 (10:18 +0900)] 
cli,serv: make it explicit that they are a testing program

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agox509/name_constraints: refactor intersection/union with iterators 2083/head
Daiki Ueno [Tue, 24 Mar 2026 11:27:37 +0000 (20:27 +0900)] 
x509/name_constraints: refactor intersection/union with iterators

This refactors the loops in name_constraints_node_list_intersect and
name_constraints_node_list_union with gl_list_iterator_t, as well as
factor out the partitioning logic in _intersect to _partition.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoCheck client certificate usage in serv
Joachim Vandersmissen [Fri, 27 Mar 2026 03:09:55 +0000 (22:09 -0500)] 
Check client certificate usage in serv

Signed-off-by: Joachim Vandersmissen <git@jvdsn.com>
2 months agox509/name_constraints: redefine type_bitmask_t as unsigned long
Daiki Ueno [Wed, 25 Mar 2026 02:21:40 +0000 (11:21 +0900)] 
x509/name_constraints: redefine type_bitmask_t as unsigned long

Previously type_bitmask_t was defined as uint8_t, which were
zero-extended to a machine word when doing bit-wise operations.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agohello_ext: move static assertions from gnutls_int.h to hello_ext.c
Daiki Ueno [Wed, 25 Mar 2026 07:32:08 +0000 (16:32 +0900)] 
hello_ext: move static assertions from gnutls_int.h to hello_ext.c

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agox509/name_constraints: extensively use bool instead of unsigned
Daiki Ueno [Mon, 23 Mar 2026 08:51:10 +0000 (17:51 +0900)] 
x509/name_constraints: extensively use bool instead of unsigned

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months ago_gnutls_x509_name_constraints_is_empty: remove type argument
Daiki Ueno [Mon, 23 Mar 2026 08:20:45 +0000 (17:20 +0900)] 
_gnutls_x509_name_constraints_is_empty: remove type argument

The type argument is only used in
gnutls_x509_name_constraints_check_crt defined in the same
file. Create a helper function name_constraints_contains_type split
from _gnutls_x509_name_constraints_is_empty to cater for that.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agox509/name_constraints: extensively use gnutls_x509_subject_alt_name_t
Daiki Ueno [Fri, 20 Mar 2026 01:50:56 +0000 (10:50 +0900)] 
x509/name_constraints: extensively use gnutls_x509_subject_alt_name_t

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agox509/name_constraints: rework with rbtree-list
Daiki Ueno [Tue, 17 Mar 2026 04:13:58 +0000 (13:13 +0900)] 
x509/name_constraints: rework with rbtree-list

Instead of sorting permitted sets on demand, use a sorted list backed
by a binary tree to represent the sorted view of the sets. The
amortized complexity should be O(log n) as before.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoMerge branch 'wip/dueno/utils' into 'master'
Alexander Sosedkin [Thu, 26 Mar 2026 15:35:50 +0000 (15:35 +0000)] 
Merge branch 'wip/dueno/utils' into 'master'

mem,str,datum: rename `_steal_*` to `_take_*`

See merge request gnutls/gnutls!2085

2 months agomem: make _gnutls_take_pointer type safer 2085/head
Daiki Ueno [Tue, 17 Mar 2026 03:42:23 +0000 (12:42 +0900)] 
mem: make _gnutls_take_pointer type safer

This changes the source parameter of _gnutls_take_pointer from "void **"
to "void *", while adding automatic cast using typeof.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agomem,str,datum: rename _steal_* to _take_*
Daiki Ueno [Thu, 26 Mar 2026 03:39:56 +0000 (12:39 +0900)] 
mem,str,datum: rename _steal_* to _take_*

While the name of _gnutls_steal_* functions was inspired by GLib's
g_steal_* family, it doesn't seem to be intuitive at first glance,
possibly because of the negative meaning of the word "steal". Let's
call it _gnutls_take_*, following the example of TAKE_* macros in
systemd and Option::take in Rust.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
2 months agoMerge branch 'ci-f43' into 'master'
Daiki Ueno [Thu, 12 Mar 2026 22:58:40 +0000 (07:58 +0900)] 
Merge branch 'ci-f43' into 'master'

.gitlab-ci.yml: move fedora jobs to Fedora 43

See merge request gnutls/gnutls!2082

2 months agoMerge branch 'devel-ci-local' into 'master'
Alexander Sosedkin [Thu, 12 Mar 2026 13:03:31 +0000 (13:03 +0000)] 
Merge branch 'devel-ci-local' into 'master'

devel/ci-local.sh: add a gitlab-ci-local wrapper

See merge request gnutls/gnutls!2077

2 months ago.gitlab-ci.yml: move fedora jobs to Fedora 43
Alexander Sosedkin [Mon, 23 Feb 2026 16:10:51 +0000 (17:10 +0100)] 
.gitlab-ci.yml: move fedora jobs to Fedora 43

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months agodevel/ci-local.sh: add a gitlab-ci-local wrapper
Alexander Sosedkin [Mon, 2 Mar 2026 12:51:48 +0000 (13:51 +0100)] 
devel/ci-local.sh: add a gitlab-ci-local wrapper

gitlab-ci-local doesn't play nicely with gnutls out of the box.
This adds a wrapper that smoothes several wrinkles out:
1. if you're using worktrees, bootstrapping submodules fails
2. there's no way to pass arbitrary arguments like `--remote` to podman
3. `artifacts: untracked: true` doesn't work without `paths` specified
4. commit-check job is skipped by default

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months agoMerge branch 'c99' into 'master'
Daiki Ueno [Fri, 6 Mar 2026 00:51:58 +0000 (09:51 +0900)] 
Merge branch 'c99' into 'master'

configure: make the C99 detection more resiliant

Closes #1806

See merge request gnutls/gnutls!2081

2 months agoconfigure: make the C99 detection more resiliant
Ross Burton [Thu, 5 Mar 2026 11:33:57 +0000 (11:33 +0000)] 
configure: make the C99 detection more resiliant

autoconf 2.73 will default to C23 by default, which means that the >C99
detection logic in configure.ac will fail because it only handles c11
and c99.

Instead of adding c23 to the list and then breaking again in the future,
flip the logic around (as suggested by Zack Weinberg) and check
explicitly for just c89.

Closes #1806.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2 months agoMerge branch 'ktls-chacha-iv-fix' into 'master'
Alexander Sosedkin [Wed, 4 Mar 2026 16:31:52 +0000 (16:31 +0000)] 
Merge branch 'ktls-chacha-iv-fix' into 'master'

ktls: fix ChaCha20-Poly1305 IV passing for TLS 1.2

See merge request gnutls/gnutls!2079

2 months agoktls: simplify ChaCha20‑Poly1305 IV passing
Alexander Sosedkin [Tue, 3 Mar 2026 18:52:18 +0000 (19:52 +0100)] 
ktls: simplify ChaCha20‑Poly1305 IV passing

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months agoktls: fix ChaCha20-Poly1305 IV passing for TLS 1.2
Alexander Sosedkin [Tue, 3 Mar 2026 18:47:25 +0000 (19:47 +0100)] 
ktls: fix ChaCha20-Poly1305 IV passing for TLS 1.2

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
2 months agoMerge branch 'wip/dueno/remove-nettle-bundle' into 'master'
Alexander Sosedkin [Wed, 4 Mar 2026 13:03:50 +0000 (13:03 +0000)] 
Merge branch 'wip/dueno/remove-nettle-bundle' into 'master'

Remove no longer used files copied from Nettle

See merge request gnutls/gnutls!2078