]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agognutls_rnd: document the available values of level [ci skip]
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 07:43:47 +0000 (08:43 +0100)] 
gnutls_rnd: document the available values of level [ci skip]

This enables using the function by only checking the man page.

9 years agopkcs11 verification: ensure that an issuer we retrieve is not blacklist
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 15:45:19 +0000 (16:45 +0100)] 
pkcs11 verification: ensure that an issuer we retrieve is not blacklist

It may happen in p11-kit trust module that a trusted certificate is
both in the trusted set, and the blacklisted set. To avoid accepting
a certificate when in both sets, we always check whether a trusted
issuer certificate is in the blacklisted set.

9 years agoAttempt to fix a leak in OpenPGP cert parsing.
Alex Gaynor [Sat, 31 Dec 2016 02:17:22 +0000 (21:17 -0500)] 
Attempt to fix a leak in OpenPGP cert parsing.

9 years agotests: enable all the ciphersuite in openssl cli for DSS checks
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 13:57:57 +0000 (14:57 +0100)] 
tests: enable all the ciphersuite in openssl cli for DSS checks

9 years agocerttool: improved error reporting on file error
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 10:48:44 +0000 (11:48 +0100)] 
certtool: improved error reporting on file error

9 years agotests: don't check against 3DES if disabled in openssl
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 12:27:10 +0000 (13:27 +0100)] 
tests: don't check against 3DES if disabled in openssl

9 years agotests: do not pass the -dhparams to openssl 1.1.0; it doesn't work
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 12:25:23 +0000 (13:25 +0100)] 
tests: do not pass the -dhparams to openssl 1.1.0; it doesn't work

9 years agotests: simplified DH params format
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 11:14:44 +0000 (12:14 +0100)] 
tests: simplified DH params format

Also switch to RFC7919 DH params.

9 years agotests: corrected type in openssl compat tests
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 11:13:20 +0000 (12:13 +0100)] 
tests: corrected type in openssl compat tests

9 years agotests: added common variable for DH parameters
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 11:12:33 +0000 (12:12 +0100)] 
tests: added common variable for DH parameters

9 years agotests: fixed paths in compat tests
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 09:36:37 +0000 (10:36 +0100)] 
tests: fixed paths in compat tests

9 years agotests: better termination checking in compat tests
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 08:04:59 +0000 (09:04 +0100)] 
tests: better termination checking in compat tests

This ensures that the exit code of all spawned processes is
checked.

9 years agocfg.mk: exclude devel/ subdirectory from syntax checks
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 09:12:34 +0000 (10:12 +0100)] 
cfg.mk: exclude devel/ subdirectory from syntax checks

9 years agocerttool: properly report unencrypted PKCS#8 keys in --p8-info
Nikos Mavrogiannopoulos [Fri, 30 Dec 2016 14:50:45 +0000 (15:50 +0100)] 
certtool: properly report unencrypted PKCS#8 keys in --p8-info

9 years agofuzz: added decrypted PKCS#8 keys
Nikos Mavrogiannopoulos [Fri, 30 Dec 2016 14:41:53 +0000 (15:41 +0100)] 
fuzz: added decrypted PKCS#8 keys

9 years agofuzz: added PKCS#8 keys with low iteration count
Nikos Mavrogiannopoulos [Fri, 30 Dec 2016 14:23:17 +0000 (15:23 +0100)] 
fuzz: added PKCS#8 keys with low iteration count

This makes sure that the fuzzer will not timeout while
trying to decode keys.

9 years agosubmodules: use the github mirror of openssl
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 10:01:37 +0000 (11:01 +0100)] 
submodules: use the github mirror of openssl

9 years agoDo not infinite loop if an EOF occurs while skipping a PGP packet
Alex Gaynor [Mon, 26 Dec 2016 18:15:25 +0000 (13:15 -0500)] 
Do not infinite loop if an EOF occurs while skipping a PGP packet

Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
9 years agoAdded a fuzzer for OpenPGP cert parsing
Alex Gaynor [Tue, 27 Dec 2016 14:45:31 +0000 (09:45 -0500)] 
Added a fuzzer for OpenPGP cert parsing

Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
9 years agofuzz: document the convention for initial values
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 08:59:34 +0000 (09:59 +0100)] 
fuzz: document the convention for initial values

