]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
8 years agotests: ip-utils: added include for FreeBSD compilation
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 15:05:57 +0000 (17:05 +0200)] 
tests: ip-utils: added include for FreeBSD compilation

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years ago.gitlab-ci.yml: enable more cppcheck tests
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 12:12:20 +0000 (14:12 +0200)] 
.gitlab-ci.yml: enable more cppcheck tests

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: updated tlsfuzzer to reduce rsa-pss failures
Nikos Mavrogiannopoulos [Fri, 8 Sep 2017 10:15:47 +0000 (12:15 +0200)] 
tests: updated tlsfuzzer to reduce rsa-pss failures

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agocrq: doc update
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 13:51:57 +0000 (15:51 +0200)] 
crq: doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: added unit test for gnutls_x509_crq_sign
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 07:31:30 +0000 (09:31 +0200)] 
tests: added unit test for gnutls_x509_crq_sign

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: added verification checks into crl_apis
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 07:11:06 +0000 (09:11 +0200)] 
tests: added verification checks into crl_apis

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_x509_crl_verify: check next update field for presence
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 07:10:20 +0000 (09:10 +0200)] 
gnutls_x509_crl_verify: check next update field for presence

If not present do not attempt to utilize its value.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: added verification check into crt_apis
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 06:33:24 +0000 (08:33 +0200)] 
tests: added verification check into crt_apis

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: added unit test for gnutls_x509_crt_sign
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 06:30:13 +0000 (08:30 +0200)] 
tests: added unit test for gnutls_x509_crt_sign

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodoc update
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 06:24:41 +0000 (08:24 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_x509_crq_sign: undeprecate
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 07:23:28 +0000 (09:23 +0200)] 
gnutls_x509_crq_sign: undeprecate

After the updates of the function semantics, it is no longer
needed to deprecate it.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_x509_crl_sign: undeprecate
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 07:13:54 +0000 (09:13 +0200)] 
gnutls_x509_crl_sign: undeprecate

After the updates of the function semantics, it is no longer
needed to deprecate it.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_x509_crq_sign: no longer sign with SHA1
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 07:21:16 +0000 (09:21 +0200)] 
gnutls_x509_crq_sign: no longer sign with SHA1

Modify the behavior of the functions to sign with an appropriate
to the public key hash algorithm. That although it modifies the
semantics of the functions, it allows them to be useful even after
SHA1 is considered insecure.

In addition to that, the functions which accept a hash algorithm, will
accept a null hash, which instructs the function to select a
reasonable choice.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_x509_*_sign: no longer sign with SHA1
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 06:21:47 +0000 (08:21 +0200)] 
gnutls_x509_*_sign: no longer sign with SHA1

Modify the behavior of the functions to sign with an appropriate
to the public key hash algorithm. That although it modifies the
semantics of the functions, it allows them to be useful even after
SHA1 is considered insecure.

