]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 13:37:38 +0000 (15:37 +0200)]
load_dir_certs: use readdir() in all platforms
According to glibc documentation readdir_r() is deprecated
and the use of readdir() is recommended. As such we switch to
it on all platforms.
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 13:26:42 +0000 (15:26 +0200)]
tests: combined the resume checks for Anonymous and PSK ciphersuites
In addition enhanced it to check the resumption on the certificate
ciphersuites as well.
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 12:21:04 +0000 (14:21 +0200)]
configure: Add a code coverage option
Configure with:
./configure --enable-code-coverage
Show coverage output with:
make && make check && make code-coverage-capture
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 12:17:26 +0000 (14:17 +0200)]
Makefile.am: moved common rules (AM_CFLAGS) to common.mk
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 10:12:40 +0000 (12:12 +0200)]
gnutls_ocsp_resp_get_single: fail if thisUpdate is not available or unparsable
That is because this field is not optional, and a failure on its
parsing is always fatal. Reported by Yuan Jochen Kang.
Nikos Mavrogiannopoulos [Tue, 12 Apr 2016 10:08:35 +0000 (12:08 +0200)]
gnutls_x509_privkey_import2: document an intentional fall through
Nikos Mavrogiannopoulos [Mon, 11 Apr 2016 14:48:46 +0000 (16:48 +0200)]
README: add abi-compliance-checker into install instructions
Nikos Mavrogiannopoulos [Mon, 11 Apr 2016 06:49:11 +0000 (08:49 +0200)]
gnutls_x509_crt_get_key_usage: ensure that its returned value is properly handled
Reported by Yuan Jochen Kang.
Nikos Mavrogiannopoulos [Sun, 10 Apr 2016 08:54:29 +0000 (10:54 +0200)]
tests: do not enable valgrind in non-git builds
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 11:38:47 +0000 (13:38 +0200)]
hash: corrected the textual description of hashes
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 11:34:39 +0000 (13:34 +0200)]
corrected SHA3-224 OID
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 11:31:54 +0000 (13:31 +0200)]
x509 output: don't warn about insecure algorithm when unknown
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 10:43:22 +0000 (12:43 +0200)]
tests: remove any system specific code of ecore
This was causing issues with certain builds and
was not used for the purpose of testing.
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 09:51:34 +0000 (11:51 +0200)]
tests: disable unsupported curves from compatibility checks
This allows running make check even when compiling with disable-suiteb-curves.
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 09:49:07 +0000 (11:49 +0200)]
tests: removed unused scripts
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 09:46:27 +0000 (11:46 +0200)]
.gitlab-ci.yml: combined C99 and undefined sanitizer builds
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 07:46:06 +0000 (09:46 +0200)]
doc update
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 07:43:49 +0000 (09:43 +0200)]
crywrap: was removed from gnutls tools
Its inclusion did not increase the attention paid to this
tool, not provided any significant advantage to gnutls' users
thus it was unbundled from the main library. The tool can be found at
https://github.com/nmav/crywrap
Nikos Mavrogiannopoulos [Sat, 9 Apr 2016 06:17:53 +0000 (08:17 +0200)]
minitasn1: updated to latest git version
Nikos Mavrogiannopoulos [Fri, 8 Apr 2016 17:46:36 +0000 (19:46 +0200)]
doc: Replace references to select with poll and other fixes
Nikos Mavrogiannopoulos [Fri, 8 Apr 2016 17:40:28 +0000 (19:40 +0200)]
doc: replace inaccurate sentence with reference to gnutls_record_discard_queued [ci skip]
Nikos Mavrogiannopoulos [Fri, 8 Apr 2016 13:40:06 +0000 (15:40 +0200)]
gnutls_record_get_direction: doc update [ci skip]
Nikos Mavrogiannopoulos [Fri, 8 Apr 2016 12:13:26 +0000 (14:13 +0200)]
tests: reduce the number of loops in x509sign-verify2
This enables running the test in reasonable time under valgrind.
Nikos Mavrogiannopoulos [Fri, 8 Apr 2016 11:36:44 +0000 (13:36 +0200)]
pkix.asn: corrected byKey definition
OCSP is defined in an EXPLICIT tags module, and as such
we must tag explicitly all of its tags.
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 11:22:29 +0000 (13:22 +0200)]
tests: check the generation of IP name constraints with certtool
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 11:21:53 +0000 (13:21 +0200)]
certtool: allow generating IP name constraints
Relates #83
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 11:16:07 +0000 (13:16 +0200)]
_gnutls_parse_general_name2: allow parsing empty names
This allows parsing empty general names such as an empty DNSname
used in name constraints.
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 09:54:50 +0000 (11:54 +0200)]
name constraints: enforce the rules for IP constraints when adding
This will prevent gnutls from generating badly formed certificates.
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 08:36:05 +0000 (10:36 +0200)]
doc update
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 08:33:18 +0000 (10:33 +0200)]
.gitignore: more files to ignore
Daiki Ueno [Wed, 16 Mar 2016 05:21:41 +0000 (14:21 +0900)]
name constraints: compute permitted set strictly
RFC 5280 6.1.4. states that the permitted_subtrees variable is
constructed as an intersection of its previous value.
Co-authored-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 07:08:14 +0000 (09:08 +0200)]
.gitlab-ci.yml: added C99 target for the library
This compiles the library using gcc options for the C99
standard.
Nikos Mavrogiannopoulos [Tue, 5 Apr 2016 06:44:34 +0000 (08:44 +0200)]
README: updated libtasn1 URL [ci skip]
Nikos Mavrogiannopoulos [Sun, 3 Apr 2016 07:46:24 +0000 (09:46 +0200)]
x86-common: increase the size of _gnutls_x86_cpuid_s to match the size of assembly files
This resolves issue on certain platforms (e.g., windows) where ld would simply fail,
instead of allocate the largest size of the variable.
Nikos Mavrogiannopoulos [Sat, 2 Apr 2016 10:56:45 +0000 (12:56 +0200)]
ocsptool: use HTTP/1.0 for requests
This avoids issue with servers serving chunk encoding which
ocsptool doesn't support. Reported by Thomas Klute.
Nikos Mavrogiannopoulos [Sat, 2 Apr 2016 10:02:08 +0000 (12:02 +0200)]
gnutls_init(): refer to gnutls_init_flags_t for the documentation of available flags
Nikos Mavrogiannopoulos [Sat, 2 Apr 2016 09:16:19 +0000 (11:16 +0200)]
README.CODING_STYLE: set C99 as the C dialect of choice
Nikos Mavrogiannopoulos [Fri, 1 Apr 2016 09:10:56 +0000 (11:10 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 1 Apr 2016 09:08:38 +0000 (11:08 +0200)]
tests: added check for system priority file loading and parsing
This checks whether the file is properly loaded and its contents
are parsed as expected.
Nikos Mavrogiannopoulos [Fri, 1 Apr 2016 08:46:12 +0000 (10:46 +0200)]
priorities: preload the system priorities on library loading time
This allows to rely on the system priorities even in the case of
applications that chroot(). This also introduces the environment
variable GNUTLS_SYSTEM_PRIORITY_FILE which can be used to override
the global priority file.
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 15:25:45 +0000 (17:25 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 15:24:37 +0000 (17:24 +0200)]
tests: added check of verification using MD5 with and without --verify-allow-broken
This tests certtool and whether it fails verification of MD5 chains
with no --verify-allow-broken, or whether it succeeds if given.
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 15:15:34 +0000 (17:15 +0200)]
tests: added PKCS #7 signing/verification test with broken sigs (MD5)
This tests whether we can sign structures using broken algorithms (MD5),
and verify structures signed with broken algoritms if --verify-allow-broken
is given to certtool.
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 14:58:37 +0000 (16:58 +0200)]
certtool: added flag to allow verification using broken algorithms
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 07:46:44 +0000 (09:46 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 08:29:59 +0000 (10:29 +0200)]
tests: check whether resumption data from resumed session work
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 07:40:09 +0000 (09:40 +0200)]
session resumption: lift the limitation of calling gnutls_session_get_data*() on non-resumed sessions
This allows of obtaining the session data required for proper session resumption
from any available session. This brings the API in par with expectations of its
users.
Resolves #79
Nikos Mavrogiannopoulos [Thu, 31 Mar 2016 07:45:43 +0000 (09:45 +0200)]
dtls: added missing dtls.h to state.c
Nikos Mavrogiannopoulos [Wed, 30 Mar 2016 10:24:09 +0000 (12:24 +0200)]
tests: added check for gnutls_record_set_state() under DTLS
Nikos Mavrogiannopoulos [Wed, 30 Mar 2016 09:37:49 +0000 (11:37 +0200)]
dtls: reset the record number sliding window on gnutls_record_set_state()
This addresses issue where gnutls_record_set_state() was called with a
new state but the sliding window information was not updated, thus
blocking any incoming packets.
Resolves #82
Nikos Mavrogiannopoulos [Wed, 30 Mar 2016 08:13:18 +0000 (10:13 +0200)]
x509/output: simplified cidr_to_string()
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 14:14:15 +0000 (16:14 +0200)]
.gitignore: more files to ignore
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 14:11:36 +0000 (16:11 +0200)]
tests: check gnutls_record_get_state() with DTLS
Since in DTLS we relied on a sliding window to keep track of the
sequence numbers we didn't provide a sensible value to application
via gnutls_record_get_state(). This test makes sure that we report
the "correct" value when asked. Correct being the next number after
the last received packet.
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 13:52:59 +0000 (15:52 +0200)]
DTLS: save last valid record sequence number
This will allow to report a valid number to gnutls_record_get_state() callers
in case of DTLS. Reported by Fridolin Pokorny.
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 13:34:37 +0000 (15:34 +0200)]
tests: delete outfile in certtool-long-cn
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 13:33:27 +0000 (15:33 +0200)]
tests: verify the output of name constraints IP decoding
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 13:04:11 +0000 (15:04 +0200)]
x509/output: print RFC5280 CIDRs in name constraints
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 12:11:56 +0000 (14:11 +0200)]
tests: check the sequence numbers produced by gnutls_record_get_state()
Nikos Mavrogiannopoulos [Tue, 29 Mar 2016 12:08:58 +0000 (14:08 +0200)]
gnutls_record_get_state: Allow for NULL parameters
Nikos Mavrogiannopoulos [Thu, 24 Mar 2016 06:13:59 +0000 (07:13 +0100)]
ocsptool: eliminated memory leaks in verify-response option
Nikos Mavrogiannopoulos [Thu, 24 Mar 2016 06:12:34 +0000 (07:12 +0100)]
ocsptool: don't exit with error code on verification failures when --ignore-errors is given
Nikos Mavrogiannopoulos [Wed, 23 Mar 2016 22:15:24 +0000 (23:15 +0100)]
tests: added OCSP related checks
Nikos Mavrogiannopoulos [Wed, 23 Mar 2016 22:14:01 +0000 (23:14 +0100)]
ocsptool: exit with error on verification failures
Nikos Mavrogiannopoulos [Wed, 23 Mar 2016 22:00:53 +0000 (23:00 +0100)]
ocsp: gnutls_ocsp_resp_verify_direct will skip additional checks for certificates matching issuer
That eliminates issue with ocsptool rejecting OCSP responses signed
by the same CA that signed the certificate. Reported by Thomas Klute.
Nikos Mavrogiannopoulos [Wed, 23 Mar 2016 21:46:16 +0000 (22:46 +0100)]
ocsptool: Allow saving responses even if verification fails
In addition do not enter a spurious newline to responses.
Maya Rashish [Wed, 23 Mar 2016 16:04:07 +0000 (18:04 +0200)]
Avoid using strerror in dtls stress test
Using it results in build failure on NetBSD:
undefined reference to `rpl_strerror'
Maya Rashish [Wed, 23 Mar 2016 14:08:02 +0000 (16:08 +0200)]
Add missing header to testsuite
This causes a problem for NetBSD+clang tests, because SIGTERM and
kill are undefined.
Resolves #80
Signed-off-by: Maya Rashish <coypu@sdf.org>
Nikos Mavrogiannopoulos [Wed, 23 Mar 2016 09:39:59 +0000 (10:39 +0100)]
session tickets: avoid GCM for session tickets and rely on CBC and HMAC
The latter is more resilient against non-key renewal.
Jaak Ristioja [Mon, 15 Feb 2016 10:14:52 +0000 (12:14 +0200)]
Broke apart _gnutls_recv_int() to the packet and non-packet cases.
Only gnutls_record_recv_packet() called _gnutls_recv_int() with
(packet != NULL). I refactored this logic directly downstream into
gnutls_record_recv_packet(). The _gnutls_recv_int() function now only
handles non-packet specific logic. The check_session_status() function
was created to deduplicate common code which would otherwise have
ended up in both functions.
The rationale behind this change is to optimize what were previously
calls of _gnutls_recv_int(). First of all _gnutls_recv_int() now has
only 6 parameters, which according to the x86_64 System V Application
Binary Interface should now fit into CPU registers and no longer use
the stack. Secondly this change avoids a number of branching checks
for both packet and non-packet cases.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 21 Mar 2016 10:29:08 +0000 (11:29 +0100)]
gnutls-cli: corrected usage of gnutls_session_get_data()
This is no longer called on resumed sessions, allowing more than
one resumption in servers which use tickets and don't resend the ticket
on subsequent connections.
Nikos Mavrogiannopoulos [Fri, 18 Mar 2016 12:10:40 +0000 (13:10 +0100)]
testcompat-openssl: enable TLS 1.2 tests with openssl 1.0.1+
Nikos Mavrogiannopoulos [Fri, 18 Mar 2016 10:21:35 +0000 (11:21 +0100)]
tests: verify that the post-client-hello callback has access to ALPN data
Nikos Mavrogiannopoulos [Fri, 18 Mar 2016 09:35:46 +0000 (10:35 +0100)]
.gitlab-ci.yml: don't use git submodule update, not needed for our testsuite
Yuriy M. Kaminskiy [Tue, 15 Mar 2016 15:21:32 +0000 (18:21 +0300)]
alpn: ALPN state is per-connection, it should not be saved with session data
In addition the extension was moved to the mandatory to parse to ensure it
is always parsed when sessions are resumed.
rfc7301:
Unlike many other TLS extensions, this extension does not establish
properties of the session, only of the connection. When session
resumption or session tickets [RFC5077] are used, the previous
contents of this extension are irrelevant, and only the values in the
new handshake messages are considered.
Signed-off-by: Yuriy M. Kaminskiy <yumkam@gmail.com>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 18 Mar 2016 08:44:40 +0000 (09:44 +0100)]
tests: added checks for session resumption and ALPN
This checks whether the ALPN extension is re-read on
resumption and is negotiated.
Nikos Mavrogiannopoulos [Wed, 16 Mar 2016 09:00:17 +0000 (10:00 +0100)]
x86-common: CPUID override will only work if CPU has already the capability present
This resolves test suite failure on CPUs with limited capabilities.
Reported by Andreas Metzler.
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 16:35:12 +0000 (17:35 +0100)]
Introduced GNUTLS_E_ASN1_EMBEDDED_NULL_IN_STRING
This error code is returned when an embedded NULL is detected in
a string.
Nikos Mavrogiannopoulos [Wed, 16 Mar 2016 20:03:54 +0000 (21:03 +0100)]
gnutls_server_name_set: accept non-null terminated hostnames
The introduction of IDNA support introduced a regression and this
function does not operate correctly when given non-null terminated
strings. Reported by Tim Ruehsen.
Relates #78
Nikos Mavrogiannopoulos [Wed, 16 Mar 2016 19:57:31 +0000 (20:57 +0100)]
tests: added check for non-null terminated server name
This checks whether a non-null terminated server name, but with
correct length is correctly accepted by gnutls_server_name_set().
Relates #78
Nikos Mavrogiannopoulos [Tue, 15 Mar 2016 11:00:39 +0000 (12:00 +0100)]
tests: template-test was updated for OCSP key purpose reordering
Ludovic Courtès [Mon, 14 Mar 2016 09:44:08 +0000 (10:44 +0100)]
guile: doc: Mention bytevectors.
* doc/gnutls-guile.texi (Representation of Binary Data): Mention bytevectors.
(Input and Output): Likewise.
Ludovic Courtès [Mon, 14 Mar 2016 09:44:07 +0000 (10:44 +0100)]
guile: doc: Explain "Application Data" packets and 'session-record-port'.
* doc/gnutls-guile.texi (Input and Output): Mention "Application Data"
packets and buffering.
Nikos Mavrogiannopoulos [Tue, 15 Mar 2016 10:20:16 +0000 (11:20 +0100)]
certtool: do not require a CA for OCSP signing
This follows the recommendations in RFC6960 in 4.2.2.2
which allow a CA to delegate OCSP signing to another certificate
without requiring it to be a CA.
Reported by Thomas Klute.
Nikos Mavrogiannopoulos [Mon, 14 Mar 2016 13:06:01 +0000 (14:06 +0100)]
doc: updated text for gnutls_ocsp_status_request_is_checked()
Relates #75
Nikos Mavrogiannopoulos [Mon, 14 Mar 2016 12:56:17 +0000 (13:56 +0100)]
doc: clarified expectations on gnutls_datum_t
Relates #77
Nikos Mavrogiannopoulos [Sun, 13 Mar 2016 19:55:02 +0000 (20:55 +0100)]
doc update: gnutls_handshake_set_false_start_function() [ci skip]
Nikos Mavrogiannopoulos [Sun, 13 Mar 2016 10:39:22 +0000 (11:39 +0100)]
abi-check: corrected type of gnutls_x509_crl_get_issuer_dn
That will avoid any accidental ABI breakage on that symbol.
Nikos Mavrogiannopoulos [Fri, 11 Mar 2016 13:45:02 +0000 (14:45 +0100)]
.gitlab-ci.yml: added abi-checker rule
This allows to test ABI incompatibilities as soon as possible.
Nikos Mavrogiannopoulos [Fri, 11 Mar 2016 13:36:39 +0000 (14:36 +0100)]
Makefile: made abi-checks self-contained
That is, they no longer assume a given directory structure to exist
outside git. It now includes a static dump of the symbols in 3.4.0
for x86_64 and we compare with it.
Nikos Mavrogiannopoulos [Fri, 11 Mar 2016 10:52:17 +0000 (11:52 +0100)]
certtool: better error handling in file_size()
Nikos Mavrogiannopoulos [Fri, 11 Mar 2016 10:47:12 +0000 (11:47 +0100)]
gnutls-cli: fix invalid initialization in cert_verify_ocsp()
Nikos Mavrogiannopoulos [Fri, 11 Mar 2016 10:45:23 +0000 (11:45 +0100)]
gnutls-serv: human_addr always returns a non-null argument
This addresses issue with libc's which don't support printf() with
a NULL argument.
Nikos Mavrogiannopoulos [Tue, 8 Mar 2016 14:10:07 +0000 (15:10 +0100)]
tests: testpkcs11: the test will always fail in code path failures
Nikos Mavrogiannopoulos [Tue, 8 Mar 2016 09:12:22 +0000 (10:12 +0100)]
README: list the main branches build status [ci skip]
Nikos Mavrogiannopoulos [Mon, 7 Mar 2016 10:50:34 +0000 (11:50 +0100)]
gnutls_system_recv_timeout: restore poll on EINTR
Nikos Mavrogiannopoulos [Mon, 7 Mar 2016 09:47:43 +0000 (10:47 +0100)]
doc: corrected typo [ci skip]
Nikos Mavrogiannopoulos [Mon, 7 Mar 2016 09:42:14 +0000 (10:42 +0100)]
gnutls_ocsp_status_request_is_checked: document the version the flag was introduced at
Relates: #75
Nikos Mavrogiannopoulos [Mon, 7 Mar 2016 09:25:57 +0000 (10:25 +0100)]
doc: generate manpages for all functions
That addresses issue where certain manpages were created empty.
See https://bugzilla.redhat.com/show_bug.cgi?id=
1306800
Nikos Mavrogiannopoulos [Mon, 7 Mar 2016 09:11:37 +0000 (10:11 +0100)]
doc: mention gnutls_certificate_set_x509_trust_dir()
It was not mentioned in the "Client or server certificate verification"
section.
Resolves #76
Nikos Mavrogiannopoulos [Mon, 7 Mar 2016 08:30:44 +0000 (09:30 +0100)]
tests: mini-loss-time: improved timeout detection