9 years agofuzz: Added initial values for DN, PKCS8 and X.509 tests
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 08:58:20 +0000 (09:58 +0100)] 
fuzz: Added initial values for DN, PKCS8 and X.509 tests

9 years agoAdded a parser for PKCS7 importing and printing
Alex Gaynor [Mon, 26 Dec 2016 15:59:03 +0000 (15:59 +0000)] 
Added a parser for PKCS7 importing and printing

9 years agofuzz: added X.509 DN parser
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 07:38:41 +0000 (08:38 +0100)] 
fuzz: added X.509 DN parser

9 years agofuzz: added PKCS#8 private key parser
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 07:35:45 +0000 (08:35 +0100)] 
fuzz: added PKCS#8 private key parser

9 years agoconfigure: introduced --with-priority-string option
Nikos Mavrogiannopoulos [Wed, 21 Dec 2016 07:18:24 +0000 (08:18 +0100)] 
configure: introduced --with-priority-string option

This allows specifying the priority string to be used with
gnutls_set_default_priority() on configure time.

9 years agopriorities: reset the profile flags when appending new flags
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:35:53 +0000 (21:35 +0100)] 
priorities: reset the profile flags when appending new flags

That is, to avoid causing issues to applications calling gnutls_*priority_set()
multiple times with different parameters. In that case if multiple profiles are
used the outcome could be undefined. Now, the last call will prevail.

9 years agognutls_session_set_verify_cert: doc update
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:39:02 +0000 (21:39 +0100)] 
gnutls_session_set_verify_cert: doc update

9 years agoRevert "priorities: set the additional verify flags instead of appending them"
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:26:09 +0000 (21:26 +0100)] 
Revert "priorities: set the additional verify flags instead of appending them"

This reverts commit aaf49747f981f6c17cdc9ea7495a8948a5015ae2.

9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:19:05 +0000 (21:19 +0100)] 
doc update [ci skip]

9 years agoMerge branch 'tmp-cert-updates' into 'master'
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 19:31:27 +0000 (19:31 +0000)] 
Merge branch 'tmp-cert-updates' into 'master'

Updates in certificate handling on certtool

See merge request !181

9 years agotests: added check for certtool loading CA certificates from PKCS#11
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 18:01:31 +0000 (19:01 +0100)] 
tests: added check for certtool loading CA certificates from PKCS#11

9 years agocerttool: document that --load-ca-certificate can be used with PKCS#11 URLs
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 14:52:49 +0000 (15:52 +0100)] 
certtool: document that --load-ca-certificate can be used with PKCS#11 URLs

9 years agocerttool: load_ca_cert() can load a CA from URLs
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 14:44:20 +0000 (15:44 +0100)] 
certtool: load_ca_cert() can load a CA from URLs

9 years agocerttool: unified the CA certificate loading process
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 10:36:13 +0000 (11:36 +0100)] 
certtool: unified the CA certificate loading process

That is, combined how CA certificates are loaded for --verify-chain,
--verify and --p7-verify. It is based on the trust list high level
functions, something that allows PKCS#11 URLs to be specified in
--load-ca-certificate.

9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 15:15:50 +0000 (16:15 +0100)] 
doc update [ci skip]

9 years ago.gitlab-ci.yml: changed buildroot to fedora25
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 15:21:30 +0000 (16:21 +0100)] 
.gitlab-ci.yml: changed buildroot to fedora25

9 years agoMerge branch 'tmp-priority-fix' into 'master'
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 11:09:41 +0000 (11:09 +0000)] 
Merge branch 'tmp-priority-fix' into 'master'

Fix issue with multiple calls to priority functions

See merge request !195

9 years agotests: added check for multiple calls to gnutls_priority_set_direct()
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 10:01:10 +0000 (11:01 +0100)] 
tests: added check for multiple calls to gnutls_priority_set_direct()

