]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agocrypto-api: refuse to run gnutls_cipher_init() in full AEAD modes
Nikos Mavrogiannopoulos [Mon, 22 May 2017 12:23:14 +0000 (14:23 +0200)] 
crypto-api: refuse to run gnutls_cipher_init() in full AEAD modes

That is, there are AEAD modes like CCM that can only be used through
the AEAD API. Always refuse calls to gnutls_cipher_init() in these
modes.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agodoc: corrected error in gnutls_x509_privkey_sign_data parameters [ci skip]
Nikos Mavrogiannopoulos [Mon, 22 May 2017 07:19:53 +0000 (09:19 +0200)] 
doc: corrected error in gnutls_x509_privkey_sign_data parameters [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agosysrng-linux: improved detection of getrandom()
Nikos Mavrogiannopoulos [Sat, 20 May 2017 18:41:30 +0000 (20:41 +0200)] 
sysrng-linux: improved detection of getrandom()

The getrandom() call is defined in sys/random.h.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agognutls-cli: use 16k buffers in --benchmark-tls-ciphers
Nikos Mavrogiannopoulos [Sat, 20 May 2017 18:34:40 +0000 (20:34 +0200)] 
gnutls-cli: use 16k buffers in --benchmark-tls-ciphers

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agognutls-cli: cleaned up --benchmark-ciphers output
Nikos Mavrogiannopoulos [Sat, 20 May 2017 18:31:33 +0000 (20:31 +0200)] 
gnutls-cli: cleaned up --benchmark-ciphers output

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agognutls-cli: no longer include arcfour in benchmarks
Nikos Mavrogiannopoulos [Sat, 20 May 2017 18:20:34 +0000 (20:20 +0200)] 
gnutls-cli: no longer include arcfour in benchmarks

This cipher is considered broken and no longer included in
the default set of ciphers.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agodocumented the make files-update make option
Nikos Mavrogiannopoulos [Sat, 20 May 2017 06:51:55 +0000 (08:51 +0200)] 
documented the make files-update make option

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoupdated auto-generated files
Nikos Mavrogiannopoulos [Sat, 20 May 2017 06:48:26 +0000 (08:48 +0200)] 
updated auto-generated files

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: added TLS server test for multi-key usage
Nikos Mavrogiannopoulos [Sat, 20 May 2017 06:26:47 +0000 (08:26 +0200)] 
tests: added TLS server test for multi-key usage

That is, a server which utilizes both RSA and ECDSA keys.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agop11tool: mark provider opts as deprecated
Nikos Mavrogiannopoulos [Sat, 20 May 2017 06:14:59 +0000 (08:14 +0200)] 
p11tool: mark provider opts as deprecated

That is, to avoid listing that option in p11tool --help, as it is
only useful for debugging very low level interfaces with PKCS#11
parameter passing.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agognutls-serv: allow user to specify multiple x509certile/x509keyfile
Dmitry Eremin-Solenikov [Fri, 19 May 2017 23:19:17 +0000 (02:19 +0300)] 
gnutls-serv: allow user to specify multiple x509certile/x509keyfile

Instead of adding more and more variants like x509dsakeyfile or
x509ecckeyfile (counting eddsa and gost in future), allow user to
specify x509certfile/x509keyfile multiple times. Keep the old
options as compatibility options.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoFix two memory leaks in debug output of gnutls tools
Dmitry Eremin-Solenikov [Thu, 18 May 2017 20:55:57 +0000 (23:55 +0300)] 
Fix two memory leaks in debug output of gnutls tools

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoDon't let GnuTLS headers in NETTLE_CFLAGS override local headers
Dmitry Eremin-Solenikov [Wed, 30 Nov 2016 04:13:09 +0000 (07:13 +0300)] 
Don't let GnuTLS headers in NETTLE_CFLAGS override local headers

Change order of CFLAGS so that local headers always come before ones in
$(NETTLE_CFLAGS).

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agofind_signer: eliminate memory leak
Nikos Mavrogiannopoulos [Fri, 12 May 2017 15:58:55 +0000 (17:58 +0200)] 
find_signer: eliminate memory leak

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: add test for signing with certificate list
Karl Tarbe [Mon, 8 May 2017 12:06:33 +0000 (15:06 +0300)] 
tests: add test for signing with certificate list

Signing with one certificate, but includes the other certificates
inside the PKCS#7 structure.

Signed-off-by: Karl Tarbe <karl.tarbe@cyber.ee>
9 years agocerttool: allow multiple certificates in --p7-sign
Karl Tarbe [Thu, 4 May 2017 13:46:14 +0000 (16:46 +0300)] 
certtool: allow multiple certificates in --p7-sign

Signed-off-by: Karl Tarbe <karl.tarbe@cyber.ee>
9 years agoFix autoconf progress message concerning heartbeat [ci skip]
Andreas Metzler [Sun, 14 May 2017 09:21:07 +0000 (11:21 +0200)] 
Fix autoconf progress message concerning heartbeat [ci skip]

9 years agodoc: corrected typo [ci skip]
Nikos Mavrogiannopoulos [Thu, 11 May 2017 20:03:08 +0000 (22:03 +0200)] 
doc: corrected typo [ci skip]

Reported by Andreas Metzler.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotest: corrected typo preventing the run of openpgp test [ci skip]
Nikos Mavrogiannopoulos [Thu, 11 May 2017 20:01:10 +0000 (22:01 +0200)] 
test: corrected typo preventing the run of openpgp test [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoupdated auto-generated files
Nikos Mavrogiannopoulos [Wed, 10 May 2017 15:43:32 +0000 (17:43 +0200)] 
updated auto-generated files

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agopkcs11_override_cert_exts: do not use CKA_X_DISTRUSTED flag when retrieving
Nikos Mavrogiannopoulos [Wed, 10 May 2017 15:23:54 +0000 (17:23 +0200)] 
pkcs11_override_cert_exts: do not use CKA_X_DISTRUSTED flag when retrieving

This flag was introduced in order for reducing the number of duplicate
stapled extensions returned by p11-kit. Unfortunately that fix was bogus
and in fact it resulted to p11-kit not returning any stapled extensions.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: added unit test for p11-kit trust store
Nikos Mavrogiannopoulos [Wed, 10 May 2017 15:08:11 +0000 (17:08 +0200)] 
tests: added unit test for p11-kit trust store

This verifies whether an Example Root CA can be read together
with its stapled extensions.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agop11tool: added the --provider-opts option
Nikos Mavrogiannopoulos [Wed, 10 May 2017 14:40:10 +0000 (16:40 +0200)] 
p11tool: added the --provider-opts option

This option allows passing parameters to the PKCS#11 module
loading process, i.e., passed to gnutls_pkcs11_add_provider().

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agopkcs11_add_provider: allow passing parameters to p11-kit trust module
Nikos Mavrogiannopoulos [Wed, 10 May 2017 14:34:25 +0000 (16:34 +0200)] 
pkcs11_add_provider: allow passing parameters to p11-kit trust module

When the @params argument of gnutls_pkcs11_add_provider() starts with
'p11-kit:' the specified provider is loaded as an unmanaged module
and the rest of parameters are being passed opaque to the module. This
allows loading for example the p11-kit trust module with a custom path
for the trust database.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: introduced checks in alternative chain discovery
Nikos Mavrogiannopoulos [Tue, 9 May 2017 20:03:45 +0000 (22:03 +0200)] 
tests: introduced checks in alternative chain discovery

These cope with alternative chain discovery in the case of insecure
algorithm found in the chain.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: modified pkcs1-pad to account for alt path search
Nikos Mavrogiannopoulos [Tue, 9 May 2017 19:24:36 +0000 (21:24 +0200)] 
tests: modified pkcs1-pad to account for alt path search

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agognutls_x509_trust_list_verify_crt2: treat signers with insecure algorithms as unknown
Nikos Mavrogiannopoulos [Mon, 8 May 2017 04:43:28 +0000 (06:43 +0200)] 
gnutls_x509_trust_list_verify_crt2: treat signers with insecure algorithms as unknown

The reason is that many servers utilize a legacy chain to improve compatibility
with old clients and that chain often contains insecure algorithm. In that case
try to construct alternative paths. To maintain compatibility with previous
versions, we ensure that the same error code (verification status) is returned
in these cases as before by sending the cached error if the alternative path fails
too.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoupdated auto-generated files
Nikos Mavrogiannopoulos [Tue, 9 May 2017 18:57:40 +0000 (20:57 +0200)] 
updated auto-generated files

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoMakefile: files-update directive will update the auto-generated files in src/
Nikos Mavrogiannopoulos [Tue, 9 May 2017 18:57:00 +0000 (20:57 +0200)] 
Makefile: files-update directive will update the auto-generated files in src/

This simplifies the update of files generated by autogen.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: added check for gnutls-cli's sni-hostname option
Nikos Mavrogiannopoulos [Mon, 8 May 2017 05:02:16 +0000 (07:02 +0200)] 
tests: added check for gnutls-cli's sni-hostname option

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agognutls-cli: introduced --sni-hostname option
Nikos Mavrogiannopoulos [Mon, 8 May 2017 04:13:59 +0000 (06:13 +0200)] 
gnutls-cli: introduced --sni-hostname option

This allows overriding the value set on the TLS server name indication
extension.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoMakefile: added phony targets to .PHONY [ci skip]
Nikos Mavrogiannopoulos [Wed, 10 May 2017 08:39:22 +0000 (10:39 +0200)] 
Makefile: added phony targets to .PHONY [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agofuzz: doc update [ci skip]
Nikos Mavrogiannopoulos [Tue, 9 May 2017 12:51:44 +0000 (14:51 +0200)] 
fuzz: doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agoerrors.h: _gnutls_cert_log will only print on non-null certificates
Nikos Mavrogiannopoulos [Mon, 8 May 2017 04:27:21 +0000 (06:27 +0200)] 
errors.h: _gnutls_cert_log will only print on non-null certificates

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agorsa-psk: Use the correct username datum
Nicolas Dufresne [Fri, 28 Apr 2017 21:17:32 +0000 (17:17 -0400)] 
rsa-psk: Use the correct username datum

In rsa-psk we properly request username for the case the
application uses a callback, but later we use the username
cached in the credentials structure. This will lead to empty
username issues.

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
9 years agotests: added check for PSK client callback in RSA-PSK
Nikos Mavrogiannopoulos [Sat, 6 May 2017 21:06:45 +0000 (23:06 +0200)] 
tests: added check for PSK client callback in RSA-PSK

This check verifies whether gnutls_psk_client_credentials_function
is operational, and the parameters sent are taken into account
by the server.

Relates !364

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: simplified name of mini-rsa-psk check
Nikos Mavrogiannopoulos [Sat, 6 May 2017 20:47:32 +0000 (22:47 +0200)] 
tests: simplified name of mini-rsa-psk check

In addition modernize the used APIs and added explicit check
on the received by the server username value.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: utilize the email_protection_key template option
Nikos Mavrogiannopoulos [Fri, 5 May 2017 12:31:30 +0000 (14:31 +0200)] 
tests: utilize the email_protection_key template option

This ensures that generated certificates and requests will
include that key purpose when the option is present.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agocerttool: introduced the email_protection_key option
Nikos Mavrogiannopoulos [Fri, 5 May 2017 12:21:13 +0000 (14:21 +0200)] 
certtool: introduced the email_protection_key option

This option was introduced in documentation for certtool without
an implementation of it. It is a shortcut for option
key_purpose_oid = 1.3.6.1.5.5.7.3.4

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls-cli: Use CRLF with --starttls-proto=smtp.
Andreas Metzler [Mon, 1 May 2017 17:20:38 +0000 (19:20 +0200)] 
gnutls-cli: Use CRLF with --starttls-proto=smtp.

Closes https://gitlab.com/gnutls/gnutls/issues/200

9 years agodoc: remove libidn from instructions and add libidn2
Nikos Mavrogiannopoulos [Sun, 30 Apr 2017 23:43:40 +0000 (01:43 +0200)] 
doc: remove libidn from instructions and add libidn2

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agodoc: update
Nikos Mavrogiannopoulos [Sun, 30 Apr 2017 22:59:12 +0000 (00:59 +0200)] 
doc: update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agoadded newline in debug messages [ci skip]
Nikos Mavrogiannopoulos [Sun, 30 Apr 2017 22:26:47 +0000 (00:26 +0200)] 
added newline in debug messages [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agoRemoved support for libidn1
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 18:13:11 +0000 (20:13 +0200)] 
Removed support for libidn1

Currently we support both IDNA2003 and IDNA2008. However, IDNA2003
is already obsolete by registrars and NICs, thus there is no reason
to continue supporting it. We switch to IDNA2008 exclusively using libidn2.

Resolves #194

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoupdated minitasn1
Nikos Mavrogiannopoulos [Mon, 1 May 2017 10:44:46 +0000 (12:44 +0200)] 
updated minitasn1

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls.h: introduced GNUTLS_E_ASN1_TIME_ERROR
Nikos Mavrogiannopoulos [Mon, 1 May 2017 10:42:57 +0000 (12:42 +0200)] 
gnutls.h: introduced GNUTLS_E_ASN1_TIME_ERROR

This corresponds to libtasn1 ASN1_TIME_ENCODING_ERROR and
indicates an error in the DER or BER encoding of time field.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls_pkcs12_simple_parse: set to null vars after deinitialization
Nikos Mavrogiannopoulos [Sun, 30 Apr 2017 11:25:16 +0000 (13:25 +0200)] 
gnutls_pkcs12_simple_parse: set to null vars after deinitialization

This avoids having the variables being deinitialized twice during
cleanup.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: enhance with checks to verify that textual IPs are not matched
Nikos Mavrogiannopoulos [Sun, 30 Apr 2017 10:52:51 +0000 (12:52 +0200)] 
tests: enhance with checks to verify that textual IPs are not matched

That verifies that the hostname check verification function will
not succeed if given textual IPs, and the certificate contains
textual IPs in DNSname or in the CN fields.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls_x509_crt_check_hostname2: no match dns fields against IPs
Nikos Mavrogiannopoulos [Sat, 29 Apr 2017 11:30:50 +0000 (13:30 +0200)] 
gnutls_x509_crt_check_hostname2: no match dns fields against IPs

Previously we were checking textual IP address matching against
the DNS fields. This match was non-standard and was intended to
work around few broken servers. However that also led to not
evaluating and IP constraints for that IP. No longer follow that
broken behavior.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: check against symbols present only in IDNA2003
Nikos Mavrogiannopoulos [Sun, 30 Apr 2017 10:45:19 +0000 (12:45 +0200)] 
tests: check against symbols present only in IDNA2003

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls_idna_map: fallback to IDNA2008 transitional encoding on failure
Nikos Mavrogiannopoulos [Sat, 29 Apr 2017 12:00:24 +0000 (14:00 +0200)] 
gnutls_idna_map: fallback to IDNA2008 transitional encoding on failure

This aligns with the behavior of firefox, which maps to IDNA2008, and
fallbacks to IDNA2003 if that fails (e.g., mapping doesn't exist).

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agofuzz: fix leaks in PKCS#12 fuzzer
Nikos Mavrogiannopoulos [Fri, 28 Apr 2017 21:12:19 +0000 (23:12 +0200)] 
fuzz: fix leaks in PKCS#12 fuzzer

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agopkcs12: release CRL data on error path
Nikos Mavrogiannopoulos [Fri, 28 Apr 2017 20:46:48 +0000 (22:46 +0200)] 
pkcs12: release CRL data on error path

This addresses issue:
  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1295

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agodoc: added gnutls_ext_flags_t enumeration
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 10:01:25 +0000 (12:01 +0200)] 
doc: added gnutls_ext_flags_t enumeration

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years ago_gnutls_base64_decode: corrected leak on decoding error
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 09:55:10 +0000 (11:55 +0200)] 
_gnutls_base64_decode: corrected leak on decoding error

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: fixed expected error code in base64 check
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 09:08:47 +0000 (11:08 +0200)] 
tests: fixed expected error code in base64 check

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agocerttool: ensure no leaks on pkcs12_info() error paths
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 13:15:27 +0000 (15:15 +0200)] 
certtool: ensure no leaks on pkcs12_info() error paths

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: added reproducer for mem leak in PKCS#12 decoding
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 09:02:01 +0000 (11:02 +0200)] 
tests: added reproducer for mem leak in PKCS#12 decoding