In addition to that, the functions which accept a hash algorithm, will
accept a null hash, which instructs the function to select a
reasonable choice.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodoc: document the change of gnutls_x509_crt_sign
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 06:12:05 +0000 (08:12 +0200)] 
doc: document the change of gnutls_x509_crt_sign

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: tolerate leaks in opensc-pkcs11 when present 501/head
Nikos Mavrogiannopoulos [Fri, 8 Sep 2017 06:31:42 +0000 (08:31 +0200)] 
tests: tolerate leaks in opensc-pkcs11 when present

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodoc update
Nikos Mavrogiannopoulos [Thu, 7 Sep 2017 06:08:12 +0000 (08:08 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: added reproducer for safe renegotiation failure with openssl
Nikos Mavrogiannopoulos [Wed, 6 Sep 2017 12:51:59 +0000 (14:51 +0200)] 
tests: added reproducer for safe renegotiation failure with openssl

Relates #259

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agohandshake: check SCSVs prior to resuming a session
Nikos Mavrogiannopoulos [Wed, 6 Sep 2017 13:11:00 +0000 (15:11 +0200)] 
handshake: check SCSVs prior to resuming a session

This ensures that extensions which are also available as SCSVs
are parsed prior to resuming a session. This resolves an issue
with openssl sending SCSV instead of an extension for the safe
renegotiation.

Relates #259

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoUse $(LIBDL) instead of hardcoding -ldl. 503/head
Thomas Klausner [Wed, 6 Sep 2017 17:16:30 +0000 (19:16 +0200)] 
Use $(LIBDL) instead of hardcoding -ldl.

8 years agocmocka: require 1.0.1 500/head
Nikos Mavrogiannopoulos [Wed, 6 Sep 2017 12:34:20 +0000 (14:34 +0200)] 
cmocka: require 1.0.1

This prevents failures in test suite due to insufficient cmocka
library version.

Resolves #268

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotlslite-ng: updated to latest version
Nikos Mavrogiannopoulos [Wed, 6 Sep 2017 07:46:05 +0000 (09:46 +0200)] 
tlslite-ng: updated to latest version

This addresses issues with RSA-PSS signing.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agocli-debug-args.def: Fix typo
Avinash Sonawane [Thu, 31 Aug 2017 12:35:04 +0000 (18:05 +0530)] 
cli-debug-args.def: Fix typo

Signed-off-by: Avinash Sonawane <rootkea@gmail.com>
8 years agolatex: handle the deprecated function mark [ci skip]
Nikos Mavrogiannopoulos [Tue, 29 Aug 2017 13:38:49 +0000 (15:38 +0200)] 
latex: handle the deprecated function mark [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.gitlab-ci.yml: give more specific name to windows job artifacts [ci skip]
Nikos Mavrogiannopoulos [Tue, 29 Aug 2017 11:56:58 +0000 (13:56 +0200)] 
.gitlab-ci.yml: give more specific name to windows job artifacts [ci skip]

This allows a more descriptive name to any downloaded artifacts.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotools: removed re-using PIN message when in non-verbose mode
Nikos Mavrogiannopoulos [Mon, 28 Aug 2017 13:16:58 +0000 (15:16 +0200)] 
tools: removed re-using PIN message when in non-verbose mode

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agop11tool: print public or private key algorithm
Nikos Mavrogiannopoulos [Mon, 28 Aug 2017 10:57:38 +0000 (12:57 +0200)] 
p11tool: print public or private key algorithm

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_pkcs11_privkey_generate3: doc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 28 Aug 2017 12:20:36 +0000 (14:20 +0200)] 
gnutls_pkcs11_privkey_generate3: doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: check whether generated private keys are marked private
Nikos Mavrogiannopoulos [Sat, 26 Aug 2017 15:27:09 +0000 (17:27 +0200)] 
tests: check whether generated private keys are marked private

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: added unit test of p11tool with --set-pin
Nikos Mavrogiannopoulos [Sat, 26 Aug 2017 15:16:26 +0000 (17:16 +0200)] 
tests: added unit test of p11tool with --set-pin

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: check whether generated or copied keys are marked as sensitive
Nikos Mavrogiannopoulos [Sat, 26 Aug 2017 15:02:28 +0000 (17:02 +0200)] 
tests: check whether generated or copied keys are marked as sensitive

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoupdated auto-generated files
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 13:58:14 +0000 (15:58 +0200)] 
updated auto-generated files

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agop11tool: allow obtaining PIN from command line on operations
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 13:56:49 +0000 (15:56 +0200)] 
p11tool: allow obtaining PIN from command line on operations

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agocerttool: eliminate global use of default_dig
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 12:49:33 +0000 (14:49 +0200)] 
certtool: eliminate global use of default_dig

Use instead the cinfo->hash field which is already used
by p11tool.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: krb5-test: disable valgrind mem leak checks for negative checks
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 10:01:37 +0000 (12:01 +0200)] 
tests: krb5-test: disable valgrind mem leak checks for negative checks

