]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 12:25:06 +0000 (14:25 +0200)]
tests: split provable-privkey into multiple checks
This allows the tests to be run in parallel.
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 12:17:52 +0000 (14:17 +0200)]
tests: provable-dh was split into two programs
This allows the test to be run more efficiently when run
in parallel.
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 14:48:54 +0000 (16:48 +0200)]
.gitlab-ci.yml: do not run the full test suite on valgrind test
This allows the CI test to run on reasonable time.
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 12:16:01 +0000 (14:16 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 11:00:36 +0000 (13:00 +0200)]
more files to ignore
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 11:08:53 +0000 (13:08 +0200)]
devel/openssl: updated to 1.1.0 release
Nikos Mavrogiannopoulos [Thu, 29 Sep 2016 13:41:23 +0000 (15:41 +0200)]
aarch64: added optimized AES-CCM mode
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 19:43:05 +0000 (21:43 +0200)]
Imported Andy Polyakov's implementation of AES-GCM in aarch64
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 09:55:37 +0000 (11:55 +0200)]
Imported Andy Polyakov's implementation of AES in aarch64
Nikos Mavrogiannopoulos [Thu, 29 Sep 2016 11:36:55 +0000 (13:36 +0200)]
Added HMAC-SHA* optimizations for aarch64
Nikos Mavrogiannopoulos [Fri, 23 Sep 2016 12:55:37 +0000 (14:55 +0200)]
Imported Andy Polyakov's implementations for SHA* in aarch64
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 10:53:43 +0000 (12:53 +0200)]
fix zero-termination in _gnutls_server_name_set_raw() for large server names
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 10:56:07 +0000 (12:56 +0200)]
_gnutls_check_id_for_change: added check for NULL username
This is not required, but may prevent from issues if code-reorganizations
which may set a NULL username, occur.
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 10:58:17 +0000 (12:58 +0200)]
gnutls_*_crt_print: better error checking
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 08:29:29 +0000 (10:29 +0200)]
tests: added test for CKA_ALWAYS_AUTHENTICATE handling in PKCS#11
This checks whether GnuTLS properly calls login prior to any sign
operations when the object is marked as CKA_ALWAYS_AUTHENTICATE.
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 09:11:55 +0000 (11:11 +0200)]
pkcs11: improved debugging output in pkcs11_login
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 08:22:44 +0000 (10:22 +0200)]
name constraints: removed unused variable
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 11:25:41 +0000 (13:25 +0200)]
tools: clarify errors when reading files
Previously certtool and ocsptool would report:
```
$ certtool --generate-request --load-privkey=foo --outfile=bar
Generating a PKCS #10 certificate request...
reading --load-privkey: foo
```
And that doesn't make apparent what the issue was. Modified
to print:
```
error reading --load-privkey: foo
```
Report and initial patch by Thibault Nélis.
Resolves !97
Nikos Mavrogiannopoulos [Wed, 28 Sep 2016 05:41:13 +0000 (07:41 +0200)]
p11tool: doc update [ci skip]
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 21:42:01 +0000 (23:42 +0200)]
Removed C99 constructions in for-loops
These constructions although valid for C99 they are
being rejected by various compilers. Get rid of them.
Daiki Ueno [Tue, 27 Sep 2016 09:04:16 +0000 (11:04 +0200)]
certtool: print correct size of EC keys
Previously certtool complained about key size if --curve is given:
$ certtool --generate-privkey --ecc --curve secp256r1 --outfile key.pem
Generating a -
2147483646 bit EC/ECDSA private key...
Note that ECDSA keys with size less than 256 are not widely supported.
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 07:51:56 +0000 (09:51 +0200)]
p11tool: documented the p11-kit relevancy of distrust and stapled
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 07:39:09 +0000 (09:39 +0200)]
pkcs11: forbid PKCS#11 extensions to be used in other than trust modules
That is, only use the CKA_X_DISTRUSTED and the extension override in
p11-kit trust modules, to avoid conflicts with potentially other
PKCS#11 extensions.
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 09:46:24 +0000 (11:46 +0200)]
.gitlab-ci.yml: enabled valgrind tests build
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 09:44:16 +0000 (11:44 +0200)]
tests: allow handshake-large-packet to run under valgrind
That is, initialize the allocated buffers with a known value.
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 12:24:31 +0000 (14:24 +0200)]
p11tool: introduced the --mark-distrusted and --distrusted options
This allows to mark objects as distrusted, as well as list all
distrusted certificates (blacklisted) for a p11-kit trust module as:
p11tool --list-all-certs --distrusted
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 12:23:24 +0000 (14:23 +0200)]
pkcs11: introduced flag GNUTLS_PKCS11_OBJ_FLAG_MARK_DISTRUSTED
This allows to mark objects as distrusted, as well as to be
able to list distrusted objects.
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 12:00:32 +0000 (14:00 +0200)]
pkcs11: only staple extensions from a trust module when they are from a non-distrusted certificate
That is, make sure that the API for stapling extensions is only used
for non-distrusted (blacklisted) certificates. The reason is to avoid
duplicate extension entries from the p11-kit trust database. These
come from blacklisted certificates, and we have no reason to support
stapled extensions with blacklisted certificates.
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 11:47:19 +0000 (13:47 +0200)]
p11tool: allow to export a certificate with its stapled extensions
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 06:12:52 +0000 (08:12 +0200)]
gnutls_oid_to_ecc_curve: fix null pointer dereference
This addresses issue where an unknown curve would cause a
null pointer dereference. This was introduced with the addition
of X25519. Reported by Theofilos Petsios.
Nikos Mavrogiannopoulos [Fri, 23 Sep 2016 14:01:07 +0000 (16:01 +0200)]
Only send the status request extension on cert authentication
That is, do not both asking for it, or replying to it, if we are
not using any certificates.
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 12:49:57 +0000 (14:49 +0200)]
gdoc: improved the detection and display of escaped characters (@%)
This allows to properly display strings like %COMPAT and @SYSTEM
in the manual and the manpages.
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 11:46:19 +0000 (13:46 +0200)]
doc: gnutls_priority_init: fixed %COMPAT [ci skip]
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 10:08:45 +0000 (12:08 +0200)]
.gitlab-ci.yml: corrected debian build's dependency
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 09:07:45 +0000 (11:07 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 21 Sep 2016 15:59:18 +0000 (17:59 +0200)]
On client side allow signing with the signature algorithm of our cert
That allows to sign for example with DSA-SHA1 as client even if we do not
allow DSA-SHA1 as signature algorithm for server's certificate. This allows
to use a deprecated certificate without enabling deprecated algorithms
globally.
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 09:01:22 +0000 (11:01 +0200)]
_gnutls_session_get_sign_algo: always return GNUTLS_SIGN_UNKNOWN on failure
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 08:35:13 +0000 (10:35 +0200)]
tests: added check for server-side ECDSA keys
These tests check whether a server ECDSA key will be rejected by
the client in case the client has no ECDSA signature algorithms
available.
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 07:54:12 +0000 (09:54 +0200)]
tests: added check for client-side DSA key
This checks whether a client can use and send a DSA key, even
if DSA is not enabled (which should prohibit the server from providing
a DSA certificate).
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 07:21:06 +0000 (09:21 +0200)]
certtool: do not require a certificate to generate a PKCS#12 file
That is, allow generating PKCS#12 files with private keys only as well.
Nikos Mavrogiannopoulos [Tue, 20 Sep 2016 07:00:23 +0000 (09:00 +0200)]
.gitlab-ci.yml: added debian build
Nikos Mavrogiannopoulos [Tue, 20 Sep 2016 12:31:12 +0000 (14:31 +0200)]
README.md: depend on softhsm2 and net-tools on debian
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 13:36:21 +0000 (15:36 +0200)]
tests: mini-server-name: skip invalid UTF-8 check if compiled without libidn
This allows the test suite to run in systems without libidn. Reported
by Thomas Klausner.
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 12:55:24 +0000 (14:55 +0200)]
tests: added the macros test_fail() and test_success()
These macros allow test programs which run multiple checks,
to report the name of the check failed. Modified mini-server-name
and x509-dn-decode to use the macro.
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 16:55:59 +0000 (18:55 +0200)]
cfg.mk: removed invalid rule in web target
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 12:24:10 +0000 (14:24 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 12:12:56 +0000 (14:12 +0200)]
added debugging message when session fails due to handshake hash buffer
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 06:02:14 +0000 (08:02 +0200)]
tests: check whether large packets are allowed on the handshake
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 06:01:24 +0000 (08:01 +0200)]
Do not allow sending overflowed extensions field
That is, restrict the extensions to a 2^16 total size.
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 05:42:41 +0000 (07:42 +0200)]
tests: minor improvements in mini-extension
This will improve recovery from error conditions.
Nikos Mavrogiannopoulos [Fri, 16 Sep 2016 11:12:50 +0000 (13:12 +0200)]
Increased the maximum size allowed for handshake messages to 128kb
This would allow the library to cope with larger packets, as well
as TLS 1.3 hellos. Suggested by Hubert Kario.
Nikos Mavrogiannopoulos [Sat, 17 Sep 2016 10:52:41 +0000 (12:52 +0200)]
tests: added check for insecure key
That is, a check which verified whether a connection to a server with
a very small key will fail the certificate verification check.
Nikos Mavrogiannopoulos [Sat, 17 Sep 2016 09:43:45 +0000 (11:43 +0200)]
doc update
Nikos Mavrogiannopoulos [Sat, 17 Sep 2016 09:31:29 +0000 (11:31 +0200)]
Introduced separate error codes for invalid private and public keys
This allows functions like decryption and verification to report
the specific issue they encountered on public key error.
The new codes are GNUTLS_E_PK_INVALID_PUBKEY and GNUTLS_E_PK_INVALID_PRIVKEY
Nikos Mavrogiannopoulos [Thu, 15 Sep 2016 14:50:26 +0000 (16:50 +0200)]
.gitlab-ci.yml: no longer require gnutls-devel
This package is no longer needed to run abi-check.
Nikos Mavrogiannopoulos [Thu, 15 Sep 2016 14:49:37 +0000 (16:49 +0200)]
Makefile: abi-check no longer require gnutls headers to be installed
This addresses the issue of requiring gnutls-devel in the CI system
to run abi-check.
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 13:17:29 +0000 (15:17 +0200)]
doc: remove the conditional self_test functions
Also prevent them by re-entering the documented functions list
by restricting the header files that contribute functions to the
known list defined by $(HEADER_FILES).
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:37:54 +0000 (10:37 +0200)]
Makefile.am: introduced 'make files-update' rule
This rule updates the makefiles in doc/ and the kept symbol list.
This allows for easier automation of the symbol change 'make dist'
breakages.
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:33:00 +0000 (10:33 +0200)]
manpages: delete comparison temp file
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:30:09 +0000 (10:30 +0200)]
Makefile.am: symbol changes were made more elaborate
During make dist, the makefile will report the appropriate
symbol change message with instructions and fail.
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:02:48 +0000 (10:02 +0200)]
updated doc and symbol files for gnutls_certificate_set_ocsp_status_request_function2
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:00:42 +0000 (10:00 +0200)]
Makefile.am: print the symbols.last diff on make dist
This allows to manually verify the contents before overriding
the old file.
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 15:23:07 +0000 (17:23 +0200)]
doc: allow creation of gnutls.epub without running epub-fix
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 13:50:52 +0000 (15:50 +0200)]
.gitlab-ci.yml: use nproc as argument to 'make -j'
That way, we use as many make processes, as the number of
CPUs in the CI system.
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 13:31:13 +0000 (15:31 +0200)]
.gitlab-ci.yml: added build which runs 'make dist'
This tests whether the manpages, info, html, pdf and epub
manual are properly generated, and whether any new functions
were included into makefiles.
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 13:30:07 +0000 (15:30 +0200)]
doc: fixed the epub documentation generation
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 18:18:03 +0000 (20:18 +0200)]
gnutls_certificate_set_ocsp_status_request_file: mention version it was enhanced
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 18:11:28 +0000 (20:11 +0200)]
doc: corrected typo
Alex Monk [Mon, 12 Sep 2016 17:24:49 +0000 (18:24 +0100)]
Add ECDHE-* to the priority string docs for key exchange algorithms
GNUTLS_KX_ECDHE_PSK was added in 2.99.3 (released 2011-06-18)
The other two were added in 2.99.2 (released 2011-05-26)
Signed-off-by: Alex Monk <krenair@gmail.com>
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:54:42 +0000 (08:54 +0200)]
doc update
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:49:10 +0000 (08:49 +0200)]
.gitlab-ci.yml: added check for position dependent code
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:46:51 +0000 (08:46 +0200)]
Makefile.am: added check for position dependent code
This check will verify that the generated library doesn't contain
position dependent code. It depends on elf utilities.
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:38:36 +0000 (08:38 +0200)]
openssl asm: reverted to AESNI-x86 code to gnutls 3.4.x code
The newer code was creating position dependent code.
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 09:59:37 +0000 (11:59 +0200)]
tests: added checks to verify server understanding of UTF8 hostnames
This verifies whether a server can understand and serve requests
which contain UTF-8 server names.
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 09:51:07 +0000 (11:51 +0200)]
tests: set_key: fixed the time override
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 09:23:25 +0000 (11:23 +0200)]
tests: set_key: enabled failure_mode test
Also eliminated memory leaks related to it.
Nikos Mavrogiannopoulos [Sat, 10 Sep 2016 08:50:43 +0000 (10:50 +0200)]
Added IDNA support in server side
Any server names provided to server side by the gnutls_certificate_set_*
functions, are converted to IDNA format for comparison with client provided
values.
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:52:18 +0000 (10:52 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:48:10 +0000 (10:48 +0200)]
.gitlab-ci.yml: restrict the freebsd builds to local branches only
Alex Monk [Sun, 11 Sep 2016 21:10:14 +0000 (22:10 +0100)]
Add SIGN-ECDSA-SHA* to the priority strings docs
There were added in version 2.99.2, 2011-05-26
Signed-off-by: Alex Monk <krenair@gmail.com>
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:22:37 +0000 (10:22 +0200)]
gnutls_certificate_set_*key: ensure proper cleanup on key mismatch failures
That is, ensure that we keep no local references that are shared with
the caller, and that we properly free all initialized values.
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:23:48 +0000 (10:23 +0200)]
tests: check key mismatch on gnutls_certificate_set_*key
That is, check whether these functions can successfully
recover from such condition, without leaks or double freeing.
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 13:32:06 +0000 (15:32 +0200)]
tests: added unit testing for gnutls_certificate_set_ocsp_status_request_function2
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 13:14:37 +0000 (15:14 +0200)]
tests: added unit tests for gnutls_certificate_set_x509_key()
In addition these tests verify that the expected index is returned
and that can be used with gnutls_certificate_get_crt_raw() afterwards.
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 13:03:00 +0000 (15:03 +0200)]
tests: enhanced set_x509_key tests to include index verification
That is, verify that correct indexes are returned, and these
can be used with gnutls_certificate_get_crt_raw() afterwards.
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 11:48:30 +0000 (13:48 +0200)]
tests: enhanced set_x509_key_file tests to include index verification
That is, verify that correct indexes are returned, and these
can be used with gnutls_certificate_get_crt_raw() afterwards.
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 15:55:38 +0000 (17:55 +0200)]
tests: more checks for functionality of gnutls_certificate_set_ocsp_status_request_file
This introduces checks for the cases where gnutls_certificate_set_ocsp_status_request_file()
is called with multiple indexes, to set an OCSP response for different
certificates. The tests then verify whether the expected OCSP response
is received.
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 12:49:35 +0000 (14:49 +0200)]
Added gnutls_certificate_set_ocsp_status_request_function2
That introduces a new function to allow setting an OCSP status
request handling function per certificate. Furthermore it repurposes
the flag parameters to an index option on gnutls_certificate_set_ocsp_status_request_file.
The changes above allow setting a different OCSP status response
file per certificate, and a different function. The indexes they
rely on to associate with existing certs are the indexes returned
by the gnutls_certificate_set_key() and friends functions.
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 11:38:19 +0000 (13:38 +0200)]
All the key and chain set functions return an index
When setting key and certificate material to a gnutls_certificate_credentials_t
structure, the corresponding set functions will return an index.
That index could be used later either on the get functions, or
when setting corresponding data (e.g., an OCSP response).
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 11:29:54 +0000 (13:29 +0200)]
doc: clarifications in gnutls_certificate_set_ocsp_status_request_function()
Andreas Metzler [Sun, 11 Sep 2016 14:00:57 +0000 (16:00 +0200)]
Typo fixes found by lintian.
incosistent, ommited
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 18:24:43 +0000 (20:24 +0200)]
.gitlab-ci.yml: added code-coverage output to clang build
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 17:40:25 +0000 (19:40 +0200)]
.gitlab-ci.yml: the code-coverage command will always succeed
This works around random failures while calculating the code coverage.
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 17:37:45 +0000 (19:37 +0200)]
.gitlab-ci.yml: moved commonly installed packages into the before_script field
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 10:57:04 +0000 (12:57 +0200)]
.gitlab-ci.yml: added syntax check build
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 10:51:11 +0000 (12:51 +0200)]
cfg.mk: revived 'make release'
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 10:21:59 +0000 (12:21 +0200)]
several spacing fixes to keep syntax-check happy
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:51:37 +0000 (11:51 +0200)]
avoid the usage of '-a' and '-o' bash options
This keeps syntax-check happy.
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:44:58 +0000 (11:44 +0200)]
avoid the usage of strncpy
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:40:51 +0000 (11:40 +0200)]
removed signal.h from files that wasn't used at