This relates to:
  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1173

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agopkcs12: eliminate mem leaks in _pkcs12_decode_safe_contents
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 08:59:58 +0000 (10:59 +0200)] 
pkcs12: eliminate mem leaks in _pkcs12_decode_safe_contents

This makes sure we deinitialize previously available elements.
This addresses:
  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1173

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agocleanups in _pkcs12_decode_safe_contents
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 08:48:46 +0000 (10:48 +0200)] 
cleanups in _pkcs12_decode_safe_contents

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agopkcs12: clean ups in PKCS#12 parsing
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 08:36:22 +0000 (10:36 +0200)] 
pkcs12: clean ups in PKCS#12 parsing

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agoAdded explicit check for the bounds of the generated 'd'.
Nikos Mavrogiannopoulos [Mon, 24 Apr 2017 12:16:24 +0000 (14:16 +0200)] 
Added explicit check for the bounds of the generated 'd'.

This is according to FIPS186-4 sec. B.3.1.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agofips140-2: enhanced check of generated parameters
Nikos Mavrogiannopoulos [Mon, 24 Apr 2017 11:06:45 +0000 (13:06 +0200)] 
fips140-2: enhanced check of generated parameters

That is, replaced all assert() calls with if statements to allow
gracefull fail.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agodsa-fips.h: include nettle/bignum.h to allow compilation under nettle-mini
Nikos Mavrogiannopoulos [Mon, 24 Apr 2017 11:11:04 +0000 (13:11 +0200)] 
dsa-fips.h: include nettle/bignum.h to allow compilation under nettle-mini