Resolves #192

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodoc update
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 09:47:28 +0000 (11:47 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: check whether p11tool signing with RSA-PSS works
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 09:41:47 +0000 (11:41 +0200)] 
tests: check whether p11tool signing with RSA-PSS works

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agop11tool: allow signing with RSA-PSS and specifying an explicit hash
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 08:53:51 +0000 (10:53 +0200)] 
p11tool: allow signing with RSA-PSS and specifying an explicit hash

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agosign_params_to_flags: moved to certtool-common.c
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 08:41:27 +0000 (10:41 +0200)] 
sign_params_to_flags: moved to certtool-common.c

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agocerttool: hash_to_id moved to certtool-common.c
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 08:33:27 +0000 (10:33 +0200)] 
certtool: hash_to_id moved to certtool-common.c

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoFix some typos [ci skip]
Andreas Metzler [Sat, 26 Aug 2017 15:49:28 +0000 (17:49 +0200)] 
Fix some typos [ci skip]

occurence -> occurrence
sucessful -> successful

Signed-off-by: Andreas Metzler <ametzler@bebt.de>
8 years agoFixed segmentation faults caused by accessing NULL pointers during mutex operations...
Tom Vrancken [Fri, 25 Aug 2017 17:54:58 +0000 (19:54 +0200)] 
Fixed segmentation faults caused by accessing NULL pointers during mutex operations. This bug was triggered while setting priorities.

Signed-off-by: Tom Vrancken <email@tomvrancken.nl>
8 years agop11tool: explicitly mark generated keys as sensitive
Nikos Mavrogiannopoulos [Fri, 25 Aug 2017 14:15:24 +0000 (16:15 +0200)] 
p11tool: explicitly mark generated keys as sensitive

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: windows: warning: function declaration isn't a prototype
Alon Bar-Lev [Fri, 25 Aug 2017 21:16:03 +0000 (00:16 +0300)] 
tests: windows: warning: function declaration isn't a prototype

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
8 years agotests: warning: implicit declaration of function
Alon Bar-Lev [Fri, 25 Aug 2017 20:45:44 +0000 (23:45 +0300)] 
tests: warning: implicit declaration of function

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
8 years agom4: updated ax_code_coverage.m4 [ci skip]
Nikos Mavrogiannopoulos [Thu, 24 Aug 2017 15:03:17 +0000 (17:03 +0200)] 
m4: updated ax_code_coverage.m4 [ci skip]

This version fixes a bug which prevented including the branch coverage
into output.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agofuzzer: Enhance code coverage of gnutls_base64_encoder_fuzzer
Tim Rühsen [Mon, 21 Aug 2017 13:19:25 +0000 (15:19 +0200)] 
fuzzer: Enhance code coverage of gnutls_base64_encoder_fuzzer

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years agofuzzer: Add script 'view-coverage'
Tim Rühsen [Mon, 21 Aug 2017 13:16:55 +0000 (15:16 +0200)] 
fuzzer: Add script 'view-coverage'

This helper script is for viewing the code coverage of
single (or combined) fuzzers running with all his corpora.

It helps optimizing the code coverage by hand-crafting corpora
and/or dictionaries.

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years agofuzzer: Change CFLAGS -O0 to -O1 in fuzz/README.md
Tim Rühsen [Mon, 21 Aug 2017 12:22:58 +0000 (14:22 +0200)] 
fuzzer: Change CFLAGS -O0 to -O1 in fuzz/README.md

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years agofuzzer: Update corpora from oss-fuzz
Tim Rühsen [Mon, 21 Aug 2017 12:20:54 +0000 (14:20 +0200)] 
fuzzer: Update corpora from oss-fuzz

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years agotlslite: updated to latest version
Nikos Mavrogiannopoulos [Thu, 24 Aug 2017 13:29:19 +0000 (15:29 +0200)] 
tlslite: updated to latest version

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agocerttool: do not ask about RSA encryption in non-RSA keys
Nikos Mavrogiannopoulos [Wed, 23 Aug 2017 08:20:05 +0000 (10:20 +0200)] 
certtool: do not ask about RSA encryption in non-RSA keys

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agofuzz: work-around libtool file name
Nikos Mavrogiannopoulos [Tue, 22 Aug 2017 14:17:54 +0000 (16:17 +0200)] 
fuzz: work-around libtool file name