9 years agopriorities: set the additional verify flags instead of appending them
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 09:49:34 +0000 (10:49 +0100)] 
priorities: set the additional verify flags instead of appending them

That is, to avoid causing issues to applications calling gnutls_*priority_set()
multiple times with different parameters. In that case if multiple profiles are
used the combo could be undefined.

9 years agoverify: print certificate on sec param failure
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 09:36:01 +0000 (10:36 +0100)] 
verify: print certificate on sec param failure

9 years agoMerge branch 'tmp-x509-print-fix' into 'master'
Nikos Mavrogiannopoulos [Fri, 16 Dec 2016 16:19:29 +0000 (16:19 +0000)] 
Merge branch 'tmp-x509-print-fix' into 'master'

Updates in X.509 certificate handling

Relates to #156

See merge request !192

9 years agox509: corrected leak in certificate printing
Nikos Mavrogiannopoulos [Thu, 15 Dec 2016 14:08:31 +0000 (15:08 +0100)] 
x509: corrected leak in certificate printing

The leak could be triggered if the certificate policies to be imported are
invalid.

9 years agognutls_x509_ext_import_proxy: fix issue reading the policy language
Nikos Mavrogiannopoulos [Thu, 15 Dec 2016 14:02:18 +0000 (15:02 +0100)] 
gnutls_x509_ext_import_proxy: fix issue reading the policy language

If the language was set but the policy wasn't, that could lead to
a double free, as the value returned to the user was freed.

9 years agotests: added certificate which was causing issues in gnutls_x509_crt_print()
Nikos Mavrogiannopoulos [Thu, 15 Dec 2016 13:50:36 +0000 (14:50 +0100)] 
tests: added certificate which was causing issues in gnutls_x509_crt_print()

9 years agotests: improved certder to easily load certificates from a directory
Nikos Mavrogiannopoulos [Thu, 15 Dec 2016 13:47:13 +0000 (14:47 +0100)] 
tests: improved certder to easily load certificates from a directory

That allows to place certificates in certs-interesting/ and these
will be loaded and checked upon the new "cert" test case.

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 15 Dec 2016 13:06:06 +0000 (14:06 +0100)] 
doc update

9 years agoMerge branch 'tmp-src-fixes' into 'master'
Nikos Mavrogiannopoulos [Fri, 16 Dec 2016 13:42:36 +0000 (13:42 +0000)] 
Merge branch 'tmp-src-fixes' into 'master'

Do not add cli-args.h to cli-args.stamp Makefile target

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
See merge request !190

9 years agoDo not add cli-args.h to cli-args.stamp Makefile target
Alexander Kanavin [Wed, 14 Dec 2016 15:42:45 +0000 (17:42 +0200)] 
Do not add cli-args.h to cli-args.stamp Makefile target

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9 years agoMerge branch 'fuzzers' into 'master'
Nikos Mavrogiannopoulos [Thu, 15 Dec 2016 14:47:25 +0000 (14:47 +0000)] 
Merge branch 'fuzzers' into 'master'

Migrated fuzzers from the oss-repo to here.

Also added a new private_key_parser fuzzer.

See merge request !184

9 years agoDescribe the integration
Alex Gaynor [Thu, 15 Dec 2016 13:08:45 +0000 (08:08 -0500)] 
Describe the integration

9 years agoMove to the devel dir
Alex Gaynor [Thu, 15 Dec 2016 12:27:47 +0000 (07:27 -0500)] 
Move to the devel dir

9 years agoAdded a server fuzzer
Alex Gaynor [Wed, 14 Dec 2016 01:14:33 +0000 (20:14 -0500)] 
Added a server fuzzer

9 years agoMigrated fuzzers from the oss-repo to here.
Alex Gaynor [Mon, 12 Dec 2016 13:09:49 +0000 (08:09 -0500)] 
Migrated fuzzers from the oss-repo to here.

Also added a new private_key_parser fuzzer.

9 years agoDrop _gnutls_epoch_get_compression
Dmitry Eremin-Solenikov [Wed, 14 Dec 2016 15:07:05 +0000 (18:07 +0300)] 
Drop _gnutls_epoch_get_compression

