]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 12:26:19 +0000 (14:26 +0200)]
tests: simplified custom-urls check
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 12:22:44 +0000 (14:22 +0200)]
tests: added check on whether builtin URLs cannot be overriden
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 12:09:44 +0000 (14:09 +0200)]
keys: custom URLs take precedence over pre-defined URLs
This allows applications to define the own 'system:' or 'pkcs11:'
URLs.
Resolves #89
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 14:45:44 +0000 (16:45 +0200)]
x25519: ensure that a valid private key is present on key derivation
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 08:33:47 +0000 (10:33 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 08:32:51 +0000 (10:32 +0200)]
tests: added check for GNUTLS_FORCE_CLIENT_CERT init flag
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 08:31:50 +0000 (10:31 +0200)]
instead of assigning a variable per flag use the init flags directly
That is store the flags provided in gnutls_init() in the session structure
and use these flags directly when required.
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 07:28:54 +0000 (09:28 +0200)]
added flag in session to force sending a client certificate
This handles the use case of a client connecting to a server
which incorrectly lists the CA certificates it supports. Without
that change the only option was to avoid using the "automatic"
client certificate functions, but rather utilize callbacks.
With that approach this use case is handled by the "automatic"
certificate selection functions.
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 11:28:50 +0000 (13:28 +0200)]
.gitlab-ci.yml: do not load submodules on CI since they are not used
This reduces the CI running time.
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 07:27:24 +0000 (09:27 +0200)]
tests: check client behavior of sending CA certificates
Nikos Mavrogiannopoulos [Wed, 27 Apr 2016 06:18:45 +0000 (08:18 +0200)]
doc: removed news about feature already backported in 3.4.6
Nikos Mavrogiannopoulos [Wed, 27 Apr 2016 06:17:45 +0000 (08:17 +0200)]
examples: introduced basic error checking in more examples
Nikos Mavrogiannopoulos [Wed, 27 Apr 2016 05:55:50 +0000 (07:55 +0200)]
examples: simplified the basic client example
Nikos Mavrogiannopoulos [Wed, 27 Apr 2016 05:50:20 +0000 (07:50 +0200)]
examples: introduced basic error checking in main client examples
Nikos Mavrogiannopoulos [Wed, 27 Apr 2016 05:38:47 +0000 (07:38 +0200)]
examples: corrected the required version of example
Nikos Mavrogiannopoulos [Tue, 26 Apr 2016 13:03:08 +0000 (15:03 +0200)]
tests: enhanced dane testing with offline verification checks
Nikos Mavrogiannopoulos [Tue, 26 Apr 2016 12:34:26 +0000 (14:34 +0200)]
dane: verification will not fail if a CA entry is encountered but cannot be verified
That addresses the issue of verifying a single certificate against a list
of TLSA entries that contain an entry with CA usage (cert usage 0). With
the previous behavior verification would have failed, while now this
entry will be skipped.
Nikos Mavrogiannopoulos [Tue, 26 Apr 2016 11:54:17 +0000 (13:54 +0200)]
doc: improved documentation on certificate and DANE verification functions
Nikos Mavrogiannopoulos [Tue, 26 Apr 2016 11:35:35 +0000 (13:35 +0200)]
dane: updated documentation of dane_verify_crt_raw
Nikos Mavrogiannopoulos [Tue, 26 Apr 2016 11:00:46 +0000 (13:00 +0200)]
doc: added clarifications on documentation for dane_state_t
Nikos Mavrogiannopoulos [Tue, 26 Apr 2016 10:56:35 +0000 (12:56 +0200)]
manpages: include the dane functions into the distributed pages
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 13:35:20 +0000 (15:35 +0200)]
ecdhe: eliminated unneeded checks for zero of public parameters
There were not required by either draft-ietf-tls-rfc4492bis-07
or rfc7748.
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 13:22:55 +0000 (15:22 +0200)]
doc: added example client application utilizing the 3.1.x APIs
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 13:13:42 +0000 (15:13 +0200)]
examples: added explicit 3.5.0 dependency in ex-client-x509
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 13:11:00 +0000 (15:11 +0200)]
examples: added error checks and updated verify_certificate_chain()
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 12:30:07 +0000 (14:30 +0200)]
.gitlab-ci.yml: made the linux tag explicit for our runners
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 12:15:04 +0000 (14:15 +0200)]
doc update
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 12:13:11 +0000 (14:13 +0200)]
doc: document curve X25519
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 12:12:46 +0000 (14:12 +0200)]
doc: clarify what catch all means in all scenarios
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 09:07:46 +0000 (11:07 +0200)]
gnutls-cli-debug: added tests for supported curves
Nikos Mavrogiannopoulos [Sat, 23 Apr 2016 13:20:21 +0000 (15:20 +0200)]
tests: include self tests with CURVE-X25519
Nikos Mavrogiannopoulos [Fri, 22 Apr 2016 11:17:38 +0000 (13:17 +0200)]
gnutls-cli: enhanced KX benchmark with X25519
Nikos Mavrogiannopoulos [Fri, 22 Apr 2016 10:25:59 +0000 (12:25 +0200)]
handshake: added support for ECDH with curve X25519
This follows draft-ietf-tls-rfc4492bis-07 and rfc7748
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 10:11:48 +0000 (12:11 +0200)]
tests: updated the openssl compat check to make explicit the used curves
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 09:12:29 +0000 (11:12 +0200)]
ecdhe: print the received curve from the server on debug mode
Nikos Mavrogiannopoulos [Sun, 24 Apr 2016 08:54:54 +0000 (10:54 +0200)]
gnutls-cli-debug: added CHACHA20-POLY1305 detection
Nikos Mavrogiannopoulos [Sat, 23 Apr 2016 20:25:35 +0000 (22:25 +0200)]
tests: on out of memory conditions do not fail the hash-large test
This test may require a large amount of memory which some CI systems
cannot provide. When an out-of-memory-error is detected skip the test
instead of failing.
Nikos Mavrogiannopoulos [Sat, 23 Apr 2016 13:15:50 +0000 (15:15 +0200)]
session: removed unused parameters from RSA-EXPORT era
Nikos Mavrogiannopoulos [Sat, 23 Apr 2016 12:52:03 +0000 (14:52 +0200)]
README-alpha.md: updated badges with the new gitlab URLs
Nikos Mavrogiannopoulos [Fri, 22 Apr 2016 07:26:55 +0000 (09:26 +0200)]
doc: document the TPM 1.2 limitation
Nikos Mavrogiannopoulos [Thu, 21 Apr 2016 14:50:46 +0000 (16:50 +0200)]
doc: tpm: include short instructions on initializing the TPM chip
Nikos Mavrogiannopoulos [Wed, 20 Apr 2016 14:19:32 +0000 (16:19 +0200)]
tests: hash-large: use private mmap()
This reduces the memory usage of the test significantly on Linux.
Nikos Mavrogiannopoulos [Wed, 20 Apr 2016 10:04:09 +0000 (12:04 +0200)]
tests: use mmap() for large memory allocations in systems that support it
That allows the hash-large test to run on systems which its calloc()
is attempting to allocate an impossible amount of memory.
Nikos Mavrogiannopoulos [Wed, 20 Apr 2016 09:28:21 +0000 (11:28 +0200)]
tests: use /bin/bash for tests that use bashisms
Nikos Mavrogiannopoulos [Wed, 20 Apr 2016 09:02:10 +0000 (11:02 +0200)]
tests: don't run danetool.sh if danetool is not present
That prevents test suite failure in systems without libunbound.
Nikos Mavrogiannopoulos [Wed, 20 Apr 2016 08:08:23 +0000 (10:08 +0200)]
gnutls_int.h: allow compiling with system (gnutls) headers
Nikos Mavrogiannopoulos [Wed, 20 Apr 2016 11:44:59 +0000 (13:44 +0200)]
.gitlab-ci.yml: added build rule on freebsd
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 21:11:13 +0000 (23:11 +0200)]
certtool: document sha3 functions in manpage [ci skip]
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 21:06:24 +0000 (23:06 +0200)]
doc: added missing @end example in danetool documentation
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 20:50:52 +0000 (22:50 +0200)]
doc: updated documentation on false start
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 20:37:22 +0000 (22:37 +0200)]
doc update
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 17:25:08 +0000 (19:25 +0200)]
gnutls-cli-debug: enable socket verbosity when --verbose is given
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 17:23:23 +0000 (19:23 +0200)]
tools: explicitly initialize socket struct to zero
That resolves issue where verbose was enabled by default.
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 17:18:05 +0000 (19:18 +0200)]
tools: avoid extracting the value of the app-proto alias
Instead always extract the starttls-proto value, as it seems
that libopts doesn't report any value for the former. This
corrects the starttls capability of danetool and gnutls-cli-debug.
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 17:12:51 +0000 (19:12 +0200)]
tools: document the starttls capability
Nikos Mavrogiannopoulos [Tue, 19 Apr 2016 07:20:04 +0000 (09:20 +0200)]
tests: do not run danetool.sh on windows
The test fails due to CRLF.
Nikos Mavrogiannopoulos [Mon, 18 Apr 2016 14:24:34 +0000 (16:24 +0200)]
tools: avoid relying on static buffers for service name
Nikos Mavrogiannopoulos [Mon, 18 Apr 2016 14:16:59 +0000 (16:16 +0200)]
tests: added basic check on danetool --tlsa-rr option
Nikos Mavrogiannopoulos [Mon, 18 Apr 2016 14:03:37 +0000 (16:03 +0200)]
danetool: Allow specifying a service name into port option
This makes the tool similar to gnutls-cli.
Kevin Cernekee [Mon, 18 Apr 2016 13:15:32 +0000 (15:15 +0200)]
Fix library build on Chrome Native Client (NaCl)
Some supported toolchains define DT_UNKNOWN but do not
define _DIRENT_HAVE_D_TYPE (and do not have the d_type field).
On other platforms GnuTLS may need to second-guess what the
library is reporting, but on NaCl this is unsafe.
Nikos Mavrogiannopoulos [Mon, 18 Apr 2016 10:03:05 +0000 (12:03 +0200)]
gnutls-serv: don't send closure messages in failed handshakes
Nikos Mavrogiannopoulos [Mon, 18 Apr 2016 09:46:39 +0000 (11:46 +0200)]
client key exchange: fail if the client KX message is padded with additional bytes
Nikos Mavrogiannopoulos [Mon, 18 Apr 2016 09:18:04 +0000 (11:18 +0200)]
_wrap_nettle_pk_derive: reject values of public key that are over the prime
That is do not canonicalise the value we get from the network, but
rather check it for validity. This saves a modular reduction on handshake
and performs a sanity check on the peer's (client) parameters.
Reported by Hubert Kario.
Resolves #84
Nikos Mavrogiannopoulos [Fri, 15 Apr 2016 08:17:32 +0000 (10:17 +0200)]
tests: suite: disable any openssl cpu optimizations
This prevents from valgrind failures on softhsm usage due to
any new instruction optimizations which are not supported by
valgrind.
Nikos Mavrogiannopoulos [Fri, 15 Apr 2016 08:14:22 +0000 (10:14 +0200)]
doc: further updated documentation on false start [ci skip]
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 17:32:22 +0000 (19:32 +0200)]
doc: updated documentation on false start
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 17:23:13 +0000 (19:23 +0200)]
tests: enhanced the false start checks
These now check whether sending and receiving is performed
as expected after handshake, DTLS, as well as test explicit handshake
called by the application.
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 17:20:36 +0000 (19:20 +0200)]
Updated false start support to be transparent to applications.
That is, an additional flag GNUTLS_ENABLE_FALSE_START is introduced
for gnutls_init(), and that enables support for false start. At
this point false start will be performed by the handshake if possible,
and gnutls_record_recv() will handle handshake completion.
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 09:11:01 +0000 (11:11 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 09:02:59 +0000 (11:02 +0200)]
doc: updated docs related to private key generation
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 08:54:49 +0000 (10:54 +0200)]
certtool: do not allow combining --provable with --ecc in key generation
There is no such support in the library.
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 08:33:55 +0000 (10:33 +0200)]
updated auto-generated files for new APIs
Nikos Mavrogiannopoulos [Thu, 14 Apr 2016 08:28:36 +0000 (10:28 +0200)]
doc: added tlsproxy example reference into documentation
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 13:55:56 +0000 (15:55 +0200)]
tests: pem-decoding: fixed issue preventing out-of-tree checks
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 13:48:58 +0000 (15:48 +0200)]
tests: pem-decoding: use unique temp files
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 12:06:02 +0000 (14:06 +0200)]
tests: enhanced mini-x509-kx with ECDHE-ECDSA ciphersuite testing
Also renamed it to cert-key-exchange for easier tracking.
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 11:59:02 +0000 (13:59 +0200)]
handshake: do not overwrite the server's signature algorithm
That is, correct a bug under which a client sending a certificate
would overwrite the server's idea about the used signature algorithm.
Reported by Hubert Kario.
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 11:50:59 +0000 (13:50 +0200)]
tests: enhanced mini-x509-kx with client auth scenarios
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 11:39:38 +0000 (13:39 +0200)]
tests: verify that the output of gnutls_sign_algorithm_get() is the expected one
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 11:06:23 +0000 (13:06 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 09:43:56 +0000 (11:43 +0200)]
ocsp: increased the preallocated space in check_ocsp_purpose to account for null terminator
This relates to gnutls_x509_crt_get_key_purpose_oid() change to
return null-terminated OIDs.
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 09:28:13 +0000 (11:28 +0200)]
tests: enhanced and simplified SHA3 tests
Included checks about SHA3-224 and SHA3-384.
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 09:05:19 +0000 (11:05 +0200)]
tests: added check of GOST cert decoding/printing
This verifies whether our printing functions print the
OID on unknown/unsupported algorithms.
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 09:04:12 +0000 (11:04 +0200)]
x509 output: print the OID of certificates/CRLs/CRQs with unknown algorithms
That is, if any unknown signature or subject public key algorithm is
encountered the OID will be printed instead.
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 08:27:14 +0000 (10:27 +0200)]
tests: added basic tests for CSR parsing
This mainly includes tests on the new gnutls_x509_crq_get_signature_oid()
and gnutls_x509_crt_get_algorithm_oid().
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 08:16:29 +0000 (10:16 +0200)]
tests: added basic tests on CRL parsing
That includes testing on the new gnutls_x509_crl_get_signature_oid()
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 07:51:46 +0000 (09:51 +0200)]
tests: added basic functionality tests for gnutls_x509_crt_get_*_oid
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 07:43:31 +0000 (09:43 +0200)]
Added gnutls_x509_crl_get_signature_oid
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 07:39:21 +0000 (09:39 +0200)]
Added gnutls_x509_crq_get_signature_oid and gnutls_x509_crq_get_pk_oid
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 07:17:08 +0000 (09:17 +0200)]
Added gnutls_x509_crt_get_signature_oid and gnutls_x509_crt_get_pk_oid
These functions can directly provide the textual object identifier
of their corresponding fields.
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 07:03:56 +0000 (09:03 +0200)]
gnutls_x509_crt_get_key_purpose_oid: copy the OID as a null-terminated string
Nikos Mavrogiannopoulos [Wed, 13 Apr 2016 06:53:23 +0000 (08:53 +0200)]
sign: corrected digest in SHA3-224 OID mapping
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 20:53:57 +0000 (22:53 +0200)]
configure: corrected regression which prevented the build of tests/suite
This regression was introduced at
8b97662c40c67a6d4087ce6e1f0c6fb6ea4a8b2c
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 20:25:06 +0000 (22:25 +0200)]
gnutls_x509_ext_import_policies: initialize value to avoid compiler warnings
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 20:21:02 +0000 (22:21 +0200)]
README: removed inexistent package
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 20:16:22 +0000 (22:16 +0200)]
common.mk: corrected typo on LDFLAGS for coverage
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 17:25:18 +0000 (19:25 +0200)]
danetool: corrected typo in manual [ci skip]
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 14:07:41 +0000 (16:07 +0200)]
gnutls_packet_get: avoid null pointer dereference on NULL input
That is, still allow the function to handle a NULL packet
input but reset the data contents.
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 14:04:24 +0000 (16:04 +0200)]
gnutls_x509_privkey_verify_seed: corrected typo that made the function always return true
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 14:02:20 +0000 (16:02 +0200)]
_gnutls_asn2err: declared as constant function