]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
7 years agoax_code_coverage.m4: updated to latest macro tmp-code-coverage-update
Nikos Mavrogiannopoulos [Fri, 25 Jan 2019 20:40:53 +0000 (21:40 +0100)] 
ax_code_coverage.m4: updated to latest macro

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'fix-nettle-check' into 'master'
Nikos Mavrogiannopoulos [Mon, 4 Feb 2019 13:16:11 +0000 (13:16 +0000)] 
Merge branch 'fix-nettle-check' into 'master'

build: pass NETTLE_LIBS together with HOGWEED_LIBS

See merge request gnutls/gnutls!903

7 years agoMerge branch 'fix-pkcs11-mechs' into 'master'
Nikos Mavrogiannopoulos [Mon, 4 Feb 2019 13:11:56 +0000 (13:11 +0000)] 
Merge branch 'fix-pkcs11-mechs' into 'master'

build: do not generate mech-list.h if p11-kit is not available

See merge request gnutls/gnutls!904

7 years agobuild: do not generate mech-list.h if p11-kit is not available
Dmitry Eremin-Solenikov [Sat, 2 Feb 2019 14:47:48 +0000 (17:47 +0300)] 
build: do not generate mech-list.h if p11-kit is not available

Compiling GnuTLS with no p11-kit installed will result in a serie of
warnings during build time because mech-list.h will be generated even if
pkcs11 tool compilation is disabled. Move mech-list.h generation to
happen only if pkcs11 is enabled, thus removing these warnings.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agobuild: pass NETTLE_LIBS together with HOGWEED_LIBS
Dmitry Eremin-Solenikov [Sat, 2 Feb 2019 14:32:01 +0000 (17:32 +0300)] 
build: pass NETTLE_LIBS together with HOGWEED_LIBS

libhogweed might depend on exact non-system-wide nettle, so let's pass
NETTLE_LIBS flags together when using HOGWEED_LIBS.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoMerge branch 'tmp-fix-sni-error' into 'master'
Tim Rühsen [Thu, 31 Jan 2019 11:55:51 +0000 (11:55 +0000)] 
Merge branch 'tmp-fix-sni-error' into 'master'

Amend error code when SNI name is not accepted

Closes #683

See merge request gnutls/gnutls!891

7 years agoAdd GNUTLS_E_RECEIVED_DISALLOWED_NAME for illegal SNI names
Tim Rühsen [Sat, 26 Jan 2019 20:44:28 +0000 (21:44 +0100)] 
Add GNUTLS_E_RECEIVED_DISALLOWED_NAME for illegal SNI names

An illegal/disallowed SNI server name previously generated
the misleading message "An illegal parameter has been received.".

This commit changes it to
  "A disallowed SNI server name has been received.".

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'nettle-stdint' into 'master'
Tim Rühsen [Wed, 30 Jan 2019 21:32:20 +0000 (21:32 +0000)] 
Merge branch 'nettle-stdint' into 'master'

lib/nettle: replace nettle-stdint.h with just stdint.h

See merge request gnutls/gnutls!901

7 years agoMerge branch 'tmp-update-glimport-and-docs' into 'master'
Tim Rühsen [Wed, 30 Jan 2019 21:11:03 +0000 (21:11 +0000)] 
Merge branch 'tmp-update-glimport-and-docs' into 'master'

Fix 'make glimport' and update CONTRIBUTING.md

See merge request gnutls/gnutls!900

7 years agolib/nettle: replace nettle-stdint.h with just stdint.h
Dmitry Eremin-Solenikov [Wed, 30 Jan 2019 18:58:34 +0000 (21:58 +0300)] 
lib/nettle: replace nettle-stdint.h with just stdint.h

Nettle library is going to drop nettle-stdint.h. Replace this include
with with just <stdint.h>.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoFix 'make glimport' and update CONTRIBUTING.md
Tim Rühsen [Mon, 28 Jan 2019 14:25:30 +0000 (15:25 +0100)] 
Fix 'make glimport' and update CONTRIBUTING.md

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-fix-guile-unused-var' into 'master'
Dmitry Eremin-Solenikov [Mon, 28 Jan 2019 12:46:41 +0000 (12:46 +0000)] 
Merge branch 'tmp-fix-guile-unused-var' into 'master'

