]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 09:11:32 +0000 (10:11 +0100)]
more files to ignore
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 08:38:38 +0000 (09:38 +0100)]
unconditionally include unistring code
That simplifies internationalization support, at the cost of
including a version of libunistring, which is used on systems
which do not ship it.
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 08:20:36 +0000 (09:20 +0100)]
lib: added unistring sub-library
Nikos Mavrogiannopoulos [Sun, 20 Nov 2016 16:11:57 +0000 (17:11 +0100)]
updated auto-generated files for gnutls_utf8_password_normalize()
Nikos Mavrogiannopoulos [Sun, 20 Nov 2016 16:08:55 +0000 (17:08 +0100)]
tests: enhanced str-unicode with GNUTLS_UTF8_IGNORE_ERRS flag
That is, enhanced to check the tolerable variant of gnutls_utf8_password_normalize()
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 17:26:21 +0000 (18:26 +0100)]
.gitlab-ci.yml: added build without libunistring
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 09:42:32 +0000 (10:42 +0100)]
doc: mention the RFC7613 normalization and the libunistring dependency
Nikos Mavrogiannopoulos [Sun, 20 Nov 2016 16:03:02 +0000 (17:03 +0100)]
tolerate non-valid UTF8 passwords when decrypting
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 13:42:26 +0000 (14:42 +0100)]
tests: addressed compiler warnings
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 13:40:19 +0000 (14:40 +0100)]
_gnutls_utf8_to_ucs2: normalize to NFC UTF16 output
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 13:31:24 +0000 (14:31 +0100)]
openssl_hash_password: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 11:55:22 +0000 (12:55 +0100)]
TPM: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 09:53:40 +0000 (10:53 +0100)]
_gnutls_calc_srp_sha: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 09:50:42 +0000 (10:50 +0100)]
gnutls_x509_crq_set_challenge_password: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 09:48:04 +0000 (10:48 +0100)]
PKCS#7/8: normalize the password according to rfc7613
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 09:53:37 +0000 (10:53 +0100)]
gnutls.pc: use the LT version of the lib variables
Nikos Mavrogiannopoulos [Tue, 8 Nov 2016 14:24:26 +0000 (15:24 +0100)]
Use libunistring when present instead of iconv()
That allows us to rely to a single provider for unicode
functionality.
Nikos Mavrogiannopoulos [Tue, 8 Nov 2016 14:24:00 +0000 (15:24 +0100)]
tests: added unit tests for gnutls_utf8_password_normalize()
Nikos Mavrogiannopoulos [Tue, 8 Nov 2016 12:00:16 +0000 (13:00 +0100)]
Added function for UTF-8 normalization based on RFC7613
This introduces gnutls_utf8_password_normalize() and a dependency on libunistring.
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 16:12:02 +0000 (17:12 +0100)]
tests: added test suite with PKCS#8 files that have invalid encryption
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 15:30:46 +0000 (16:30 +0100)]
PKCS#5,7 decryption: verify the correctness of padding
That is, for block ciphers (i.e., cbc), verify that all the padding bytes
match the expected contents according to RFC2898.
Relates #148
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 14:17:26 +0000 (15:17 +0100)]
PKCS#5,7 decryption: added sanity check on padding size
Relates #148
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 14:01:18 +0000 (15:01 +0100)]
PKCS#5,7 decryption: fail without leak on unknown MAC
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 13:54:00 +0000 (14:54 +0100)]
PKCS#5,7 decryption: fail early on invalid block sizes
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 13:47:13 +0000 (14:47 +0100)]
PKCS#5,7 decryption: enforce limits in the support parameter sizes
This allows to detect invalid parameters early rather than later.
Relates #148
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 13:03:58 +0000 (14:03 +0100)]
updated auto-generated files for new functions
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 09:03:29 +0000 (10:03 +0100)]
pkcs7 output: use the new functions for DN output
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 08:52:16 +0000 (09:52 +0100)]
tests: account for the strict RFC4514 compliance reversal
Test the new functions only for the strict RFC4514 compliance to
output strings, and test the old functions for the legacy format.
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 18:05:27 +0000 (19:05 +0100)]
doc update
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 17:52:03 +0000 (18:52 +0100)]
x509 output: use the new functions for DN output
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 17:31:37 +0000 (18:31 +0100)]
cleanups in _gnutls_buffer_to_datum()
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 17:42:59 +0000 (18:42 +0100)]
certtool: use the new APIs for DN extraction
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 12:31:34 +0000 (13:31 +0100)]
_gnutls_x509_get_dn: when no data ensure we return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
This aligns with the previous (prior to RFC4514 improvements) behavior of the function.
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 15:20:01 +0000 (16:20 +0100)]
Introduced new functions to allow multiple DN parsing modes
The old DN parsing functions are changed to return the original
non-fully compliant with RFC4514 string format, while the new
ones return the compliant string by default. This allows applications
which relied on the previous format to continue functioning without
changes.
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 16:19:48 +0000 (17:19 +0100)]
.gitlab-ci.yml: include root dir log files in all builds
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 10:06:26 +0000 (11:06 +0100)]
doc update
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 11:57:53 +0000 (12:57 +0100)]
gl: removed invalid module name
Nikos Mavrogiannopoulos [Sun, 13 Nov 2016 16:08:35 +0000 (17:08 +0100)]
tools: added explicit socket flag to skip TLS initialization
This allows proper error recovery when SOCKET_FLAG_RAW is specified
and initialize_session() fails.
Nikos Mavrogiannopoulos [Sun, 13 Nov 2016 15:41:43 +0000 (16:41 +0100)]
gnutls-cli-debug: terminate sessions which cannot be re-used
Nikos Mavrogiannopoulos [Sun, 13 Nov 2016 15:15:42 +0000 (16:15 +0100)]
sockets: only use gnutls_bye on a valid socket session
Nikos Mavrogiannopoulos [Thu, 10 Nov 2016 05:39:32 +0000 (06:39 +0100)]
p11tool: --initialize will no longer reset user PIN
That is because it only resetted the user PIN and not the admin PIN,
while at the same time it had problems to cope with the case where
the URL changed between token initialization and PIN setting (which
is the case if --label is provided to --initialize).
Nikos Mavrogiannopoulos [Thu, 10 Nov 2016 05:34:50 +0000 (06:34 +0100)]
p11tool: added options to initialize a user and admin's PIN
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 08:01:39 +0000 (09:01 +0100)]
gnutls_store_pubkey: document the default hosts format
Nikos Mavrogiannopoulos [Mon, 7 Nov 2016 08:17:22 +0000 (09:17 +0100)]
_wrap_nettle_pk_verify: use FAIL_IF_LIB_ERROR prior to returning success
This will prevent verification to succeed if the system is in
error state.
Nikos Mavrogiannopoulos [Mon, 7 Nov 2016 08:11:24 +0000 (09:11 +0100)]
fips140-2: moved PCT-test in wrap_nettle_generate_keys
This allows it to run in any potential scenario, i.e., any
call of _gnutls_pk_generate_keys().
Nikos Mavrogiannopoulos [Sat, 5 Nov 2016 18:18:08 +0000 (19:18 +0100)]
doc update
Nikos Mavrogiannopoulos [Sun, 6 Nov 2016 09:03:35 +0000 (10:03 +0100)]
.gitlab-ci.yml: use included libtasn1 in CI systems which do not have 4.9
Nikos Mavrogiannopoulos [Sat, 3 Sep 2016 08:31:27 +0000 (10:31 +0200)]
bumped the version of the minimum required libtasn1
We now require the latest version that supports OIDs
with elements that are longer than 32-bits.
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 09:16:12 +0000 (11:16 +0200)]
tests: added check for the decoding of certificates with long OIDs
That is, OIDs which have an element which exceeds 2^32.
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 09:42:58 +0000 (10:42 +0100)]
symbol-check: do not compare against symbols not exported by us
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 08:49:41 +0000 (09:49 +0100)]
doc update
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 08:34:55 +0000 (09:34 +0100)]
tests: updated known ciphersuites test for CHACHA20-POLY1305 in the SECURE set
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 08:10:18 +0000 (09:10 +0100)]
priorities: added CHACHA20-POLY1305 to SECURE set
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 07:15:24 +0000 (08:15 +0100)]
released 3.5.6
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 06:58:48 +0000 (07:58 +0100)]
bumped versions
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 06:56:33 +0000 (07:56 +0100)]
symbols.last: updated auto-generated file
Nikos Mavrogiannopoulos [Wed, 19 Oct 2016 08:27:26 +0000 (10:27 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 09:18:09 +0000 (10:18 +0100)]
tests: added test to ensure that gnutls_rnd() is not called during initialization
Nikos Mavrogiannopoulos [Mon, 24 Oct 2016 06:30:06 +0000 (08:30 +0200)]
doc: explicitly state that rng self_test mustn't require rng initialization
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 12:10:08 +0000 (14:10 +0200)]
deprecated _gnutls_rnd() in favor of exported gnutls_rnd()
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 12:16:51 +0000 (14:16 +0200)]
rng: split initialization in preinit and init
This makes gnutls to initialize its random generator on the
first call to gnutls_rnd(). That prevents blocking due to
getrandom() on a constructor; that change allows to use gnutls-linked
applications even in early boot in systems where getrandom() blocks
waiting for entropy.
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 10:40:12 +0000 (11:40 +0100)]
_gnutls_rnd_check: call _rnd_system_entropy_check directly
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 17:07:13 +0000 (18:07 +0100)]
x509: removed unused IDNA file
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 12:24:59 +0000 (13:24 +0100)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 07:29:25 +0000 (08:29 +0100)]
handshake: log advertized version
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 07:13:38 +0000 (08:13 +0100)]
algorithms.h: removed exported prototype from internal header
Nikos Mavrogiannopoulos [Tue, 1 Nov 2016 17:39:38 +0000 (18:39 +0100)]
doc update
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 16:23:16 +0000 (17:23 +0100)]
doc update
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 15:59:20 +0000 (16:59 +0100)]
tests: added decoding of multi-value DN
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:21:37 +0000 (14:21 +0100)]
x509_dn: forbid non-supported escaped chars on DN encoding
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:07:13 +0000 (14:07 +0100)]
tests: enhanced RFC4514 with arbitrary escaped strings
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:07:27 +0000 (14:07 +0100)]
x509_dn: allow arbitrary escaped strings
In addition fail encoding on unescaped '+'. We do not support it
for DN encoding.
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 12:46:49 +0000 (14:46 +0200)]
tests: modified to account for backwards-encoded DN (according to RFC4514)
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 12:18:17 +0000 (13:18 +0100)]
tests: removed old README file
The description in the file had no relevance to the existing tests.
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 12:00:14 +0000 (13:00 +0100)]
gnutls_x509_crt_set_*dn, gnutls_x509_dn_set_str: honor the reverse property of RFC4514
When converting an RFC4514 string to a DN ensure that the elements
are encoded in reverse order, as required by the RFC.
Resolves #111
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 13:35:44 +0000 (15:35 +0200)]
Encode string DNs backwards according to RFC4514
This makes the output string from functions such as gnutls_x509_crt_get*dn()
to comply with RFC4514 requirements in DN element order.
Relates #111
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:41:10 +0000 (14:41 +0100)]
Updated issue templates [ci skip]
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:35:22 +0000 (14:35 +0100)]
Added issue templates [ci skip]
Nikos Mavrogiannopoulos [Sat, 29 Oct 2016 21:45:18 +0000 (23:45 +0200)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Sat, 29 Oct 2016 21:31:00 +0000 (23:31 +0200)]
nettle: renamed system random generator-related files for clarity
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 12:34:10 +0000 (14:34 +0200)]
tests: introduced checks for gnutls_rnd() in multi-threaded scenario
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 12:33:53 +0000 (14:33 +0200)]
tests: introduced sanity checks in rng-fork
Nikos Mavrogiannopoulos [Mon, 24 Oct 2016 06:30:29 +0000 (08:30 +0200)]
drbg-aes-self-test: corrected free call
Nikos Mavrogiannopoulos [Thu, 27 Oct 2016 19:04:49 +0000 (21:04 +0200)]
tests: check for gnutls 3.3.x compatibility
That is, check whether the status request extension is not sent
by the server, if the server does not hold a status response. We
require that behavior to be backwards compatible with gnutls 3.3.x.
Nikos Mavrogiannopoulos [Wed, 26 Oct 2016 15:51:11 +0000 (17:51 +0200)]
Reverted the behavior of sending a status request extension even without a response
That is, we no longer reply to a client's hello with a status request, with
a status request extension. Although that behavior which was introduced
in
6b76e0c899b1ff08df9bd9b41588f771f050be89 is legal, it creates incompatibility
issues with gnutls 3.3.x branch. That is because versions prior 3.3.26
translates the presence of the extension as a guarrantee that the status
response data will be sent. Even though, that is false assumption we
replicate the previous behavior to allow such clients to connect to
a gnutls 3.5.x server.
Relates !66
Dmitry Eremin-Solenikov [Thu, 27 Oct 2016 15:42:38 +0000 (18:42 +0300)]
tests: do not enable testpkcs11.sh twice
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Sat, 22 Oct 2016 11:24:16 +0000 (14:24 +0300)]
starttls: search for chat in sbin if it is not present in PATH
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 01:17:36 +0000 (04:17 +0300)]
Fix autoconf warnings in libopts.m4
Without this patch Autoconf will spam console with the following kind of
messages:
configure.ac:650: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2740: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2759: AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2042: AC_CACHE_VAL is expanded from...
src/libopts/m4/libopts.m4:386: LIBOPTS_RUN_FOPEN_TEXT is expanded from...
src/libopts/m4/libopts.m4:425: INVOKE_LIBOPTS_MACROS is expanded from...
src/libopts/m4/libopts.m4:560: AM_COND_IF is expanded from...
src/libopts/m4/libopts.m4:581: LIBOPTS_CHECK is expanded from...
configure.ac:650: the top level
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 23:18:40 +0000 (02:18 +0300)]
cfg.mk: fix m4 files removal
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 15:45:03 +0000 (17:45 +0200)]
tests: better check for gnutls_ecc_curve_get result
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 15:30:43 +0000 (17:30 +0200)]
Terminate handshake if only unknown or disabled signatures are advertized by the peer
That is, do not attempt to proceed assuming that the peer supports SHA-1.
Dmitry Eremin-Solenikov [Sat, 22 Oct 2016 00:28:14 +0000 (03:28 +0300)]
Fix compilation of tests if nettle is not installed in standard path
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Nikos Mavrogiannopoulos [Tue, 25 Oct 2016 06:03:32 +0000 (08:03 +0200)]
gnutls-cli-debug: corrected TLS1.2 detection
Nikos Mavrogiannopoulos [Mon, 24 Oct 2016 06:33:42 +0000 (08:33 +0200)]
doc update
Nikos Mavrogiannopoulos [Sat, 22 Oct 2016 07:41:45 +0000 (09:41 +0200)]
modified the gnutls_certificate_set_key* change
While the change was fully backwards compatible for applications that were
adding a single certificate, and applications that were checking for negative
errors codes, many applications do not. As this may cause incompatibility issues
with software properly utilizing the previously documented API, the change
is reverted, and applications need to explicitly enable a flag (GNUTLS_CERTIFICATE_API_V2)
in the credentials structure for the set_key functions to return an index.
Nikos Mavrogiannopoulos [Wed, 19 Oct 2016 21:06:59 +0000 (23:06 +0200)]
tests: removed nohats.ca from testdane
The host seems to be unreliable.
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 14:43:47 +0000 (16:43 +0200)]
.travis.yml: use as many jobs as CPUs in OSX
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 14:14:32 +0000 (16:14 +0200)]
.travis.yml: do not run the public submodule checks of maint.mk
These seem to be problematic to detect modification and are preventing
the CI from operating.
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 11:16:50 +0000 (13:16 +0200)]
.travis.yml: simplified the submodule checkout
The default submodule initialization in travis caused the MacOSX builds to fail.
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 11:15:19 +0000 (13:15 +0200)]
Added casts to prevent compiler warnings