fuzzers utilize argv[0] to discover the name the reproducers are stored
in. However libtool creates a script which later runs the executable.
Try to detect that situation and use the right paths.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodh params: document DH param setting functions as deprecated
Nikos Mavrogiannopoulos [Tue, 22 Aug 2017 06:48:03 +0000 (08:48 +0200)] 
dh params: document DH param setting functions as deprecated

They are no longer useful after the RFC7919 DH parameter negotiation.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: introduced unit test of gnutls_memset()
Nikos Mavrogiannopoulos [Tue, 15 Aug 2017 08:03:54 +0000 (10:03 +0200)] 
tests: introduced unit test of gnutls_memset()

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agofuzz: removed -static ldflag completely
Nikos Mavrogiannopoulos [Tue, 22 Aug 2017 05:27:03 +0000 (07:27 +0200)] 
fuzz: removed -static ldflag completely

It is not necessary for building the fuzzer, and was causing
issues in MacOSX systems.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.gitlab-ci.yml: use the same flags in the tags and non-tags windows builds gnutls_3_6_0_1
Nikos Mavrogiannopoulos [Mon, 21 Aug 2017 07:47:59 +0000 (09:47 +0200)] 
.gitlab-ci.yml: use the same flags in the tags and non-tags windows builds

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: p11-kit-trust is not compiled in windows
Nikos Mavrogiannopoulos [Mon, 21 Aug 2017 07:46:07 +0000 (09:46 +0200)] 
tests: p11-kit-trust is not compiled in windows

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agofuzz: temporarily disable -static build of fuzz/ in MacOSX gnutls_3_6_0
Nikos Mavrogiannopoulos [Mon, 21 Aug 2017 06:35:07 +0000 (08:35 +0200)] 
fuzz: temporarily disable -static build of fuzz/ in MacOSX