Fix unused var warning in guile/src/core.c

See merge request gnutls/gnutls!895

7 years agoMerge branch 'guile' into 'master'
Tim Rühsen [Sun, 27 Jan 2019 17:23:52 +0000 (17:23 +0000)] 
Merge branch 'guile' into 'master'

build: detect previous supported guile

See merge request gnutls/gnutls!898

7 years agoMerge branch 'gitignore' into 'master'
Tim Rühsen [Sun, 27 Jan 2019 17:21:48 +0000 (17:21 +0000)] 
Merge branch 'gitignore' into 'master'

.gitignore: add test files

See merge request gnutls/gnutls!899

7 years ago.gitignore: add test files
Alon Bar-Lev [Sun, 27 Jan 2019 11:59:56 +0000 (13:59 +0200)] 
.gitignore: add test files

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
7 years agobuild: detect previous supported guile
Alon Bar-Lev [Sun, 27 Jan 2019 11:17:35 +0000 (13:17 +0200)] 
build: detect previous supported guile

A recent change in the m4 macro of guile enforces latest guile:
---
AC_DEFUN([GUILE_PROGS],
 [_guile_required_version="m4_default([$1], [$GUILE_EFFECTIVE_VERSION])"
  if test -z "$_guile_required_version"; then
    _guile_required_version=2.2
  fi
---

The result:
---
checking for guile-snarf... /usr/bin/guile-snarf
checking for guild... /usr/bin/guild
checking for guile-2.2... no
checking for guile2.2... no
checking for guile-2... no
checking for guile2... no
checking for guile... /usr/bin/guile
checking for Guile version >= 2.2... configure: error: Guile 2.2 required, but 2.0.14 found
---

Probably best to specify the supported version explicitly when calling
GUILE_PROGS, to keep existing behavior calling the GUILE_PKG detects the
existing packages.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
7 years agoFix unused var warning in guile/src/core.c
Tim Rühsen [Fri, 25 Jan 2019 10:51:56 +0000 (11:51 +0100)] 
Fix unused var warning in guile/src/core.c

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-fix-abi-check' into 'master'
Nikos Mavrogiannopoulos [Fri, 25 Jan 2019 17:12:22 +0000 (17:12 +0000)] 
Merge branch 'tmp-fix-abi-check' into 'master'

Fix abi-check failure

See merge request gnutls/gnutls!896

7 years agoFix abi-check failure
Tim Rühsen [Fri, 25 Jan 2019 11:26:46 +0000 (12:26 +0100)] 
Fix abi-check failure

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoNEWS: updated gnutls_3_6_6
Nikos Mavrogiannopoulos [Fri, 25 Jan 2019 07:32:17 +0000 (08:32 +0100)] 
NEWS: updated

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agosrc/Makefile.am: remove .bak files before autogenerating
Nikos Mavrogiannopoulos [Fri, 25 Jan 2019 07:24:21 +0000 (08:24 +0100)] 
src/Makefile.am: remove .bak files before autogenerating

This avoids errors due to files pre-existing but not being
writable.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agobumped versions
Nikos Mavrogiannopoulos [Fri, 25 Jan 2019 07:18:01 +0000 (08:18 +0100)] 
bumped versions

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMakefile.am: require guile-2.2 for release
Nikos Mavrogiannopoulos [Fri, 25 Jan 2019 07:13:26 +0000 (08:13 +0100)] 
Makefile.am: require guile-2.2 for release

That's because guile.m4 from previous releases has issues
with the latest version.

Resolves: #631

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agopriorities: when %NO_EXTENSIONS is specified disable TLS1.3
Nikos Mavrogiannopoulos [Thu, 24 Jan 2019 19:25:59 +0000 (20:25 +0100)] 
priorities: when %NO_EXTENSIONS is specified disable TLS1.3

This makes the behavior of this priority string option well-defined
even when TLS1.3 is enabled.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-fix-no-extensions' into 'master'
Nikos Mavrogiannopoulos [Thu, 24 Jan 2019 19:13:52 +0000 (19:13 +0000)] 
Merge branch 'tmp-fix-no-extensions' into 'master'

The flag %NO_EXTENSIONS is disabling extension support while being functional

See merge request gnutls/gnutls!870

7 years agoMerge branch 'tmp-ametzler-certtool-manpage-formatting' into 'master'
Tim Rühsen [Thu, 24 Jan 2019 18:55:41 +0000 (18:55 +0000)] 
Merge branch 'tmp-ametzler-certtool-manpage-formatting' into 'master'

certtool.1: fix formatting

See merge request gnutls/gnutls!892

7 years agocerttool.1: fix formatting
Andreas Metzler [Thu, 24 Jan 2019 17:48:40 +0000 (18:48 +0100)] 
certtool.1: fix formatting

Apostroph at start of a line is a control character in manpages, avoid
it. Also drop wrong indent.
See https://bugs.debian.org/920215

Signed-off-by: Andreas Metzler <ametzler@bebt.de>
7 years agoMerge branch 'tmp-record-size-limit-fixes' into 'master'
Daiki Ueno [Thu, 24 Jan 2019 15:03:30 +0000 (15:03 +0000)] 
Merge branch 'tmp-record-size-limit-fixes' into 'master'

Fix record_size_limit extension handling when resuming

See merge request gnutls/gnutls!886

7 years agotlsfuzzer: update to the latest upstream for record_size_limit tests
Daiki Ueno [Wed, 23 Jan 2019 16:52:47 +0000 (17:52 +0100)] 
tlsfuzzer: update to the latest upstream for record_size_limit tests

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoMerge branch 'tmp-fix-macosx' into 'master'
Nikos Mavrogiannopoulos [Thu, 24 Jan 2019 12:24:55 +0000 (12:24 +0000)] 
Merge branch 'tmp-fix-macosx' into 'master'

.travis.yml: make macosx builds compile again

See merge request gnutls/gnutls!890

7 years agoconfigure.ac: fix substitution for libatomic
Dmitry Eremin-Solenikov [Wed, 23 Jan 2019 22:57:13 +0000 (01:57 +0300)] 
configure.ac: fix substitution for libatomic

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoMerge branch 'tmp-fix-udp-serv' into 'master'
Dmitry Eremin-Solenikov [Wed, 23 Jan 2019 22:48:44 +0000 (22:48 +0000)] 
Merge branch 'tmp-fix-udp-serv' into 'master'

gnutls-serv: improvements in UDP server

Closes #632

See merge request gnutls/gnutls!863

7 years agoMerge branch 'tmp-priority-linear' into 'master'
Tim Rühsen [Wed, 23 Jan 2019 21:27:25 +0000 (21:27 +0000)] 
Merge branch 'tmp-priority-linear' into 'master'

set_ciphersuite_list(): Use linear approach to cleanup priorities

Closes #679

See merge request gnutls/gnutls!889

7 years ago.travis.yml: avoid installing submodules
Nikos Mavrogiannopoulos [Wed, 23 Jan 2019 19:51:11 +0000 (20:51 +0100)] 
.travis.yml: avoid installing submodules

They are not necessary for building and testing the basic
test suite.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoupdate on "Fix gnutls.pc for multiarch builds"
Nikos Mavrogiannopoulos [Wed, 23 Jan 2019 19:42:34 +0000 (20:42 +0100)] 
update on "Fix gnutls.pc for multiarch builds"

This replaces LTLIBUNISTRING with LIBUNISTRING in Makefile.am.
The former is no longer produced by configure.ac.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'master' into 'master'
Nikos Mavrogiannopoulos [Wed, 23 Jan 2019 19:14:01 +0000 (19:14 +0000)] 
Merge branch 'master' into 'master'

configure.ac: check if libatomic is needed

See merge request gnutls/gnutls!878

7 years agoMerge branch 'tmp-test-tickets' into 'master'
Nikos Mavrogiannopoulos [Wed, 23 Jan 2019 19:12:13 +0000 (19:12 +0000)] 
Merge branch 'tmp-test-tickets' into 'master'

tests: added tests for multiple ticket reception

Closes #511

See merge request gnutls/gnutls!887

7 years agoset_ciphersuite_list(): Use linear approach to cleanup priorities
Tim Rühsen [Wed, 23 Jan 2019 14:13:12 +0000 (15:13 +0100)] 
set_ciphersuite_list(): Use linear approach to cleanup priorities

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agotests: check record_size_limit is reset after resumption
Daiki Ueno [Tue, 22 Jan 2019 14:47:39 +0000 (15:47 +0100)] 
tests: check record_size_limit is reset after resumption

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoconstate: don't restore max_record_recv_size from resumed data
Daiki Ueno [Sat, 19 Jan 2019 09:31:52 +0000 (10:31 +0100)] 
constate: don't restore max_record_recv_size from resumed data

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoext/record_size_limit: mark it as mandatory extension
Daiki Ueno [Thu, 17 Jan 2019 16:50:49 +0000 (17:50 +0100)] 
ext/record_size_limit: mark it as mandatory extension

In a resuming session record_size_limit is always renegotiated, and
thus the server should parse the extension always.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoext/record_size_limit: reject too large extension payload
Daiki Ueno [Thu, 17 Jan 2019 10:52:50 +0000 (11:52 +0100)] 
ext/record_size_limit: reject too large extension payload

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agognutls-serv: improvements in UDP server
Nikos Mavrogiannopoulos [Sat, 5 Jan 2019 13:12:46 +0000 (14:12 +0100)] 
gnutls-serv: improvements in UDP server

This modifies the server to deinitialize the session after use
(avoiding leaks), and to only send the hello verify request when
a client hello is seen.

This also adds a basic unit test of gnutls-serv with the --udp option.

Resolves #632

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-key-rsa-pss' into 'master'
Dmitry Eremin-Solenikov [Wed, 23 Jan 2019 15:17:00 +0000 (15:17 +0000)] 
Merge branch 'tmp-key-rsa-pss' into 'master'

gnutls_pkcs11_privkey_import_url: enable RSA-PSS only when an RSA key can sign

Closes #667

See merge request gnutls/gnutls!884

7 years agoconfigure.ac: add comment for -latomic
Fabrice Fontaine [Wed, 23 Jan 2019 12:36:23 +0000 (13:36 +0100)] 
configure.ac: add comment for -latomic

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 years agotests: added tests for multiple ticket reception
Nikos Mavrogiannopoulos [Wed, 23 Jan 2019 07:42:54 +0000 (08:42 +0100)] 
tests: added tests for multiple ticket reception

This introduces tests for the reception (parsing) of multiple tickets
by a gnutls client. It uses the tlslite-ng server because unlike a gnutls
server, tlslite-ng does send multiple tickets in a single record. That
way we test that we can parse both ways of sending tickets.

Resolves: #511

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoMerge branch 'tmp-update-gnulib' into 'master'
Nikos Mavrogiannopoulos [Wed, 23 Jan 2019 12:21:07 +0000 (12:21 +0000)] 
Merge branch 'tmp-update-gnulib' into 'master'

Update gnulib

Closes #653

See merge request gnutls/gnutls!888

7 years agoMerge branch 'tmp-alerts-fix' into 'master'
Nikos Mavrogiannopoulos [Wed, 23 Jan 2019 12:06:34 +0000 (12:06 +0000)] 
Merge branch 'tmp-alerts-fix' into 'master'

Various alert-related fixes

Closes #672

See merge request gnutls/gnutls!885

7 years agoUpdate gnulib
Tim Rühsen [Wed, 23 Jan 2019 10:45:39 +0000 (11:45 +0100)] 
Update gnulib

Closes #653 (printf %n crashes on Android)

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agognutls_alert_send_appropriate: do not send alert to peer on all errors
Nikos Mavrogiannopoulos [Mon, 21 Jan 2019 19:53:06 +0000 (20:53 +0100)] 
gnutls_alert_send_appropriate: do not send alert to peer on all errors

That is, do not send alerts for success, or for errors indicating that
an alert has been received. This changes the documented function behavior
but does not break any existing caller expectations.

Relates: #672

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-fix-libs-private' into 'master'
Tim Rühsen [Tue, 22 Jan 2019 21:28:38 +0000 (21:28 +0000)] 
Merge branch 'tmp-fix-libs-private' into 'master'

Fix libs.private in gnutls.pc for multiarch builds

Closes #675

See merge request gnutls/gnutls!877

7 years agognutls_pkcs11_privkey_import_url: enable RSA-PSS only when an RSA key can sign
Nikos Mavrogiannopoulos [Mon, 21 Jan 2019 19:33:00 +0000 (20:33 +0100)] 
gnutls_pkcs11_privkey_import_url: enable RSA-PSS only when an RSA key can sign

In gnutls_pkcs11_privkey_import_url() we only enabled RSA-PSS functionality to
the key if the CKM_RSA_PKCS_PSS mechanism is available to the token. However,
if the specific key is not marked for use with digital signatures (CKA_SIGN
set), then we may have still ended-up using it and fail when using it. We
now test whether CKA_SIGN is set prior to enabling such keys for PSS.

Resolves: #667

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-fix-fuzzer-timeout' into 'master'
Tim Rühsen [Tue, 22 Jan 2019 08:02:32 +0000 (08:02 +0000)] 
Merge branch 'tmp-fix-fuzzer-timeout' into 'master'

Avoid excessive CPU usage in gnutls_idna_map()

See merge request gnutls/gnutls!881

7 years agoalert: associate unsupported curve alerts with handshake failure
Nikos Mavrogiannopoulos [Mon, 21 Jan 2019 19:56:10 +0000 (20:56 +0100)] 
alert: associate unsupported curve alerts with handshake failure

Resolves: #672

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-check-if-signed' into 'master'
Tim Rühsen [Sun, 20 Jan 2019 13:34:14 +0000 (13:34 +0000)] 
Merge branch 'tmp-check-if-signed' into 'master'

Check for Signed-off-by: in CI

Closes #668

See merge request gnutls/gnutls!874

7 years agoCheck for Signed-off-by: in CI
Tim Rühsen [Thu, 10 Jan 2019 13:53:32 +0000 (14:53 +0100)] 
Check for Signed-off-by: in CI

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAvoid excessive CPU usage in gnutls_idna_map()
Tim Rühsen [Sun, 20 Jan 2019 11:00:07 +0000 (12:00 +0100)] 
Avoid excessive CPU usage in gnutls_idna_map()

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-fix-crypto-selftests' into 'master'
Tim Rühsen [Sat, 19 Jan 2019 19:46:42 +0000 (19:46 +0000)] 
Merge branch 'tmp-fix-crypto-selftests' into 'master'

crypto-selftests.c: Fix checking return value

See merge request gnutls/gnutls!880

7 years agoMerge branch 'tmp-init-var-x509dn' into 'master'
Nikos Mavrogiannopoulos [Sat, 19 Jan 2019 19:18:58 +0000 (19:18 +0000)] 
Merge branch 'tmp-init-var-x509dn' into 'master'

Fix uninitialized variable in tests/x509dn.c

See merge request gnutls/gnutls!882

7 years agoFix uninitialized variable in tests/x509dn.c
Tim Rühsen [Sat, 19 Jan 2019 17:19:42 +0000 (18:19 +0100)] 
Fix uninitialized variable in tests/x509dn.c

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agocrypto-selftests.c: Fix checking return value
Tim Rühsen [Sat, 19 Jan 2019 17:04:31 +0000 (18:04 +0100)] 
crypto-selftests.c: Fix checking return value

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-authors' into 'master'
Tim Rühsen [Sat, 19 Jan 2019 15:10:27 +0000 (15:10 +0000)] 
Merge branch 'tmp-authors' into 'master'

auto-generate the AUTHORS file

See merge request gnutls/gnutls!872

7 years agoauto-generate the AUTHORS file
Nikos Mavrogiannopoulos [Fri, 11 Jan 2019 06:23:40 +0000 (07:23 +0100)] 
auto-generate the AUTHORS file

The original file was unmaintained since long time. This is now
auto-generated from the git shortlog, at release time.

Relates: #606

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoconfigure.ac: check if libatomic is needed
Fabrice Fontaine [Thu, 17 Jan 2019 12:24:04 +0000 (13:24 +0100)] 
configure.ac: check if libatomic is needed

gnutls source code uses the C++11 <atomic> functionality since
https://github.com/gnutls/gnutls/commit/7978a733460f92b31033affd0e487c86d66c643d,
which internally is implemented using the __atomic_*() gcc built-ins

On certain architectures, the __atomic_*() built-ins are implemented in
the libatomic library that comes with the rest of the gcc runtime. Due
to this, code using <atomic> might need to link against libatomic,
otherwise one hits build issues such as:

../lib/.libs/libgnutls.so: undefined reference to `__atomic_fetch_sub_4'

on an architecture like SPARC.

To solve this, a configure.ac check is added to know if we need to
link against libatomic or not. The library is also added to gnutls.pc.

Fixes:
 - http://autobuild.buildroot.org/results/6c749bd592ceffeacadd2ab570d127936cce64b2
 - http://autobuild.buildroot.org/results/30aa83d3cf3482af8a59250c196c85f4a278d343

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 years agoFix gnutls.pc for multiarch builds
Tim Rühsen [Thu, 17 Jan 2019 09:22:45 +0000 (10:22 +0100)] 
Fix gnutls.pc for multiarch builds

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-fix-certtools' into 'master'
Nikos Mavrogiannopoulos [Mon, 14 Jan 2019 11:50:02 +0000 (11:50 +0000)] 
Merge branch 'tmp-fix-certtools' into 'master'

certtool: data encipherment is disabled by default

See merge request gnutls/gnutls!875

7 years agocerttool: data encipherment is disabled by default
Nikos Mavrogiannopoulos [Mon, 14 Jan 2019 09:56:27 +0000 (10:56 +0100)] 
certtool: data encipherment is disabled by default

For the TLS protocol this option is not necessary, and if enabled
by mistake (as default) and no other option is set, then the
generated key will be unusable. Thus we disable it, to generate
working keys by default.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoMerge branch 'tmp-autogen-bak-revert' into 'master'
Nikos Mavrogiannopoulos [Thu, 10 Jan 2019 18:39:19 +0000 (18:39 +0000)] 
Merge branch 'tmp-autogen-bak-revert' into 'master'

Revert "build: remove src/*.bak from distribution"

See merge request gnutls/gnutls!869

7 years ago.travis.yml: use ./bootstrap instead of make autoreconf
Nikos Mavrogiannopoulos [Thu, 10 Jan 2019 18:23:12 +0000 (19:23 +0100)] 
.travis.yml: use ./bootstrap instead of make autoreconf

The latter is no longer available after the removal of
GNUMakefile.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoThe flag %NO_EXTENSIONS is disabling extension support while being functional
Nikos Mavrogiannopoulos [Thu, 10 Jan 2019 06:56:17 +0000 (07:56 +0100)] 
The flag %NO_EXTENSIONS is disabling extension support while being functional

That is, the %NO_EXTENSIONS option is the only documented way to disable
extensions completely from a session. Clarify that message, mention that
its behavior is undefined when combine with TLS1.3, and make sure that it
is functional. The latter makes sure that safe renegotiation and extended
master secret extensions remain disabled when this flag is given.

That simplifies testing certain scenarios under TLS1.0 or TLS1.1 when
no extensions must be used.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-fix-regression-ext-size' into 'master'
Nikos Mavrogiannopoulos [Wed, 9 Jan 2019 17:35:29 +0000 (17:35 +0000)] 
Merge branch 'tmp-fix-regression-ext-size' into 'master'

When sending no extensions do not include a zero length

See merge request gnutls/gnutls!868

7 years agoMerge branch 'aclocal' into 'master'
Tim Rühsen [Wed, 9 Jan 2019 15:22:51 +0000 (15:22 +0000)] 
Merge branch 'aclocal' into 'master'

build: install all m4 macros

See merge request gnutls/gnutls!865

7 years agoWhen sending no extensions do not include a zero length 868/head
Nikos Mavrogiannopoulos [Tue, 8 Jan 2019 11:26:19 +0000 (12:26 +0100)] 
When sending no extensions do not include a zero length

According to RFC5246:
   The presence of extensions can be detected by determining whether
   there are bytes following the compression_method field at the end of
   the ServerHello.

and as such we correct our behavior to not send the zero length bytes.
This was our behavior in 3.5.x and 3.3.x branch, and thus this corrects
a regression of gnutls with these branches.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agoMerge branch 'tmp-rsa-pss-tls12' into 'master'
Daiki Ueno [Wed, 9 Jan 2019 06:47:05 +0000 (06:47 +0000)] 
Merge branch 'tmp-rsa-pss-tls12' into 'master'

tls-sig: check RSA-PSS signature key compatibility also in TLS 1.2

Closes #659 and #645

See merge request gnutls/gnutls!854

7 years agoAvoid calling sign_algorithm_get_name() when we already have pointer to the algorithm.
Nikos Mavrogiannopoulos [Tue, 8 Jan 2019 19:37:49 +0000 (19:37 +0000)] 
Avoid calling sign_algorithm_get_name() when we already have pointer to the algorithm.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agotls-sig: check RSA-PSS signature key compatibility also in TLS 1.2
Daiki Ueno [Wed, 2 Jan 2019 12:21:49 +0000 (13:21 +0100)] 
tls-sig: check RSA-PSS signature key compatibility also in TLS 1.2

This extends commit 51d21634 to cover the optional TLS 1.2 cases,
which RFC 8446 4.2.3 suggests: "Implementations that advertise support
for RSASSA-PSS (which is mandatory in TLS 1.3) MUST be prepared to
accept a signature using that scheme even when TLS 1.2 is negotiated".

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agotlsfuzzer: update to the latest upstream for the TLS 1.2 CV tests
Daiki Ueno [Tue, 8 Jan 2019 17:09:29 +0000 (18:09 +0100)] 
tlsfuzzer: update to the latest upstream for the TLS 1.2 CV tests

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoalert: map GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM to illegal_parameter
Daiki Ueno [Tue, 8 Jan 2019 17:06:17 +0000 (18:06 +0100)] 
alert: map GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM to illegal_parameter

This alert is more appropriate according to the tlsfuzzer test:
https://github.com/tomato42/tlsfuzzer/commit/4b6a4aa8b00cf3f3bcb2388d1bfdad985610ed1d

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoMerge branch 'gnutls_write_new_general_fix' into 'master'
Tim Rühsen [Tue, 8 Jan 2019 14:20:51 +0000 (14:20 +0000)] 
Merge branch 'gnutls_write_new_general_fix' into 'master'

Fix _gnutls_write_new_general_name() result checking

See merge request gnutls/gnutls!866

7 years agoRevert "build: remove src/*.bak from distribution" 869/head
Daiki Ueno [Tue, 8 Jan 2019 13:40:25 +0000 (14:40 +0100)] 
Revert "build: remove src/*.bak from distribution"

This reverts commit 9ba397aa841730e4824d2bf8537aa15e711ad9b3, as it
turned out to be not practical.  See !862 for the discussion.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years ago_gnutls_hello_ext_set_datum: removed unnecessary remark [ci skip]
Nikos Mavrogiannopoulos [Tue, 8 Jan 2019 11:07:00 +0000 (12:07 +0100)] 
_gnutls_hello_ext_set_datum: removed unnecessary remark [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoFix _gnutls_write_new_general_name() result checking
Maks Naumov [Mon, 7 Jan 2019 22:05:23 +0000 (00:05 +0200)] 
Fix _gnutls_write_new_general_name() result checking

7 years agobuild: install all m4 macros
Alon Bar-Lev [Mon, 7 Jan 2019 15:46:10 +0000 (17:46 +0200)] 
build: install all m4 macros

having all m4 macros in m4/ directory enables easier autoreconf process for
downstream as dependency programs that provide these macros are not required.

both gtk-doc and guile requires huge dependency list, and currently are
required per any change (patch) in autotools.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
7 years agoMerge branch 'tmp-fix-signing' into 'master'
Tim Rühsen [Fri, 4 Jan 2019 20:39:05 +0000 (20:39 +0000)] 
Merge branch 'tmp-fix-signing' into 'master'

_gnutls13_handshake_sign_data: properly fail on signing error

See merge request gnutls/gnutls!855

7 years agoMerge branch 'tmp-msvc-fixes' into 'master'
Daiki Ueno [Fri, 4 Jan 2019 20:32:18 +0000 (20:32 +0000)] 
Merge branch 'tmp-msvc-fixes' into 'master'

ext/pre_shared_key: avoid unnecessary use of VLA for MSVC

See merge request gnutls/gnutls!861

7 years agoMerge branch 'tmp-unroll-ci-commands' into 'master'
Dmitry Eremin-Solenikov [Fri, 4 Jan 2019 20:31:55 +0000 (20:31 +0000)] 
Merge branch 'tmp-unroll-ci-commands' into 'master'

Unroll MinGW CI runner commands

See merge request gnutls/gnutls!857

7 years agoMerge branch 'tmp-fix-typos-in-lib' into 'master'
Tim Rühsen [Fri, 4 Jan 2019 20:12:04 +0000 (20:12 +0000)] 
Merge branch 'tmp-fix-typos-in-lib' into 'master'

Fix typos in lib/

See merge request gnutls/gnutls!850

7 years agoMerge branch 'tmp-tests-fail-on-signals' into 'master'
Tim Rühsen [Fri, 4 Jan 2019 19:53:18 +0000 (19:53 +0000)] 
Merge branch 'tmp-tests-fail-on-signals' into 'master'

tests: treat all signals as error

Closes #623

See merge request gnutls/gnutls!856

7 years agoext/pre_shared_key: avoid unnecessary use of VLA for MSVC
Daiki Ueno [Wed, 2 Jan 2019 12:44:50 +0000 (13:44 +0100)] 
ext/pre_shared_key: avoid unnecessary use of VLA for MSVC

Suggested by Gisle Vanem in:
https://github.com/gnutls/gnutls/commit/fd8c1ec8fe155861dffa28811127f101b6697b4b#r31802648

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoFix typos in lib/
Tim Rühsen [Fri, 4 Jan 2019 08:47:24 +0000 (09:47 +0100)] 
Fix typos in lib/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoUnroll MinGW CI runner commands
Tim Rühsen [Thu, 3 Jan 2019 15:36:17 +0000 (16:36 +0100)] 
Unroll MinGW CI runner commands

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agotests: treat all signals as error
Nikos Mavrogiannopoulos [Thu, 3 Jan 2019 08:51:34 +0000 (09:51 +0100)] 
tests: treat all signals as error

Previously we were only treating SIGSEGV as error though there is
no reason to treat other signals as success and they may hide an
actual error case (e.g., when SIGPIPE is received). With this change we
treat any signals received by the child except SIGTERM as error, and
we ensure that SIGPIPE is ignored in all tests.

This also updates tests/slow/cipher-api-test.c to test failures with
SIGABRT or otherwise consistently.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoMerge branch 'tmp-revert-835' into 'master'
Tim Rühsen [Fri, 4 Jan 2019 16:12:10 +0000 (16:12 +0000)] 
Merge branch 'tmp-revert-835' into 'master'

Revert "verify-high2: Fix cert dir iteration on Win32"

See merge request gnutls/gnutls!860

7 years agoRevert "verify-high2: Fix cert dir iteration on Win32"
Nikos Mavrogiannopoulos [Fri, 4 Jan 2019 13:48:26 +0000 (14:48 +0100)] 
Revert "verify-high2: Fix cert dir iteration on Win32"

This was failing CI (x509cert-tl) but was not detected due to
a bug.

This reverts commit 362a0c30b79ccede7e5bc3a7747c3e7f1d30889a.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoMerge branch 'tmp-fix-typos-in-doc' into 'master'
Dmitry Eremin-Solenikov [Thu, 3 Jan 2019 23:51:54 +0000 (23:51 +0000)] 
Merge branch 'tmp-fix-typos-in-doc' into 'master'

Fix typos in doc/

See merge request gnutls/gnutls!849

7 years agoMerge branch 'master' into 'master'
Tim Rühsen [Thu, 3 Jan 2019 20:16:38 +0000 (20:16 +0000)] 
Merge branch 'master' into 'master'

Fix typo when checking for ed25519 support

See merge request gnutls/gnutls!858

7 years agoFix typo when checking for ed25519 support
Marga Manterola [Thu, 3 Jan 2019 17:57:29 +0000 (17:57 +0000)] 
Fix typo when checking for ed25519 support

7 years agoFix typos in doc/
Tim Rühsen [Tue, 1 Jan 2019 13:26:04 +0000 (14:26 +0100)] 
Fix typos in doc/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years ago_gnutls13_handshake_sign_data: properly fail on signing error
Nikos Mavrogiannopoulos [Thu, 3 Jan 2019 08:13:56 +0000 (09:13 +0100)] 
_gnutls13_handshake_sign_data: properly fail on signing error

When signing failed, gnutls would return an invalid signed message
(with no data) instead of failing.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoMerge branch 'tmp-update-gnulib' into 'master'
Dmitry Eremin-Solenikov [Wed, 2 Jan 2019 21:44:10 +0000 (21:44 +0000)] 
Merge branch 'tmp-update-gnulib' into 'master'

Update gnulib

See merge request gnutls/gnutls!851