Relates #197

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: added base64 reproducer of mem leak
Nikos Mavrogiannopoulos [Tue, 25 Apr 2017 07:50:08 +0000 (09:50 +0200)] 
tests: added base64 reproducer of mem leak

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 24 Apr 2017 11:28:39 +0000 (13:28 +0200)] 
doc update [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls.h: introduced flag GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL [ci skip]
Nikos Mavrogiannopoulos [Sun, 23 Apr 2017 09:54:38 +0000 (11:54 +0200)] 
gnutls.h: introduced flag GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL [ci skip]

This flag is expected to be used by applications which handle
custom extensions that are not currently supported in gnutls, but
support for them may be added in the future.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years ago_gnutls_base64_decode: addressed memory leak in decoding
Nikos Mavrogiannopoulos [Fri, 21 Apr 2017 07:28:47 +0000 (09:28 +0200)] 
_gnutls_base64_decode: addressed memory leak in decoding

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls_pem_base64_decode: allow decoding raw base64 data
Nikos Mavrogiannopoulos [Fri, 21 Apr 2017 07:19:56 +0000 (09:19 +0200)] 
gnutls_pem_base64_decode: allow decoding raw base64 data

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: check whether gnutls_pem_base64_decode2 decodes with null argument
Nikos Mavrogiannopoulos [Fri, 21 Apr 2017 07:14:18 +0000 (09:14 +0200)] 
tests: check whether gnutls_pem_base64_decode2 decodes with null argument

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agoRevert "gnutls_pem_base64_decode: allow decoding raw base64 data"
Nikos Mavrogiannopoulos [Fri, 21 Apr 2017 07:12:51 +0000 (09:12 +0200)] 
Revert "gnutls_pem_base64_decode: allow decoding raw base64 data"

This reverts commit fa86fc6892d6551340f24da6a6af4f484a62b884.

9 years agodoc: clarifications on custom thread override [ci skip]
Nikos Mavrogiannopoulos [Thu, 20 Apr 2017 14:34:56 +0000 (16:34 +0200)] 
doc: clarifications on custom thread override [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agofuzz: added PEM base64 decoder and encoder fuzzers [ci skip]
Nikos Mavrogiannopoulos [Thu, 20 Apr 2017 12:03:39 +0000 (14:03 +0200)] 
fuzz: added PEM base64 decoder and encoder fuzzers [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agofuzz: openpgp fuzzer always succeeds when no support is present [ci skip]
Nikos Mavrogiannopoulos [Wed, 19 Apr 2017 18:04:59 +0000 (20:04 +0200)] 
fuzz: openpgp fuzzer always succeeds when no support is present [ci skip]

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agolib/system/fastopen: simplified TCP fast open for OSX
Nikos Mavrogiannopoulos [Thu, 13 Apr 2017 22:18:56 +0000 (01:18 +0300)] 
lib/system/fastopen: simplified TCP fast open for OSX

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agolib/system/fastopen: Add TCP Fast Open for OSX
Tim Rühsen [Mon, 10 Apr 2017 10:39:46 +0000 (12:39 +0200)] 
lib/system/fastopen: Add TCP Fast Open for OSX

Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
9 years agodoc: removed incorrect comment
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 14:37:28 +0000 (16:37 +0200)] 
doc: removed incorrect comment

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agognutls_dh_get_pubkey: fixed operation under PSK authentication
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 15:02:35 +0000 (17:02 +0200)] 
gnutls_dh_get_pubkey: fixed operation under PSK authentication

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: test gnutls_dh_get_pubkey in PSK auth
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 14:15:36 +0000 (16:15 +0200)] 
tests: test gnutls_dh_get_pubkey in PSK auth

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: combined and enhanced DH params tests
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 14:33:09 +0000 (16:33 +0200)] 
tests: combined and enhanced DH params tests

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: added DH parameter check in X.509 auth
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 14:25:49 +0000 (16:25 +0200)] 
tests: added DH parameter check in X.509 auth

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: added basic test on gnutls_dh_params_cpy
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 14:18:26 +0000 (16:18 +0200)] 
tests: added basic test on gnutls_dh_params_cpy

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: test gnutls_dh_get_pubkey in anonymous auth
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 14:14:06 +0000 (16:14 +0200)] 
tests: test gnutls_dh_get_pubkey in anonymous auth

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agodoc update
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 14:15:46 +0000 (16:15 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agotests: added basic unit test on gnutls_random_art()
Nikos Mavrogiannopoulos [Sat, 8 Apr 2017 13:50:16 +0000 (15:50 +0200)] 
tests: added basic unit test on gnutls_random_art()

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agodoc: fixed documentation for various function parameters
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 20:51:09 +0000 (22:51 +0200)] 
doc: fixed documentation for various function parameters

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years ago.gitlab-ci.yml: removed the coverage run under pkcs11 trust store
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 20:37:54 +0000 (22:37 +0200)] 
.gitlab-ci.yml: removed the coverage run under pkcs11 trust store