This function is unused since long ago, let's drop it.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoRework setting next compression method
Dmitry Eremin-Solenikov [Wed, 14 Dec 2016 14:51:56 +0000 (17:51 +0300)] 
Rework setting next compression method

Only update compression method if all internal check succeed and next
epoch will use this it. Also while we are at at, actually check for
_gnutls_set_compression() return value.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoRework setting next cipher suite
Dmitry Eremin-Solenikov [Wed, 14 Dec 2016 14:51:56 +0000 (17:51 +0300)] 
Rework setting next cipher suite

Only update cipher_suite if all internal check succeed and next epoch
will use this ciphe suite. Also while we are at at, actually check for
_gnutls_set_cipher_suite() return value.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoCache MAC algorithm used for PRF function
Dmitry Eremin-Solenikov [Mon, 28 Nov 2016 10:16:13 +0000 (13:16 +0300)] 
Cache MAC algorithm used for PRF function

Instead of spreading checks all over the GnuTLS, cache used PRF after
setting the cipher suite and reference the value later. Like in
_gnutls_PRF_raw the GNUTLS_MAC_MD5_SHA1 means MD5+SHA1 combo.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoUse MAC_MD5_SHA1 instead of MAC_UNKNOWN to specify TLS 1.0 PRF
Dmitry Eremin-Solenikov [Wed, 14 Dec 2016 01:11:11 +0000 (04:11 +0300)] 
Use MAC_MD5_SHA1 instead of MAC_UNKNOWN to specify TLS 1.0 PRF

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoRewrite SSL/TLS signature verification to use combined MD5+SHA1 digest
Dmitry Eremin-Solenikov [Wed, 14 Dec 2016 00:52:06 +0000 (03:52 +0300)] 
Rewrite SSL/TLS signature verification to use combined MD5+SHA1 digest

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoRewrite SSL/TLS signing code to use combined MD5+SHA1 digest
Dmitry Eremin-Solenikov [Wed, 14 Dec 2016 00:52:06 +0000 (03:52 +0300)] 
Rewrite SSL/TLS signing code to use combined MD5+SHA1 digest

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoAdd special MD5+SHA1 digest to simplify TLS signature code
Dmitry Eremin-Solenikov [Wed, 14 Dec 2016 00:15:49 +0000 (03:15 +0300)] 
Add special MD5+SHA1 digest to simplify TLS signature code

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years ago_gnutls_pkcs_raw_decrypt_data: merge all errors during decryption to GNUTLS_E_DECRYPT...
Nikos Mavrogiannopoulos [Wed, 14 Dec 2016 09:52:27 +0000 (10:52 +0100)] 
_gnutls_pkcs_raw_decrypt_data: merge all errors during decryption to GNUTLS_E_DECRYPTION_FAILED

This makes the function's return values simpler to handle.

9 years agoconfigure.ac: remove autogen'erated files only if necessary
Dmitry Eremin-Solenikov [Tue, 13 Dec 2016 21:46:16 +0000 (00:46 +0300)] 
configure.ac: remove autogen'erated files only if necessary

Currently autogen'erated files will be removed on each call to
configure. However this would break the build if one of previous
make invocations have created corresponding stamp files.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agobumped versions and added news entry for 3.6.0 [ci skip]
Nikos Mavrogiannopoulos [Wed, 14 Dec 2016 08:50:24 +0000 (09:50 +0100)] 
bumped versions and added news entry for 3.6.0 [ci skip]

9 years agoREADME.md: added information on the 3.5.x builds
Nikos Mavrogiannopoulos [Wed, 14 Dec 2016 08:46:18 +0000 (09:46 +0100)] 
README.md: added information on the 3.5.x builds

9 years agotests: added test for PKCS#8 encrypted key decoding
Nikos Mavrogiannopoulos [Tue, 13 Dec 2016 10:41:12 +0000 (11:41 +0100)] 
tests: added test for PKCS#8 encrypted key decoding

This also verifies that the return value when attempting to
decrypt without a password is GNUTLS_E_DECRYPTION_FAILED.