This allows running the MacOSX CI tests on travis.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agodoc update
Nikos Mavrogiannopoulos [Mon, 21 Aug 2017 06:26:57 +0000 (08:26 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: verify the output size of gnutls_x509_privkey_export
Nikos Mavrogiannopoulos [Mon, 21 Aug 2017 05:56:58 +0000 (07:56 +0200)] 
tests: verify the output size of gnutls_x509_privkey_export

That is, make sure that gnutls_x509_privkey_export() and
gnutls_x509_privkey_export2() agrees with the strlen()
value on the data.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years ago.travis.yml: print failed log files in fuzz after failure
Nikos Mavrogiannopoulos [Sun, 20 Aug 2017 18:46:31 +0000 (20:46 +0200)] 
.travis.yml: print failed log files in fuzz after failure

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agohooks.m4: reduce the gap between minor soversion of 3.5.x and 3.6.0
Nikos Mavrogiannopoulos [Sun, 20 Aug 2017 17:43:52 +0000 (19:43 +0200)] 
hooks.m4: reduce the gap between minor soversion of 3.5.x and 3.6.0

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: make mini-record more friendly for OSes with limited buffers
Nikos Mavrogiannopoulos [Sun, 20 Aug 2017 07:24:19 +0000 (09:24 +0200)] 
tests: make mini-record more friendly for OSes with limited buffers

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agopull/push backends: ECONNRESET is translated to GNUTLS_E_PREMATURE_TERMINATION
Nikos Mavrogiannopoulos [Sun, 20 Aug 2017 07:18:05 +0000 (09:18 +0200)] 
pull/push backends: ECONNRESET is translated to GNUTLS_E_PREMATURE_TERMINATION

This returns a more reasonable error code on platforms where
this errno is set.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agotests: gnutls_x509_privkey_import: address issue on error path
Nikos Mavrogiannopoulos [Sun, 20 Aug 2017 07:05:02 +0000 (09:05 +0200)] 
tests: gnutls_x509_privkey_import: address issue on error path

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agosed: use it in a portable way in makefiles
Nikos Mavrogiannopoulos [Sat, 19 Aug 2017 22:18:44 +0000 (00:18 +0200)] 
sed: use it in a portable way in makefiles

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoconfigure: disable hardware acceleration on aarch64/ilp32 mode
Nikos Mavrogiannopoulos [Sat, 19 Aug 2017 21:33:46 +0000 (23:33 +0200)] 
configure: disable hardware acceleration on aarch64/ilp32 mode

Our included assembly code for aarch64 is not suitable for that
data mode.

Resolves #252

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agocreate_tls_random: avoid warning in fuzzying mode
Nikos Mavrogiannopoulos [Sat, 19 Aug 2017 11:39:28 +0000 (13:39 +0200)] 
create_tls_random: avoid warning in fuzzying mode

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agoconfigure.ac: removed conditional FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
Nikos Mavrogiannopoulos [Sat, 19 Aug 2017 06:58:37 +0000 (08:58 +0200)] 
configure.ac: removed conditional FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION

Instead rely only on the definition, to make fuzzying mode to be
enabled even if --enable-fuzzer-target is not specified, but defined
b the compiler.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agornd-fuzzer: use ifdef instead of conditional compilation
Nikos Mavrogiannopoulos [Sat, 19 Aug 2017 06:56:28 +0000 (08:56 +0200)] 
rnd-fuzzer: use ifdef instead of conditional compilation

This allows compiling in fuzzying mode even when --enable-fuzzer-target
is not specified on configure, but the definition is present.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agofuzzer: Update base64 fuzzers + corpora
Tim Rühsen [Fri, 18 Aug 2017 19:39:13 +0000 (21:39 +0200)] 
fuzzer: Update base64 fuzzers + corpora

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years agofuzzer: Fix include path in run-clang.sh [skip ci]
Tim Rühsen [Fri, 18 Aug 2017 19:32:28 +0000 (21:32 +0200)] 
fuzzer: Fix include path in run-clang.sh [skip ci]

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years agognutls_x509_privkey_export: use _gnutls_copy_string on PEM data
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 13:43:43 +0000 (15:43 +0200)] 
gnutls_x509_privkey_export: use _gnutls_copy_string on PEM data

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoCorrected argument names of functions to correspond to declaration
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 11:05:34 +0000 (13:05 +0200)] 
Corrected argument names of functions to correspond to declaration

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agolib: use casts and be explicit on intentional enumeration use
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 10:57:07 +0000 (12:57 +0200)] 
lib: use casts and be explicit on intentional enumeration use

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls-cli-debug: do not run non-FIPS cipher tests when in FIPS mode
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 11:56:04 +0000 (13:56 +0200)] 
gnutls-cli-debug: do not run non-FIPS cipher tests when in FIPS mode

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodoc update
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 10:52:20 +0000 (12:52 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodoc update
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 10:47:12 +0000 (12:47 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: added basic test for the operation of gnutls-cli-debug
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 09:51:53 +0000 (11:51 +0200)] 
tests: added basic test for the operation of gnutls-cli-debug

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: verify the presence of GNUTLS_SFLAGS_RFC7919 flag in server and client mode
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 09:44:55 +0000 (11:44 +0200)] 
tests: verify the presence of GNUTLS_SFLAGS_RFC7919 flag in server and client mode

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls-cli-debug: check whether RFC7919 is supported
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 09:34:46 +0000 (11:34 +0200)] 
gnutls-cli-debug: check whether RFC7919 is supported

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_session_get_flags: introduced GNUTLS_SFLAGS_RFC7919
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 09:31:52 +0000 (11:31 +0200)] 
gnutls_session_get_flags: introduced GNUTLS_SFLAGS_RFC7919