It was causing inaccurate total coverage numbers.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years ago.gitlab-ci.yml: added runs under the PKCS#11 trust store in fedora
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 14:56:06 +0000 (16:56 +0200)] 
.gitlab-ci.yml: added runs under the PKCS#11 trust store in fedora

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: use gnutls_global_init instead of global_init
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 14:51:46 +0000 (16:51 +0200)] 
tests: use gnutls_global_init instead of global_init

The reason is to force initialization of the PKCS#11 backend,
and thus support for any PKCS#11 trust store when setup.
This fixes running the test suite in Fedora.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: added checks with certificates that contain invalid time field
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 12:42:10 +0000 (14:42 +0200)] 
tests: added checks with certificates that contain invalid time field

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agox509/time: reject invalid dates in local mktime()
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 12:33:29 +0000 (14:33 +0200)] 
x509/time: reject invalid dates in local mktime()

Resolves #135

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agocerttool: added newline in error message
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 12:25:34 +0000 (14:25 +0200)] 
certtool: added newline in error message

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: added basic check for systemkey tool
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 12:09:31 +0000 (14:09 +0200)] 
tests: added basic check for systemkey tool

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agosystemkey: improved error message on unsupported systems
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 12:05:45 +0000 (14:05 +0200)] 
systemkey: improved error message on unsupported systems

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: enhanced tofu trustdb checks
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 12:00:41 +0000 (14:00 +0200)] 
tests: enhanced tofu trustdb checks

Include checks which store and load commitments from the user's home
directory.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: do not run pkgconfig test in systems with invalid libidn flags
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 08:35:33 +0000 (10:35 +0200)] 
tests: do not run pkgconfig test in systems with invalid libidn flags

This prevents our test from failing, due to invalid flags found in
a dependency of ours.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agodoc: fixed tpmtool and psktool documentation
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 11:30:16 +0000 (13:30 +0200)] 
doc: fixed tpmtool and psktool documentation

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 07:39:50 +0000 (09:39 +0200)] 
doc update

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agotests: added unit tests for the base64 raw decoding functions
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 07:38:45 +0000 (09:38 +0200)] 
tests: added unit tests for the base64 raw decoding functions

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
9 years agognutls_pem_base64_decode: allow decoding raw base64 data
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 07:37:10 +0000 (09:37 +0200)] 
gnutls_pem_base64_decode: allow decoding raw base64 data

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