9 years agopkcs8: ensure that the correct error code is returned on decryption failure
Nikos Mavrogiannopoulos [Tue, 13 Dec 2016 10:27:38 +0000 (11:27 +0100)] 
pkcs8: ensure that the correct error code is returned on decryption failure

9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Sat, 10 Dec 2016 12:15:16 +0000 (13:15 +0100)] 
doc update [ci skip]

9 years agodoc: updated to documentation of certtool [ci skip]
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 14:44:47 +0000 (15:44 +0100)] 
doc: updated to documentation of certtool [ci skip]

This corrects options which incorrectly mentioned they support URLs.

9 years agox509: better documented gnutls_trust_list_flags_t
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 10:54:30 +0000 (11:54 +0100)] 
x509: better documented gnutls_trust_list_flags_t

9 years agotests: disable ASAN leak checks on suite tests
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 14:06:55 +0000 (15:06 +0100)] 
tests: disable ASAN leak checks on suite tests

These detect memory leaks in the tools in src/ which are
not critical nor there is serious reason to address.

9 years agotests: disable ASAN leak checks on certificate tests
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 11:03:33 +0000 (12:03 +0100)] 
tests: disable ASAN leak checks on certificate tests

These detect memory leaks in the tools in src/ which are
not critical nor there is serious reason to address.

9 years agotests: enhanced long-session-id test
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 08:54:14 +0000 (09:54 +0100)] 
tests: enhanced long-session-id test

This ensures that no leaks exist during exit (to avoid asan failures),
and that we test for the specific error code that gnutls_handshake()
is expected to return.

9 years agohandshake: return GNUTLS_E_ILLEGAL_PARAMETER on invalid ID size
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 08:52:20 +0000 (09:52 +0100)] 
handshake: return GNUTLS_E_ILLEGAL_PARAMETER on invalid ID size

This is a more sensible error code to return on invalid packet.

9 years agotests: eliminate compilation warning in crq-basic [ci skip]
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 08:15:59 +0000 (09:15 +0100)] 
tests: eliminate compilation warning in crq-basic [ci skip]

9 years ago.gitlab-ci.yml: do not enable IDN support in minimal build
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 14:41:40 +0000 (15:41 +0100)] 
.gitlab-ci.yml: do not enable IDN support in minimal build

9 years agoconfigure.ac: use AC_CONFIG_LINKS to copy autogenerated files
Nikos Mavrogiannopoulos [Fri, 2 Dec 2016 13:57:41 +0000 (14:57 +0100)] 
configure.ac: use AC_CONFIG_LINKS to copy autogenerated files

9 years agoAdded autogen pre-generated files into repository
Nikos Mavrogiannopoulos [Fri, 2 Dec 2016 08:22:38 +0000 (09:22 +0100)] 
Added autogen pre-generated files into repository

This allows building gnutls from git in systems without using
autogen.

9 years agoconfigure: added option to enable maintainer mode
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 13:28:46 +0000 (14:28 +0100)] 
configure: added option to enable maintainer mode

That makes normal builds, not regenerate Makefiles or configure,
allowing for faster CI builds on second stage.

9 years ago.gitlab-ci.yml: split the CI run into stages
Nikos Mavrogiannopoulos [Tue, 15 Nov 2016 08:03:59 +0000 (09:03 +0100)] 
.gitlab-ci.yml: split the CI run into stages

In addition avoid re-generating images for operating systems
on every build and use pre-built images, which are generated in
the gnutls-build-images sub-project. That allows for faster and
more reliable (independent of network) CI runs.

9 years ago.gitlab-ci.yml: use local libopts on x86
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 20:40:14 +0000 (21:40 +0100)] 
.gitlab-ci.yml: use local libopts on x86

This works around autogen failures on x86-64 centos7 CI hosts.

9 years agodoc: updated documentation on multithreading [ci skip]
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 15:35:24 +0000 (16:35 +0100)] 
doc: updated documentation on multithreading [ci skip]

Resolves #154

9 years agodoc: list gnutls_init_flags_t [ci skip]
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 15:27:36 +0000 (16:27 +0100)] 
doc: list gnutls_init_flags_t [ci skip]