This allows checking whether the DHE parameters used were negotiated
using RFC7919.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls_auth_*: check cs parameter for validity prior to use
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 09:22:11 +0000 (11:22 +0200)] 
gnutls_auth_*: check cs parameter for validity prior to use

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agocerttool: simplified certificate PEM printing
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 09:16:50 +0000 (11:16 +0200)] 
certtool: simplified certificate PEM printing

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agognutls-cli: fixed bounds check on benchmark-tls
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 09:14:16 +0000 (11:14 +0200)] 
gnutls-cli: fixed bounds check on benchmark-tls

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agolib: removed legacy debugging code
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 08:44:21 +0000 (10:44 +0200)] 
lib: removed legacy debugging code

That code was code from the initial versions of gnutls. It was neither
used nor updated for long time.

Relates #248

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agofuzz: added missing files into dist [ci skip]
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 08:35:03 +0000 (10:35 +0200)] 
fuzz: added missing files into dist [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: added missing files in dist [ci skip]
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 08:06:36 +0000 (10:06 +0200)] 
tests: added missing files in dist [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: do not suppress stderr errors on servers startup
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 08:05:36 +0000 (10:05 +0200)] 
tests: do not suppress stderr errors on servers startup

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agodoc update
Nikos Mavrogiannopoulos [Thu, 17 Aug 2017 15:41:34 +0000 (17:41 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoabi-check: added check for 3.6.0 ABI compatibility
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 06:39:50 +0000 (08:39 +0200)] 
abi-check: added check for 3.6.0 ABI compatibility

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agognutls_x509_crl_get_issuer_dn: removed unnecessary const
Nikos Mavrogiannopoulos [Fri, 18 Aug 2017 06:38:48 +0000 (08:38 +0200)] 
gnutls_x509_crl_get_issuer_dn: removed unnecessary const

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 years agocerttool: fixed documentation of sign-params
Nikos Mavrogiannopoulos [Thu, 17 Aug 2017 09:27:24 +0000 (11:27 +0200)] 
certtool: fixed documentation of sign-params

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoREADME.md: mention lockfile-progs dependency
Nikos Mavrogiannopoulos [Thu, 17 Aug 2017 08:50:56 +0000 (10:50 +0200)] 
README.md: mention lockfile-progs dependency

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agotests: tls-neg-ext4-key: explicitly restrict to TLS 1.2, 1.1 and 1.0
Nikos Mavrogiannopoulos [Thu, 17 Aug 2017 08:02:47 +0000 (10:02 +0200)] 
tests: tls-neg-ext4-key: explicitly restrict to TLS 1.2, 1.1 and 1.0

This allows testing all signature types used in the protocol.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agosign APIs: introduce RSA-RAW signing algorithm
Nikos Mavrogiannopoulos [Thu, 17 Aug 2017 07:59:53 +0000 (09:59 +0200)] 
sign APIs: introduce RSA-RAW signing algorithm

This ensures that there is a signing algorithm for all the operations
we support. Previously, we required GNUTLS_SIGN_UNKNOWN to be acceptable
by signing functions to accomodate for raw RSA operations. Now we make
that explicit and in the process clean-up the API.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agoremoved devel/fuzz; functionality moved to fuzz/ [ci skip]
Nikos Mavrogiannopoulos [Thu, 17 Aug 2017 08:09:13 +0000 (10:09 +0200)] 
removed devel/fuzz; functionality moved to fuzz/ [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
8 years agofuzzer: Add 'make -C fuzz coverage' [ci skip]
Tim Rühsen [Fri, 11 Aug 2017 19:42:02 +0000 (21:42 +0200)] 
fuzzer: Add 'make -C fuzz coverage' [ci skip]

This reports how much code is covered by fuzzing.

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
8 years ago_gnutls_recv_server_certificate_status: use the same type in subtracted values
Nikos Mavrogiannopoulos [Mon, 14 Aug 2017 06:46:03 +0000 (08:46 +0200)] 
_gnutls_recv_server_certificate_status: use the same type in subtracted values

This ensures that there are no issues with subtracting those values.
Note that the second is read from an uint24_t and thus it is always
positive regardless its type.

Resolves #245

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>