]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 09:30:13 +0000 (10:30 +0100)]
tests: enhanced keygen to include check of gnutls_x509_privkey_cpy
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 07:58:30 +0000 (08:58 +0100)]
tests: added tests for CRL generation APIs
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 08:05:01 +0000 (09:05 +0100)]
x509 crl: document the nextUpdate field limitation
Dmitry Eremin-Solenikov [Tue, 6 Dec 2016 19:41:28 +0000 (22:41 +0300)]
Don't trash DER CRQ output with text data
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Nikos Mavrogiannopoulos [Wed, 7 Dec 2016 07:59:03 +0000 (08:59 +0100)]
x509 crl: Allow generation of CRLs not to specify a nextUpdate
Nikos Mavrogiannopoulos [Tue, 6 Dec 2016 19:03:31 +0000 (20:03 +0100)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Tue, 6 Dec 2016 12:07:57 +0000 (13:07 +0100)]
tests: updated overhead calculation for new code
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 10:57:56 +0000 (11:57 +0100)]
DTLS: more precise overhead calculation
That takes into account space available due to padding, and
allows it to be included for use in the gnutls_get_data_mtu().
Resolves #140
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 08:54:45 +0000 (09:54 +0100)]
tests: added check for MTU calculation on DTLS 1.2
Nikos Mavrogiannopoulos [Mon, 5 Dec 2016 09:36:04 +0000 (10:36 +0100)]
src: clean all stamp files on 'make clean'
Nikos Mavrogiannopoulos [Mon, 5 Dec 2016 09:33:07 +0000 (10:33 +0100)]
configure: search 64-bit paths for libtspi before 32-bit paths
That is, because 64-bit systems may have both 64-bit and 32-bit paths
while 32-bit systems only the latter.
James Bottomley [Sat, 3 Dec 2016 22:36:40 +0000 (14:36 -0800)]
tpm: fix handling of keys requiring authorization
There are several problems with the key handling in the tpm code.
The first, and most serious, is that we should make sure we understand
the authorization requirements of a key *before* using it. The reason
for this is that the TPM has a dictionary attack defence and is
programmed to lock up after a certain number of authorization failures
(which can be very small). If we try first without authorization, we
may lock up the TPM. The fix for this is to check whether
authorization is required and supply it before using the key.
Secondly, if the key does require authorization but no password is
supplied we should return immediately, since we know the TPM will give
us an authorization error anyway.
Thirdly, we should unconditionally read the policy of the key rather
than checking if a policy exists: Policies are tied to key objects, so
if there is an old policy in s->tpm_key_policy, but we're creating a
new key, the key it belonged to will be closed, meaning the policy
will be invalid. Fix this by always setting the policy each time we
get a new key object.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Nikos Mavrogiannopoulos [Sun, 4 Dec 2016 08:56:13 +0000 (09:56 +0100)]
In import_tpm_key_cb() fix the wrong password loop
When calling import_tpm_key() once it initializes the key, but
a second call fails due to the key being already initialized. Ensure
that failure of import_tpm_key() leaves the key on a clear state.
Reported by James Bottomley <James.Bottomley@HansenPartnership.com>.
Nikos Mavrogiannopoulos [Sun, 4 Dec 2016 17:48:55 +0000 (18:48 +0100)]
src gl: updated
Nikos Mavrogiannopoulos [Fri, 2 Dec 2016 14:59:17 +0000 (15:59 +0100)]
gl: removed iconv module
It is no longer used by the library.
Nikos Mavrogiannopoulos [Sun, 4 Dec 2016 09:11:19 +0000 (10:11 +0100)]
configure.ac: detect trousers library on debian
Andreas Metzler [Sat, 3 Dec 2016 13:29:51 +0000 (14:29 +0100)]
Prevent unwanted linkage to -lhogweed
Specify action-if-found for AC_CHECK_LIB when checking for !SuiteB
curves to keep autoconf from adding -lhogweed to LIBS. This caused
linkage of e.g. openssl wrapper and C++ library to -lhogweed. The issue
only shows up if --disable-libdane is specified, since the dane autoconf
test resets LIBS.
James Bottomley [Fri, 2 Dec 2016 23:28:08 +0000 (15:28 -0800)]
Fix inability to find libtspi (trousers) on openSUSE
For distro reasons, the path on openSUSE is /lib[64]/libtspi.so.1
which the current code doesn't find. Fix this by having it search all
viable system library locations (/lib /lib64 /usr/lib and
/usr/lib/lib64)
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Nikos Mavrogiannopoulos [Fri, 2 Dec 2016 15:27:58 +0000 (16:27 +0100)]
x509: fixed output of pubkey
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 15:41:55 +0000 (16:41 +0100)]
doc: document the fact that certificates and CRLs are unusable after generation
They must be exported and re-imported if intended to be used for
signing or verification.
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 15:32:04 +0000 (16:32 +0100)]
doc: no longer list SHA1 as a safe choice in X.509 signing
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 15:19:31 +0000 (16:19 +0100)]
certtool: prevent-null termination of buffers allocated with fread_file()
We do not know whether their allocated size allows for that additional
null, and we do not need the null termination.
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 07:40:13 +0000 (08:40 +0100)]
gnutls_x509_crl_verify: always return zero on success
Also document that in previous versions a positive number could
be returned on success. Reported by Adrien Beraud.
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 13:09:15 +0000 (14:09 +0100)]
tests: corrected space-tab issue
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 09:04:45 +0000 (10:04 +0100)]
doc update
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:55:51 +0000 (09:55 +0100)]
Improved messages and violation handling in signature key usage checks
This will now tolerate violations in server certificate, if
%DEBUG_ALLOW_KEY_USAGE_VIOLATIONS is set.
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:48:56 +0000 (09:48 +0100)]
Removed redundant certificate key usage checks.
There were redundant checks when a certificate was obtained, as
well as prior to performing operations with certificates/pubkeys.
Kept the checks prior to operations.
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:45:26 +0000 (09:45 +0100)]
_gnutls_map_pk_get_pk -> _gnutls_map_kx_get_pk
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 13:18:51 +0000 (14:18 +0100)]
gnutls_kx_get: allow calling the function during handshake
Previous this function would return garbage during handshake, because
parameters were not considered established, however there are valid
uses of this function during it. For that reason this function is
modified to return a correct value even during handshake (after
a hello is being exchanged).
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 13:14:42 +0000 (14:14 +0100)]
_gnutls_check_key_usage: check for invalid key exchange algorithm
Reported by Dmitry Eremin-Solenikov.
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 13:56:41 +0000 (14:56 +0100)]
tests: added checks on signature key usage violations
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:10:41 +0000 (09:10 +0100)]
.gitlab-ci.yml: added docker tag on mingw builds
That ensures that these builds are done on the gitlab.com runners
which run as privileged containers (and thus have access to mount).
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 08:20:26 +0000 (09:20 +0100)]
privkey: set the key parameters algorithm prior to returning success
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 08:15:06 +0000 (09:15 +0100)]
When decoding a public key ensure that algorithm is written in the params struct
Reported by Dmitry Eremin-Solenikov.
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 07:54:09 +0000 (08:54 +0100)]
cfg.mk: disable checks for public submodule updates in CI
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 07:44:40 +0000 (08:44 +0100)]
.gitlab-ci.yml: do not require update to /proc/sys/fs/binfmt_misc to succeed
In some CI systems, it is not possible to write to this filesystem, and
they already have the wine executable registered. In the case we cannot
write proceed to running the check and hope for the best.
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 15:00:30 +0000 (16:00 +0100)]
tests: use datefudge in rsa-md5-collision check
This makes sure that any failure detected is not because of
expired certificates, but because of MD5 being disabled.
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 14:51:18 +0000 (15:51 +0100)]
tools: use stamp files to allow parallel build of autogen files
Autogen seems to output on the creates files gradually, something that
makes 'make' believe that the command is complete prior to the output
file being fully populated. The current approach uses stamp files to
ensure that no incomplete files are used for compilation.
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 12:44:01 +0000 (13:44 +0100)]
guile: do not use +COMP-DEFLATE in priorities test
This allows the test to work even in the cases where gnutls
is compiled without zlib support.
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 17:19:43 +0000 (18:19 +0100)]
moved all syntax check exceptions in cfg.mk
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 06:57:26 +0000 (07:57 +0100)]
.gitlab-ci.yml: added zlib dependency
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 11:48:25 +0000 (12:48 +0100)]
.gitlab-ci.yml: fixed artifacts paths for Debian build
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 09:26:14 +0000 (10:26 +0100)]
tests: str-unicode: check whether exceptions are tolerated on decryption
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 09:01:02 +0000 (10:01 +0100)]
tests: added exception and join control characters in str-unicode
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 08:38:38 +0000 (09:38 +0100)]
unistring: added property-join-control
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 16:49:10 +0000 (17:49 +0100)]
unistring: added default_ignorable_code_point and not_a_character tests
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 16:23:51 +0000 (17:23 +0100)]
unistring: added NFKC normalization
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 14:29:43 +0000 (15:29 +0100)]
unistring: included all possible categories for simplicity and extensibility
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 13:55:37 +0000 (14:55 +0100)]
tests: enhanced str-unicode with more char sets
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 13:20:11 +0000 (14:20 +0100)]
gnutls_utf8_password_normalize: perform more strict check on input characters
That is, ensure that the input characters are in the valid class of characters
for the PRECIS FreeformClass.
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 12:11:44 +0000 (13:11 +0100)]
tests: fixed str-unicode tests with control characters
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 12:02:48 +0000 (13:02 +0100)]
gnutls_utf8_password_normalize: avoid use of strlen()
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 10:03:28 +0000 (11:03 +0100)]
tests: added pkcs12 file with long password
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 15:09:20 +0000 (16:09 +0100)]
renamed system/iconv.c -> str-iconv.c
We no longer use the system's functionality for converting between
charsets (we use libunistring), hence it is no longer suitable for
the wrappers to stay in system/.
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 10:58:14 +0000 (11:58 +0100)]
x509: when printing ACE DNSnames ensure the actual name is also printed
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 10:47:53 +0000 (11:47 +0100)]
tests: added unit tests of of _gnutls_idna_reverse_map
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 10:34:19 +0000 (11:34 +0100)]
introduced _gnutls_idna_reverse_map()
This function allows mapping ACE formatted domains to UTF-8.
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 09:05:28 +0000 (10:05 +0100)]
Combined checks for printable characters
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 08:58:58 +0000 (09:58 +0100)]
doc update
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 07:44:59 +0000 (08:44 +0100)]
tests: updated crt_apis to include setting UTF-8 SAN
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 07:17:13 +0000 (08:17 +0100)]
tests: updated crq_apis to include setting UTF-8 SAN
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 08:48:56 +0000 (09:48 +0100)]
gnutls_idna_map: check for printable data prior to mapping
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 09:53:23 +0000 (10:53 +0100)]
gnutls_x509_aia_set: IDNA encode when needed
Nikos Mavrogiannopoulos [Wed, 16 Nov 2016 13:48:59 +0000 (14:48 +0100)]
When writing alternative names to certificates ensure we write in ACE format
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 09:39:10 +0000 (10:39 +0100)]
doc update
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 15:30:49 +0000 (16:30 +0100)]
tests: added pkcs7 verification with struct generated from openssl (with keyid)
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 14:44:35 +0000 (15:44 +0100)]
tests: added pkcs7 verification with struct generated from openssl
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 09:23:00 +0000 (10:23 +0100)]
doc: added certificate for ECC with any purpose
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 15:40:15 +0000 (16:40 +0100)]
pkcs7: return GNUTLS_E_PK_SIG_VERIFY_FAILED on hash mismatch
In addition introduce a new error code to warn about no embedded data.
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 15:33:18 +0000 (16:33 +0100)]
pkcs7: only print signer's issuer DN when DN has contents
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 13:51:15 +0000 (14:51 +0100)]
pkcs7: added recursive discovery of structure's signer
This uses the PKCS#7 certificate list as a pool of certificates
to generate a certificate chain that leads to our root CAs.
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 14:11:31 +0000 (15:11 +0100)]
pkcs7: on data verification failure log the signer
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 12:17:41 +0000 (13:17 +0100)]
tests: added complex verification example using PKCS#7
That uses multiple intermediate certificates from the PKCS#7 structure.
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 13:32:28 +0000 (14:32 +0100)]
doc: updated gnutls_x509_trust_list_verify_crt2()
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 12:14:16 +0000 (13:14 +0100)]
pkcs7: pass the verification flags down to gnutls_x509_trust_list_verify_crt2, in find_signer()
This allows for flags like GNUTLS_VERIFY_DISABLE_TIME_CHECKS to apply when
verifying PKCS#7 structures.
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 08:54:17 +0000 (09:54 +0100)]
pkcs7: corrected iteration over stored certificates
This allows to use all possibly stored certificates on chain discovery,
not only the first.
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 08:53:58 +0000 (09:53 +0100)]
pkcs7: added debug logging on verification discovery
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 13:54:46 +0000 (14:54 +0100)]
errors.h: added _gnutls_reason_log
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 08:49:13 +0000 (09:49 +0100)]
errors.h: added _gnutls_cert_log
This log function allows to easily log the name of a certificate.
Andreas Schneider [Thu, 24 Nov 2016 16:31:45 +0000 (17:31 +0100)]
certtool: One if check is enough
Signed-off-by: Andreas Schneider <asn@samba.org>
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 07:37:47 +0000 (08:37 +0100)]
corrected log message [ci skip]
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 20:09:03 +0000 (21:09 +0100)]
gnutls_idna_map was prefixed with underscore to avoid clashes with exported symbols
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 13:37:47 +0000 (14:37 +0100)]
more files to ignore
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 13:30:48 +0000 (14:30 +0100)]
avoid the use of c_isascii() and use c_isprint()
That latter detects correctly the printable characters we are
interested in.
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 14:45:22 +0000 (15:45 +0100)]
tests: added unit tests for gnutls_idna_map()
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 12:12:08 +0000 (13:12 +0100)]
IDNA code re-organization
That introduces the internal function gnutls_idna_map(), which
utilizes libidn and libunistring to convert hostnames to IDNA ACE
form.
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:57:01 +0000 (16:57 +0100)]
tests: updated outputs to reflect new fingerprint/keyid formats
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:56:41 +0000 (16:56 +0100)]
tests: made tmp files unique
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:43:25 +0000 (16:43 +0100)]
doc update
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:42:14 +0000 (16:42 +0100)]
Align the printing of a certificate's fingerprint with the key ID printing
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:35:58 +0000 (16:35 +0100)]
Print a key's or certificate's key ID with SHA256 in addition to SHA1
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:18:01 +0000 (16:18 +0100)]
certtool: address compiler warnings
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 08:31:19 +0000 (09:31 +0100)]
doc: document the RFC7613 normalization of passwords [ci skip]
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 20:16:28 +0000 (21:16 +0100)]
unistring: include only the required categories
In addition fix the license text of the included library.
Nikos Mavrogiannopoulos [Wed, 16 Nov 2016 14:50:39 +0000 (15:50 +0100)]
server_name: log server name sent
Nikos Mavrogiannopoulos [Wed, 16 Nov 2016 15:47:15 +0000 (16:47 +0100)]
x509/output: improve log message on embedded null
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 11:00:28 +0000 (12:00 +0100)]
build-aux: added unused-parameter.h
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 10:36:43 +0000 (11:36 +0100)]
.gitlab-ci.yml: explicitly specify --with-included-unistring when needed
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 10:32:09 +0000 (11:32 +0100)]
hooks.m4: corrected typo
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 09:52:23 +0000 (10:52 +0100)]
.gitlab-ci.yml: ignore syntax-check issues caused by included unistring