Suggested by Tyler Burns.

9 years agotests: make conditional (to HAVE_LIBIDN) any IDN related checks
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 14:54:07 +0000 (15:54 +0100)] 
tests: make conditional (to HAVE_LIBIDN) any IDN related checks

This allows the test suite to successfully complete even when compiled
without libidn.

9 years agostr: do not call gnutls_assert in inline function
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 14:44:28 +0000 (15:44 +0100)] 
str: do not call gnutls_assert in inline function

This allows the build to succeed when compiled without libidn.

9 years agotests: disable leak checks in rsa-md5-collision.sh
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 12:09:35 +0000 (13:09 +0100)] 
tests: disable leak checks in rsa-md5-collision.sh

9 years agotests: split and enhanced UTF-8 name checks from hostname-check
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 13:04:07 +0000 (14:04 +0100)] 
tests: split and enhanced UTF-8 name checks from hostname-check

That is, added checks to ensure that non-ASCII DNS names in certificates
fail, and that properly encoded IDNA2003 names, succeed.

9 years agotests: added check with failed verification on invalid UTF-8
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 12:54:53 +0000 (13:54 +0100)] 
tests: added check with failed verification on invalid UTF-8

That is, check whether raw UTF-8 in the certificate will fail
verification. Raw UTF-8 is prohibited by IETF PKIX (RFC5280) on a
certificate.

9 years agotests: updated cert with UTF8 names to contain proper IDNA2003 encoded names
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 12:40:41 +0000 (13:40 +0100)] 
tests: updated cert with UTF8 names to contain proper IDNA2003 encoded names

9 years agognutls_x509_crt_check_email type changed to unsigned
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 12:28:00 +0000 (13:28 +0100)] 
gnutls_x509_crt_check_email type changed to unsigned

This reflects the documented returned value type (bool), and
allows the compiler to warn on accidental checks for negative
value.

9 years agox509: do not attempt to ACE encode values stored in certificates
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 12:20:05 +0000 (13:20 +0100)] 
x509: do not attempt to ACE encode values stored in certificates

The email and hostname values are required to be in ASCII form by PKIX.
We instead ignore these names, if their values are outside the ASCII
printable character set.

9 years ago.gitlab-ci.yml: removed libintl references gnutls_3_5_7
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 07:08:28 +0000 (08:08 +0100)] 
.gitlab-ci.yml: removed libintl references

They are no longer shipped in the build systems.

9 years agotests: added missing test in dist
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 06:32:18 +0000 (07:32 +0100)] 
tests: added missing test in dist

9 years agotests: corrected typos in starttls.sh
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 06:23:18 +0000 (07:23 +0100)] 
tests: corrected typos in starttls.sh

This allows to detect chat in most systems.

9 years agobumped version
Nikos Mavrogiannopoulos [Thu, 8 Dec 2016 06:17:34 +0000 (07:17 +0100)] 
bumped version

9 years agotests: reduced the intermediate steps in rsa-md5-collision
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 14:43:21 +0000 (15:43 +0100)] 
tests: reduced the intermediate steps in rsa-md5-collision

9 years agoconfigure: break after finding the first libtspi
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 12:24:34 +0000 (13:24 +0100)] 
configure: break after finding the first libtspi

It may happen that multiple versions are available on a system,
and by using the first one we ensure, that we are using the
64-bit version on 64-bit system, instead of falling back to
the 32-bit.

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 12:20:08 +0000 (13:20 +0100)] 
doc update

9 years agotests: added operational -sign/verify- tests in keygen app
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 09:56:30 +0000 (10:56 +0100)] 
tests: added operational -sign/verify- tests in keygen app

This will check that a generated key is immediately usable for
operations.

9 years agognutls_x509_privkey_cpy: use _gnutls_pk_params_copy
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 09:27:01 +0000 (10:27 +0100)] 
gnutls_x509_privkey_cpy: use _gnutls_pk_params_copy

This ensures that all fields of parameters are copied. Inspired
by patch of Dmitry Eremin-Solenikov.