]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
7 years agoPrefix gcc attributes with 'attr_'
Tim Rühsen [Mon, 3 Jun 2019 19:53:05 +0000 (21:53 +0200)] 
Prefix gcc attributes with 'attr_'

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agognutls_prf_early: corrected Since version [ci skip]
Nikos Mavrogiannopoulos [Mon, 3 Jun 2019 11:26:18 +0000 (13:26 +0200)] 
gnutls_prf_early: corrected Since version [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoMerge branch 'tmp-fix-travis' into 'master'
Tim Rühsen [Sun, 2 Jun 2019 15:13:42 +0000 (15:13 +0000)] 
Merge branch 'tmp-fix-travis' into 'master'

Fix warn_unused_result for clang < 4

See merge request gnutls/gnutls!1016

7 years agoFix warn_unused_result for clang < 4
Tim Rühsen [Sun, 2 Jun 2019 10:42:16 +0000 (12:42 +0200)] 
Fix warn_unused_result for clang < 4

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-fedora30' into 'master'
Tim Rühsen [Sun, 2 Jun 2019 09:38:13 +0000 (09:38 +0000)] 
Merge branch 'tmp-fedora30' into 'master'

.gitlab-ci.yml: switched fedora to latest version

See merge request gnutls/gnutls!1015

7 years ago.gitlab-ci.yml: switched fedora to latest version
Nikos Mavrogiannopoulos [Sat, 1 Jun 2019 14:18:50 +0000 (16:18 +0200)] 
.gitlab-ci.yml: switched fedora to latest version

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-releases' into 'master'
Nikos Mavrogiannopoulos [Fri, 31 May 2019 20:22:28 +0000 (20:22 +0000)] 
Merge branch 'tmp-releases' into 'master'

RELEASES.md: document the releases policy

See merge request gnutls/gnutls!1011

7 years agoMerge branch 'tmp-fix-libopts' into 'master'
Dmitry Eremin-Solenikov [Fri, 31 May 2019 17:55:37 +0000 (17:55 +0000)] 
Merge branch 'tmp-fix-libopts' into 'master'

Do not regenerate autogen files if --enable-local-libopts is given

Closes #772

See merge request gnutls/gnutls!1010

7 years agoMerge branch 'tmp-fix-touch' into 'master'
Tim Rühsen [Thu, 30 May 2019 13:52:40 +0000 (13:52 +0000)] 
Merge branch 'tmp-fix-touch' into 'master'

Makefile.am: do not create files when it shouldn't

See merge request gnutls/gnutls!1014

7 years agoMakefile.am: do not create files when it shouldn't
Nikos Mavrogiannopoulos [Thu, 30 May 2019 12:42:52 +0000 (14:42 +0200)] 
Makefile.am: do not create files when it shouldn't

If a pdf or html file is not distributed, previously `make dist`
would create a file called '*.pdf' which did not make sense. This
addresses this problem.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoDo not regenerate autogen files if --enable-local-libopts is given
Nikos Mavrogiannopoulos [Sat, 25 May 2019 19:17:27 +0000 (21:17 +0200)] 
Do not regenerate autogen files if --enable-local-libopts is given

This addresses issue on installed systems which have autogen but
use --enable-local-libopts. In these systems if the installed autogen
would not match the local libopts library version compilation would
fail because the auto-generated files depend on the corresponding to
autogen version libopts internals.

Resolves: #772

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-datum-cleanup' into 'master'
Tim Rühsen [Wed, 29 May 2019 14:15:33 +0000 (14:15 +0000)] 
Merge branch 'tmp-datum-cleanup' into 'master'

Datum.c cleanup

See merge request gnutls/gnutls!1002

7 years agoRemove malloc from gnutls_srp_set_server_fake_salt_seed()
Nikos Mavrogiannopoulos [Mon, 27 May 2019 13:16:52 +0000 (15:16 +0200)] 
Remove malloc from gnutls_srp_set_server_fake_salt_seed()

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agognutls_session_set_data(): Check for allocation error
Tim Rühsen [Mon, 20 May 2019 10:49:51 +0000 (12:49 +0200)] 
gnutls_session_set_data(): Check for allocation error

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years ago_gnutls_set_[str]datum: Cleanup, add function attributes
Tim Rühsen [Mon, 20 May 2019 10:46:54 +0000 (12:46 +0200)] 
_gnutls_set_[str]datum: Cleanup, add function attributes

_gnutls_set_datum(): Do not change output 'dat' on error
_gnutls_set_strdatum: Likewise, cleanup code

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd nonnull, nonnull_all and warn_unusd_result attributes in lib/gnutls_int.h
Tim Rühsen [Tue, 21 May 2019 09:17:39 +0000 (11:17 +0200)] 
Add nonnull, nonnull_all and warn_unusd_result attributes in lib/gnutls_int.h

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agodoc: do not distribute pdf files
Nikos Mavrogiannopoulos [Tue, 28 May 2019 05:05:46 +0000 (07:05 +0200)] 
doc: do not distribute pdf files

It compicates the 'make dist' phase and does not add much
value as the files are available from the web site.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoreleased 3.6.8
Nikos Mavrogiannopoulos [Tue, 28 May 2019 04:45:56 +0000 (06:45 +0200)] 
released 3.6.8

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agominor updates in the latex version of the manual [ci skip]
Nikos Mavrogiannopoulos [Mon, 27 May 2019 20:34:42 +0000 (22:34 +0200)] 
minor updates in the latex version of the manual [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 27 May 2019 19:29:44 +0000 (21:29 +0200)] 
doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoRELEASES.md: document the releases policy [ci skip]
Nikos Mavrogiannopoulos [Sun, 26 May 2019 19:35:19 +0000 (21:35 +0200)] 
RELEASES.md: document the releases policy [ci skip]

This adds a file to document the policy on releases based on
the discussions taken place in the last face to face meeting.

https://gitlab.com/gnutls/gnutls/wikis/face2face-meeting-fosdem2019

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-avoid-libs-in-libsvar' into 'master'
Nikos Mavrogiannopoulos [Fri, 24 May 2019 14:12:14 +0000 (14:12 +0000)] 
Merge branch 'tmp-avoid-libs-in-libsvar' into 'master'

Do not add libraries in the global LIBS in configure

Closes #735

See merge request gnutls/gnutls!1008

7 years ago.gitlab-ci.yml: ensure that the LIBS variable is empty after a configure run
Nikos Mavrogiannopoulos [Fri, 24 May 2019 10:59:13 +0000 (12:59 +0200)] 
.gitlab-ci.yml: ensure that the LIBS variable is empty after a configure run

We do not use this variable as it is global and applies to all of
tests, applications and library, and when it is set it is usually due to
bugs in configure.ac.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoDo not add libraries in the global LIBS in configure
Nikos Mavrogiannopoulos [Thu, 23 May 2019 19:20:49 +0000 (21:20 +0200)] 
Do not add libraries in the global LIBS in configure

This ensures that libraries are linked with the programs
requiring them.

Resolves: #735

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-version-override' into 'master'
Daiki Ueno [Fri, 24 May 2019 06:33:38 +0000 (06:33 +0000)] 
Merge branch 'tmp-version-override' into 'master'

tests: prf-early fixes the global version

See merge request gnutls/gnutls!1009

7 years agobumped version
Nikos Mavrogiannopoulos [Thu, 23 May 2019 09:41:45 +0000 (11:41 +0200)] 
bumped version

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agotests: prf-early fixes the global version
Nikos Mavrogiannopoulos [Fri, 24 May 2019 03:46:18 +0000 (05:46 +0200)] 
tests: prf-early fixes the global version

This allows having fixed data in the hello message involved.
That required exposing the variable holding the global gnutls
version number for testing.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agocerttool: corrected typo in manual [ci skip]
Nikos Mavrogiannopoulos [Thu, 23 May 2019 19:32:58 +0000 (21:32 +0200)] 
certtool: corrected typo in manual [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoRevert "bumped version"
Nikos Mavrogiannopoulos [Thu, 23 May 2019 19:11:58 +0000 (21:11 +0200)] 
Revert "bumped version"

In order to make the CI functional again. The version number update
seems to conflict with tests/tls13/prf-early.sh

This reverts commit d34d93b8713cf10235ce7016fd69b6932b0752c0.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agotests: prf-early.sh: use the static flag of datefudge
Nikos Mavrogiannopoulos [Thu, 23 May 2019 13:29:23 +0000 (15:29 +0200)] 
tests: prf-early.sh: use the static flag of datefudge

This eliminates unexpected failures of the test in slower systems.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agotlsfuzzer: reverted accidental move to incorrect version
Nikos Mavrogiannopoulos [Thu, 23 May 2019 13:41:19 +0000 (15:41 +0200)] 
tlsfuzzer: reverted accidental move to incorrect version

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoNEWS: doc update
Nikos Mavrogiannopoulos [Thu, 23 May 2019 09:44:12 +0000 (11:44 +0200)] 
NEWS: doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agobumped version
Nikos Mavrogiannopoulos [Thu, 23 May 2019 09:41:45 +0000 (11:41 +0200)] 
bumped version

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoPass down Q for FFDHE in al pre TLS1.3 as well
Simo Sorce [Wed, 22 May 2019 19:08:45 +0000 (15:08 -0400)] 
Pass down Q for FFDHE in al pre TLS1.3 as well

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoCheck Q for FFDHE primes in prime-check
Simo Sorce [Tue, 21 May 2019 13:40:01 +0000 (09:40 -0400)] 
Check Q for FFDHE primes in prime-check

These are mersenne primes so q = (p - 1) / 2
We check that p = (q * 2) + 1

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoAlways pass in and check Q in TLS 1.3
Simo Sorce [Mon, 20 May 2019 21:13:12 +0000 (17:13 -0400)] 
Always pass in and check Q in TLS 1.3

In FIPS mode do an extra check that we did have Q, but it is always
passed into the tls13 derive function from the callers.

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoAdd plumbing to handle Q parameter in DH exchanges
Simo Sorce [Fri, 17 May 2019 18:05:37 +0000 (14:05 -0400)] 
Add plumbing to handle Q parameter in DH exchanges

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoAdd test to ensure ECDH exchange behaves correctly
Simo Sorce [Tue, 14 May 2019 22:38:33 +0000 (18:38 -0400)] 
Add test to ensure ECDH exchange behaves correctly

This test ensures that public keys are properly tested for validity
before a ECDH exchange is computed.

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoAdd test to ensure DH exchange behaves correctly
Simo Sorce [Fri, 10 May 2019 18:49:05 +0000 (14:49 -0400)] 
Add test to ensure DH exchange behaves correctly

This test ensures that public keys are properly tested for validity
before a DH exchange is computed.

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoAdd Full Public Key Check for DH
Simo Sorce [Fri, 3 May 2019 16:32:56 +0000 (12:32 -0400)] 
Add Full Public Key Check for DH

This is for NIST SP800-56A requirements and FIPS CAVS testing.
GnuTLS never passes in a non-empty Q for normal operations, but tests will
and if Q is passed in it needs to be checked.

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoFix Copy&Paste error
Simo Sorce [Wed, 1 May 2019 14:57:51 +0000 (10:57 -0400)] 
Fix Copy&Paste error

Signed-off-by: Simo Sorce <simo@redhat.com>
7 years agoMerge branch 'tmp-keyupdate-fixes' into 'master'
Nikos Mavrogiannopoulos [Thu, 23 May 2019 09:05:26 +0000 (09:05 +0000)] 
Merge branch 'tmp-keyupdate-fixes' into 'master'

Fix handling of malformed KeyUpdate messages

Closes #699

See merge request gnutls/gnutls!1005

7 years agoMerge branch 'tmp-small-records' into 'master'
Daiki Ueno [Thu, 23 May 2019 08:20:23 +0000 (08:20 +0000)] 
Merge branch 'tmp-small-records' into 'master'

priority: add new option to allow small records (>= 64)

See merge request gnutls/gnutls!1006

7 years agoMerge branch 'tmp-remove-unused-flag' into 'master'
Nikos Mavrogiannopoulos [Thu, 23 May 2019 04:11:12 +0000 (04:11 +0000)] 
Merge branch 'tmp-remove-unused-flag' into 'master'

pubkey: remove deprecated OLD_PUBKEY_VERIFY_FLAG_TLS1_RSA

Closes #754

See merge request gnutls/gnutls!1004

7 years agotls13/key_update: increase handling limit from 1 to 8
Daiki Ueno [Wed, 22 May 2019 08:39:27 +0000 (10:39 +0200)] 
tls13/key_update: increase handling limit from 1 to 8

The limit was too small when testing the capability of handling
multiple KeyUpdate messages with tlsfuzzer.

This requires a change in the rate limit logic, as previously it
doesn't count the KeyUpdate messages despite the name of
KEY_UPDATES_PER_SEC.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoMerge branch 'tmp-privkey-tls13' into 'master'
Daiki Ueno [Wed, 22 May 2019 10:16:52 +0000 (10:16 +0000)] 
Merge branch 'tmp-privkey-tls13' into 'master'

server auth: disable TLS 1.3 if no signature algorithm is usable

Closes #731

See merge request gnutls/gnutls!987

7 years agotlsfuzzer: use %ALLOW_SMALL_RECORDS for testing
Daiki Ueno [Wed, 22 May 2019 09:51:57 +0000 (11:51 +0200)] 
tlsfuzzer: use %ALLOW_SMALL_RECORDS for testing

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agopriority: add new option to allow small records (>= 64)
Daiki Ueno [Wed, 22 May 2019 09:16:03 +0000 (11:16 +0200)] 
priority: add new option to allow small records (>= 64)

There is a mismatch in the lower limit of record sizes in RFC
8449 (64) and our default (512).  If the server advertises a smaller
limit than our default, the client has no way to keep communicating
with the server.

This patch adds a new priority string option %ALLOW_SMALL_RECORDS to
set the limit to 64.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agorecord_add_to_buffers: check if there is an incomplete handshake header
Daiki Ueno [Tue, 21 May 2019 06:32:21 +0000 (08:32 +0200)] 
record_add_to_buffers: check if there is an incomplete handshake header

The function checks if a Handshake message is interleaved with an
Application Data, but the check was insuffient because it assumed that
a complete header is received in the buffer.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoalgorithms: eliminate the FFDHE alert desc requirement
Daiki Ueno [Fri, 17 May 2019 09:51:00 +0000 (11:51 +0200)] 
algorithms: eliminate the FFDHE alert desc requirement

This implements the errata for RFC 7919 eliminating the requirement to
reply with an insufficient_security alert when we have negotiated an
FFDHE group, but cannot find common ciphersuite:
https://www.rfc-editor.org/errata/eid4908

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoMerge branch 'mark_const' into 'master'
Tim Rühsen [Tue, 21 May 2019 19:52:08 +0000 (19:52 +0000)] 
Merge branch 'mark_const' into 'master'

Mark second argument of function gnutls_x509_crt_equals2 as const

See merge request gnutls/gnutls!1000

7 years agoMark second argument of function gnutls_x509_crt_equals2 as const
Aleksei Nikiforov [Fri, 17 May 2019 11:44:06 +0000 (14:44 +0300)] 
Mark second argument of function gnutls_x509_crt_equals2 as const

This will allow using this function with certificates
returned by function gnutls_certificate_get_peers
without casts dropping const qualifier or
making temporary copies out of retrieved data.

Signed-off-by: Aleksei Nikiforov <darktemplar@basealt.ru>
7 years agotests: verify functionality of GNUTLS_VERIFY_DISABLE_CA_SIGN flag
Nikos Mavrogiannopoulos [Tue, 21 May 2019 06:22:08 +0000 (08:22 +0200)] 
tests: verify functionality of GNUTLS_VERIFY_DISABLE_CA_SIGN flag

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agopubkey: remove deprecated TLS1_RSA flag check
Kenneth J. Miller [Mon, 15 Apr 2019 15:56:13 +0000 (17:56 +0200)] 
pubkey: remove deprecated TLS1_RSA flag check

The gnutls_certificate_verify_flags comparisons against
OLD_PUBKEY_VERIFY_FLAG_TLS1_RSA conflicts with
GNUTLS_VERIFY_DISABLE_CA_SIGN and no longer seems to be used in calls to
both gnutls_pubkey_verify_data2 and gnutls_pubkey_verify_hash2 as it
seems to have been fully replaced by GNUTLS_VERIFY_USE_TLS1_RSA.

Resolves: #754

Signed-off-by: Kenneth J. Miller <ken@miller.ec>
7 years agox509.h: corrected typo in newly introduced definition
Nikos Mavrogiannopoulos [Tue, 21 May 2019 03:54:35 +0000 (05:54 +0200)] 
x509.h: corrected typo in newly introduced definition

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-minor-fixes' into 'master'
Nikos Mavrogiannopoulos [Tue, 21 May 2019 03:48:38 +0000 (03:48 +0000)] 
Merge branch 'tmp-minor-fixes' into 'master'

Few minor bug fixes for the next release

Closes #770 and #767

See merge request gnutls/gnutls!1003

7 years agox509.h: removed stray '%'
Nikos Mavrogiannopoulos [Mon, 20 May 2019 19:34:30 +0000 (21:34 +0200)] 
x509.h: removed stray '%'

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agocerttool: CA certificates will contain the digital signature key usage flag
Nikos Mavrogiannopoulos [Mon, 20 May 2019 14:13:12 +0000 (16:13 +0200)] 
certtool: CA certificates will contain the digital signature key usage flag

This change ensures that all certificates will contain the digital
signature key usage flag if that's specified in the template.

Resolves: #767

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoAdded profile to correspond to the future security parameter
Nikos Mavrogiannopoulos [Mon, 20 May 2019 12:40:31 +0000 (14:40 +0200)] 
Added profile to correspond to the future security parameter

It seems that the FUTURE security level parameter was added
without a corresponding verification profile. This patch address
the issue by introducing it.

Resolves: #770

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agotests: added unit tests of utc and generalTime convertor
Nikos Mavrogiannopoulos [Mon, 20 May 2019 13:47:41 +0000 (15:47 +0200)] 
tests: added unit tests of utc and generalTime convertor

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoserver auth: disable TLS 1.3 if no signature algorithm is usable
Daiki Ueno [Mon, 29 Apr 2019 17:03:55 +0000 (19:03 +0200)] 
server auth: disable TLS 1.3 if no signature algorithm is usable

This is a server side counterpart of
005a4d04145707daad9588acedfdb5f6cd97c80c.

Instead of signalling an error when no algorithm is usable in TLS 1.3,
it downgrades the session to TLS 1.2 with a warning.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoalgorithms/secparams.c: fixed indentation
Nikos Mavrogiannopoulos [Sat, 18 May 2019 19:13:10 +0000 (21:13 +0200)] 
algorithms/secparams.c: fixed indentation

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agognutls-serv: GERR macro will output in stderr
Nikos Mavrogiannopoulos [Mon, 20 May 2019 12:34:56 +0000 (14:34 +0200)] 
gnutls-serv: GERR macro will output in stderr

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
7 years agoMerge branch 'tmp-fix-evil-idna' into 'master'
Tim Rühsen [Mon, 20 May 2019 12:30:50 +0000 (12:30 +0000)] 
Merge branch 'tmp-fix-evil-idna' into 'master'

Apply STD3 ASCII rules in gnutls_idna_map()

Closes #720

See merge request gnutls/gnutls!1001

7 years agoApply STD3 ASCII rules in gnutls_idna_map() 1001/head
Tim Rühsen [Mon, 20 May 2019 09:10:11 +0000 (11:10 +0200)] 
Apply STD3 ASCII rules in gnutls_idna_map()

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-fix-gcc4.4' into 'master'
Tim Rühsen [Fri, 17 May 2019 14:59:08 +0000 (14:59 +0000)] 
Merge branch 'tmp-fix-gcc4.4' into 'master'

Tmp fix gcc4.4

See merge request gnutls/gnutls!996

7 years agoFix _Thread_local for C99 installed in C11 environments
Tim Rühsen [Fri, 10 May 2019 09:42:46 +0000 (11:42 +0200)] 
Fix _Thread_local for C99 installed in C11 environments

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoRemove redundant typedef of Tspi_Context_GetTpmObject_func()
Tim Rühsen [Fri, 10 May 2019 09:27:32 +0000 (11:27 +0200)] 
Remove redundant typedef of Tspi_Context_GetTpmObject_func()

Gcc 4.4 errors out on this.

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-update-gnulib' into 'master'
Tim Rühsen [Thu, 16 May 2019 07:32:09 +0000 (07:32 +0000)] 
Merge branch 'tmp-update-gnulib' into 'master'

Update gnulib for gcc-9 manywarnings

Closes #768

See merge request gnutls/gnutls!999

7 years agoUpdate gnulib for gcc-9 manywarnings
Tim Rühsen [Wed, 15 May 2019 07:47:24 +0000 (09:47 +0200)] 
Update gnulib for gcc-9 manywarnings

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoMerge branch 'tmp-check-allocations' into 'master'
Nikos Mavrogiannopoulos [Wed, 15 May 2019 04:52:35 +0000 (04:52 +0000)] 
Merge branch 'tmp-check-allocations' into 'master'

Check all memory allocation in examples and certtool

Closes #739

See merge request gnutls/gnutls!998

7 years agoMerge branch 'tmp-fix-GETPORT' into 'master'
Tim Rühsen [Tue, 14 May 2019 20:40:47 +0000 (20:40 +0000)] 
Merge branch 'tmp-fix-GETPORT' into 'master'

Fix endless looping GETPORT in tests/scripts/common.sh

See merge request gnutls/gnutls!997

7 years agoCheck all memory allocation in examples and certtool
Nikos Mavrogiannopoulos [Tue, 14 May 2019 19:39:46 +0000 (21:39 +0200)] 
Check all memory allocation in examples and certtool

Resolves: #739

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-record-sizes' into 'master'
Daiki Ueno [Tue, 14 May 2019 06:05:16 +0000 (06:05 +0000)] 
Merge branch 'tmp-record-sizes' into 'master'

ext/record_size_limit: distinguish sending and receiving limits

See merge request gnutls/gnutls!985

7 years agoext/record_size_limit: distinguish sending and receiving limits
Daiki Ueno [Thu, 25 Apr 2019 15:08:43 +0000 (17:08 +0200)] 
ext/record_size_limit: distinguish sending and receiving limits

The previous behavior was that both sending and receiving limits are
negotiated to be the same value.  It was problematic when:

- client sends a record_size_limit with a large value in CH
- server sends a record_size_limit with a smaller value in EE
- client updates the limit for both sending and receiving, upon
  receiving EE
- server sends a Certificate message larger than the limit

With this patch, each peer maintains the sending / receiving limits
separately so not to confuse with the contradicting settings.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
7 years agoMerge branch 'fix-streebog' into 'master'
Dmitry Eremin-Solenikov [Mon, 13 May 2019 18:44:35 +0000 (18:44 +0000)] 
Merge branch 'fix-streebog' into 'master'

lib/nettle: fix carry flag in Streebog code

See merge request gnutls/gnutls!992

7 years agolib/nettle: fix carry flag in Streebog code
Dmitry Eremin-Solenikov [Tue, 7 May 2019 11:49:05 +0000 (14:49 +0300)] 
lib/nettle: fix carry flag in Streebog code

Fix carry flag being calculated incorrectly in Streebog code.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
7 years agoMerge branch 'tmp-lgtm-suppress-ctime' into 'master'
Nikos Mavrogiannopoulos [Fri, 10 May 2019 17:22:51 +0000 (17:22 +0000)] 
Merge branch 'tmp-lgtm-suppress-ctime' into 'master'

tools: suppress ctime() error from lgtm warnings

See merge request gnutls/gnutls!994

7 years agoMerge branch 'tmp-fix-srp' into 'master'
Nikos Mavrogiannopoulos [Fri, 10 May 2019 12:51:48 +0000 (12:51 +0000)] 
Merge branch 'tmp-fix-srp' into 'master'

_gnutls_srp_entry_free: follow consistent behavior in freeing data

Closes #761

See merge request gnutls/gnutls!995

7 years agoFix endless looping GETPORT in tests/scripts/common.sh
Tim Rühsen [Fri, 10 May 2019 11:31:23 +0000 (13:31 +0200)] 
Fix endless looping GETPORT in tests/scripts/common.sh

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years ago_gnutls_srp_entry_free: follow consistent behavior in freeing data
Nikos Mavrogiannopoulos [Fri, 10 May 2019 04:30:12 +0000 (06:30 +0200)] 
_gnutls_srp_entry_free: follow consistent behavior in freeing data

_gnutls_srp_entry_free would previously not free any parameters that
were known to gnutls to account for documented behavior of
gnutls_srp_set_server_credentials_function(). This was not updated
when the newly added 8192 parameter was added to the library.

This introduces a safety check for generator parameters, even though
in practice they are the same pointer.

Resolves: #761

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agodane.h: added multiple inclusion header guard
Nikos Mavrogiannopoulos [Wed, 8 May 2019 20:08:18 +0000 (22:08 +0200)] 
dane.h: added multiple inclusion header guard

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agotools: suppress ctime() error from static analysers
Nikos Mavrogiannopoulos [Wed, 8 May 2019 19:52:54 +0000 (21:52 +0200)] 
tools: suppress ctime() error from static analysers

This function is not thread safe and can be easily misused
even in single threaded scenarios (one such minor bug fixed).

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'fix-guile-option' into 'master'
Tim Rühsen [Thu, 9 May 2019 08:50:26 +0000 (08:50 +0000)] 
Merge branch 'fix-guile-option' into 'master'

guile: Properly format guile configure options

See merge request gnutls/gnutls!991

7 years agoaccelerated: added header guards
Nikos Mavrogiannopoulos [Wed, 8 May 2019 20:05:10 +0000 (22:05 +0200)] 
accelerated: added header guards

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agoMerge branch 'tmp-header-guards' into 'master'
Tim Rühsen [Wed, 8 May 2019 07:46:40 +0000 (07:46 +0000)] 
Merge branch 'tmp-header-guards' into 'master'

Add or clean header guards in lib/

Closes #728

See merge request gnutls/gnutls!954

7 years agoAdd or clean header guards in lib/includes/gnutls/
Tim Rühsen [Sun, 28 Apr 2019 09:11:23 +0000 (11:11 +0200)] 
Add or clean header guards in lib/includes/gnutls/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in lib/nettle
Tim Rühsen [Wed, 1 May 2019 18:33:28 +0000 (20:33 +0200)] 
Add or clean header guards in lib/nettle

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in tests/
Tim Rühsen [Sun, 28 Apr 2019 10:22:59 +0000 (12:22 +0200)] 
Add or clean header guards in tests/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in src/
Tim Rühsen [Sun, 28 Apr 2019 10:19:01 +0000 (12:19 +0200)] 
Add or clean header guards in src/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in lib/x509/
Tim Rühsen [Sun, 28 Apr 2019 10:11:13 +0000 (12:11 +0200)] 
Add or clean header guards in lib/x509/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in lib/tls13/
Tim Rühsen [Sun, 28 Apr 2019 10:08:27 +0000 (12:08 +0200)] 
Add or clean header guards in lib/tls13/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in lib/extras/
Tim Rühsen [Sun, 28 Apr 2019 10:05:32 +0000 (12:05 +0200)] 
Add or clean header guards in lib/extras/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in lib/ext/
Tim Rühsen [Sun, 28 Apr 2019 10:03:07 +0000 (12:03 +0200)] 
Add or clean header guards in lib/ext/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in lib/auth/
Tim Rühsen [Sun, 28 Apr 2019 09:55:37 +0000 (11:55 +0200)] 
Add or clean header guards in lib/auth/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd or clean header guards in lib/
Tim Rühsen [Thu, 14 Mar 2019 20:21:50 +0000 (21:21 +0100)] 
Add or clean header guards in lib/

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoAdd 'Header guards' section in CONTRIBUTING.md
Tim Rühsen [Wed, 24 Apr 2019 19:21:12 +0000 (21:21 +0200)] 
Add 'Header guards' section in CONTRIBUTING.md

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
7 years agoguile: Properly format guile configure options
Daniel Schaefer [Sun, 5 May 2019 12:35:02 +0000 (14:35 +0200)] 
guile: Properly format guile configure options

Without the square brackets autoconf turns hyphens into underscores,
which is not what we want or what the help says.

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
7 years agognutls_sign_list: document the non-thread-safeness
Nikos Mavrogiannopoulos [Fri, 3 May 2019 17:10:03 +0000 (19:10 +0200)] 
gnutls_sign_list: document the non-thread-safeness

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
7 years agocrypto: add private API to retrieve internal IV
Daiki Ueno [Tue, 30 Apr 2019 12:42:51 +0000 (14:42 +0200)] 
crypto: add private API to retrieve internal IV

For FIPS validation purposes, this adds a new function
_gnutls_cipher_get_iv() that exposes internal IV after encryption and
decryption.  The function is not generally useful because the IV value
can be easily calculated from the initial IV and the subsequent
ciphertext but for FIPS validation purposes.

Signed-off-by: Daiki Ueno <dueno@redhat.com>