]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Tim Rühsen [Wed, 2 Jan 2019 08:49:19 +0000 (09:49 +0100)]
Update copyright year in doc/gnutls.texi
This fixes the following error of 'make syntax-check':
maint.mk: out of date copyright in doc/gnutls.texi; update it
make: *** [maint.mk:1201: sc_copyright_check] Error 1
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Nikos Mavrogiannopoulos [Tue, 1 Jan 2019 11:22:34 +0000 (11:22 +0000)]
Merge branch 'tmp-fix-examples' into 'master'
examples: use a valid DNS name
Closes #663
See merge request gnutls/gnutls!848
Nikos Mavrogiannopoulos [Sun, 30 Dec 2018 15:25:08 +0000 (16:25 +0100)]
examples: ignore GNUTLS_E_AGAIN or INTERRUPTED errors
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 30 Dec 2018 15:00:43 +0000 (16:00 +0100)]
examples: use a valid DNS name
This prevents a gnutls server from sending an unexpected message
alert due to invalid DNS name encoding, if the example is not modified.
Resolves: #663
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Dmitry Eremin-Solenikov [Sat, 29 Dec 2018 22:54:14 +0000 (22:54 +0000)]
Merge branch 'tmp-fix-ossfuzz' into 'master'
Fix OSS-Fuzz build
See merge request gnutls/gnutls!847
Tim Rühsen [Sat, 29 Dec 2018 18:16:57 +0000 (19:16 +0100)]
Fix OSS-Fuzz build
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Dmitry Eremin-Solenikov [Sat, 29 Dec 2018 13:15:12 +0000 (13:15 +0000)]
Merge branch 'fix-libressl' into 'master'
Fix cipher-openssl-compat failing with LibreSSL
Closes #658
See merge request gnutls/gnutls!846
Dmitry Eremin-Solenikov [Tue, 25 Dec 2018 11:44:11 +0000 (14:44 +0300)]
tests: cipher-openssl-compat: don't call EVP_CIPHER_CTX_init()
There is no need to call EVP_CIPHER_CTX_init() after
EVP_CIPHER_CTX_new().
Fixes #658
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Tue, 25 Dec 2018 11:43:56 +0000 (14:43 +0300)]
tests: cipher-openssl-compat: don't fail if OpenSSL doesn't provide cipher
LibreSSL does not provide ChaCha20-Poly1305 through EVP_CIPHER
interface, so let's skip the test if cipher is not available.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Mon, 24 Dec 2018 22:20:54 +0000 (22:20 +0000)]
Merge branch 'tmp-test-ecc' into 'master'
gnutls_pubkey_import_ecc_raw: set the public key bits
Closes #640
See merge request gnutls/gnutls!843
Nikos Mavrogiannopoulos [Thu, 20 Dec 2018 16:49:21 +0000 (17:49 +0100)]
gnutls_pubkey_import_ecc_raw: set the public key bits
This sets the number of key bits once an ECC key is imported.
Resolves #640
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Tim Rühsen [Fri, 21 Dec 2018 10:31:22 +0000 (10:31 +0000)]
Merge branch 'tmp-no-well-defined' into 'master'
GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION: deprecated
See merge request gnutls/gnutls!844
Nikos Mavrogiannopoulos [Fri, 21 Dec 2018 06:58:24 +0000 (07:58 +0100)]
GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION: deprecated
This removes the documented use of this macro. It was non-functional.
Given the nature of the definition of the non-well defined date for
certificates, it may be wise not to use a special macro at all. The
reason is that the no-well defined date is a real date (~year 9999),
and any approximation with seconds will be unstable due to irregular
leap seconds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 21 Dec 2018 06:54:40 +0000 (07:54 +0100)]
gnutls-cli-debug: removed unused variable
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 21 Dec 2018 06:36:38 +0000 (06:36 +0000)]
Merge branch 'tmp-testrandom.sh' into 'master'
testrandom.sh: Fix endless loop
Closes #656
See merge request gnutls/gnutls!842
Nikos Mavrogiannopoulos [Thu, 20 Dec 2018 19:40:48 +0000 (19:40 +0000)]
Merge branch 'use_CertOpenStore' into 'master'
win32: Use CertOpenStore instead of CertOpenSystemStore
See merge request gnutls/gnutls!839
Hugo Beauzée-Luyssen [Mon, 17 Dec 2018 10:37:12 +0000 (11:37 +0100)]
win32: Check that CertOpenStore is behaving as CertOpenSystemStore
The test isn't located in tests/windows since we need the actual
libcrypt32 implementations.
Tim Rühsen [Thu, 20 Dec 2018 15:33:34 +0000 (16:33 +0100)]
testrandom.sh: Fix endless loop
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Nikos Mavrogiannopoulos [Wed, 19 Dec 2018 14:02:41 +0000 (14:02 +0000)]
Merge branch 'tmp-comment-style' into 'master'
CONTRIBUTING.md: added proposal on commenting style and new features
See merge request gnutls/gnutls!816
Nikos Mavrogiannopoulos [Wed, 19 Dec 2018 11:43:57 +0000 (11:43 +0000)]
Merge branch 'winstore_patches' into 'master'
Windows & Windows Store store patches
See merge request gnutls/gnutls!835
Nikos Mavrogiannopoulos [Wed, 19 Dec 2018 11:37:56 +0000 (11:37 +0000)]
Merge branch 'tmp-vasprintf' into 'master'
vasprintf: use from gnulib; don't bundle twice
See merge request gnutls/gnutls!841
Nikos Mavrogiannopoulos [Wed, 19 Dec 2018 08:41:41 +0000 (09:41 +0100)]
vasprintf: use from gnulib; don't bundle twice
Relates #653
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Hugo Beauzée-Luyssen [Thu, 13 Dec 2018 16:31:29 +0000 (17:31 +0100)]
win32: Use CertOpenStore instead of CertOpenSystemStore
CertOpenSystemStore is not available when building for windows store.
Both functions are available since windows XP, so there is no
compatibility change.
CertOpenSystemStore documentation states "Only current user certificates
are accessible using this method, not the local machine store." hence we
pass CERT_SYSTEM_STORE_CURRENT_USER.
We also use the wide chars variants, in the event the ansi ones are
silently rejected by windows store applications (which is not
documented, but which I strongly suspect)
This is equivalent to Wine's implementation of CertOpenSystemStore:
https://github.com/wine-mirror/wine/blob/master/dlls/crypt32/store.c#L904
Hugo Beauzée-Luyssen [Tue, 4 Dec 2018 14:18:36 +0000 (15:18 +0100)]
keys-win: Disable private key import on windows store
Windows store drastically limits the available functions.
In this case, at least CryptSetProvParam and the NCrypt* functions
can't be used
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Hugo Beauzée-Luyssen [Tue, 4 Dec 2018 12:22:52 +0000 (13:22 +0100)]
verify-high2: Fix cert dir iteration on Win32
And especially when building for windows store, which only allows
unicode version of opendir & friends functions.
Hugo Beauzée-Luyssen [Tue, 4 Dec 2018 10:53:48 +0000 (11:53 +0100)]
lib: Don't hardcode LoadLibraryA
Those functions are forbidden when building for Windows Store
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Tim Rühsen [Wed, 19 Dec 2018 07:52:12 +0000 (07:52 +0000)]
Merge branch 'tmp-portable-tests' into 'master'
Make some tests more portable
See merge request gnutls/gnutls!819
Tim Rühsen [Tue, 18 Dec 2018 15:27:29 +0000 (16:27 +0100)]
.gitlab-ci.yml: Remove assert in gl/tests/test-strerror.c
A bug made our CI cross builds fail.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916779
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 15:22:10 +0000 (16:22 +0100)]
tests/cert-tests/certtool-eddsa: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 15:20:17 +0000 (16:20 +0100)]
tests/cert-tests/certtool: SKIP if --disable-bash-tests was given
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 15:13:31 +0000 (16:13 +0100)]
tests/cert-tests/pkcs12-utf8: Use /bin/sh instead of bash
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 15:12:31 +0000 (16:12 +0100)]
tests/cert-tests/pkcs12-corner-cases: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 15:11:53 +0000 (16:11 +0100)]
tests/cert-tests/certtool-ecdsa: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 15:06:18 +0000 (16:06 +0100)]
tests/cert-tests/pem-decoding: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 12:28:26 +0000 (13:28 +0100)]
tests/cert-tests/certtool-crl-decoding: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 11:34:01 +0000 (12:34 +0100)]
tests/long-crl.sh: Increase portability (fix for busybox)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 11:14:27 +0000 (12:14 +0100)]
tests/gnutls-cli-debug.sh: Remove bashisms
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 23 Nov 2018 18:58:49 +0000 (19:58 +0100)]
tests/scripts/common.sh: Add check_if_equal()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 16 Nov 2018 11:08:06 +0000 (12:08 +0100)]
tests/scripts/common.sh: Make random port value work on busybox
On busybox 'date +%N' returns an empty value.
On 'dash' (Debian shell) $RANDOM doesn't work.
This commit works first tries $RANDOM and then falls back to 'date +%N'.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Nikos Mavrogiannopoulos [Sun, 16 Dec 2018 05:34:54 +0000 (05:34 +0000)]
Merge branch 'fix-token-info-modname' into 'master'
Fix gnutls_pkcs11_token_get_info for short output buffers and fix a memleak
See merge request gnutls/gnutls!827
Nikos Mavrogiannopoulos [Sat, 15 Dec 2018 21:14:18 +0000 (22:14 +0100)]
doc: minor fixes [ci skip]
Created NEWS entry for 3.6.6 and unified the listing of gnutls_init_flags_t
items.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 15 Dec 2018 21:10:28 +0000 (21:10 +0000)]
Merge branch 'rfc7250_rawpk_mr' into 'master'
RFC7250 Raw public keys
Closes #280 and #26
See merge request gnutls/gnutls!650
Peter Wu [Sat, 15 Dec 2018 21:01:10 +0000 (22:01 +0100)]
pkcs11: fix memleak in gnutls_pkcs11_token_get_ptr
find_token_modname_cb uses p11_kit_config_option to retrieve the module
name, but its return value (stored in tn.modname) must be freed.
Nikos Mavrogiannopoulos [Sat, 15 Dec 2018 20:18:22 +0000 (20:18 +0000)]
Merge branch 'unicode_support' into 'master'
Unicode support
See merge request gnutls/gnutls!838
Tom Vrancken [Sat, 26 Aug 2017 12:22:44 +0000 (14:22 +0200)]
Implemented support for raw public-key functionality (RFC7250).
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Hugo Beauzée-Luyssen [Thu, 13 Dec 2018 10:00:03 +0000 (11:00 +0100)]
configure.ac: Always enable unicode support on windows
Peter Wu [Thu, 29 Nov 2018 17:21:22 +0000 (18:21 +0100)]
pkcs11: fix memleak when querying for GNUTLS_PKCS11_TOKEN_MODNAME
find_token_modname_cb uses p11_kit_config_option to retrieve the module
name, but its return value must be free'd.
Other fixes:
- Do not silently truncate the output buffer, return an error instead.
- If the module name is unavailable, do not write "(null)" to the
output. Write an empty string instead.
- The module path can be of arbitrary length, so passing output=NULL to
learn the length seems reasonable, except that snprintf crashed on a
NULL pointer dereference.
Fixes: 241f9f0b1 ("Added GNUTLS_PKCS11_TOKEN_MODNAME for gnutls_pkcs11_token_get_info")
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Peter Wu [Thu, 29 Nov 2018 17:43:39 +0000 (18:43 +0100)]
pkcs11: clarify gnutls_pkcs11_*_get_info output_size
It was not clear whether @output_size contains the actual string length
or the buffer length (including null terminator).
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Dmitry Eremin-Solenikov [Wed, 12 Dec 2018 22:53:27 +0000 (22:53 +0000)]
Merge branch 'tmp-autogen-bak-update' into 'master'
build: remove src/*.bak from distribution
See merge request gnutls/gnutls!808
Tim Rühsen [Thu, 15 Nov 2018 09:44:20 +0000 (10:44 +0100)]
build: remove src/*.bak from distribution
Instead, include the autogen-generated *.c, *.h and the stamp files in
the distribution.
To prevent the bundled files being linked with incompatible autogen
libopts, this adds an extra check in configure. If the detected
system libopts version is too old, it will use the included libopts
implementation.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Tim Rühsen [Wed, 12 Dec 2018 10:23:43 +0000 (10:23 +0000)]
Merge branch 'tmp-fix-GNUTLS_PCERT_NO_CERT' into 'master'
GNUTLS_PCERT_NO_CERT: marked as unused/ignored
See merge request gnutls/gnutls!837
Nikos Mavrogiannopoulos [Wed, 12 Dec 2018 08:48:01 +0000 (09:48 +0100)]
GNUTLS_PCERT_NO_CERT: marked as unused/ignored
This flag was already a no-op.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 11 Dec 2018 08:34:22 +0000 (09:34 +0100)]
srp/psk: update recommendations for usernames [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 12 Dec 2018 05:15:25 +0000 (06:15 +0100)]
doc: include PSK examples into documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 11 Dec 2018 06:01:32 +0000 (06:01 +0000)]
Merge branch 'tmp-ccs-tls13' into 'master'
record: make CCS handling stricter in TLS 1.3
Closes #618
See merge request gnutls/gnutls!817
Daiki Ueno [Thu, 6 Dec 2018 13:59:30 +0000 (14:59 +0100)]
tlsfuzzer: update to the latest upstream to eanble CCS tests
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Dmitry Eremin-Solenikov [Fri, 7 Dec 2018 11:12:43 +0000 (11:12 +0000)]
Merge branch 'tmp-fix-timeout' into 'master'
Fix gnutls_handshake_set_timeout() for values < 1000
See merge request gnutls/gnutls!834
Tim Rühsen [Tue, 4 Dec 2018 16:15:02 +0000 (17:15 +0100)]
Fix gnutls_handshake_set_timeout() for values < 1000
handshake-timeout.c now tests for <1000ms timeout and for >=1000ms
timeout. The test duration decreased from 45s to 1.2s.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Daiki Ueno [Thu, 22 Nov 2018 13:59:11 +0000 (14:59 +0100)]
record: make CCS handling stricter in TLS 1.3
In TLS 1.3, the change_cipher_spec messages received under the
following conditions should be treated as unexpected record type:
containing value other than 0x01, or received after the handshake.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Dec 2018 22:40:01 +0000 (22:40 +0000)]
Merge branch 'tmp-submodules' into 'master'
bootstrap: only update the required submodules for building
See merge request gnutls/gnutls!836
Nikos Mavrogiannopoulos [Wed, 5 Dec 2018 13:44:23 +0000 (14:44 +0100)]
bootstrap: only update the required submodules for building
Although we have few submodules they are not all required for
building and testing. This patch modified bootstrap.conf not
to update all of them, but only the necessary for building and
testing.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sun, 2 Dec 2018 08:40:14 +0000 (08:40 +0000)]
Merge branch 'tmp-ametzler-nettle-not-found-error' into 'master'
Fix error message on too old nettle
See merge request gnutls/gnutls!833
Andreas Metzler [Sat, 1 Dec 2018 12:26:20 +0000 (13:26 +0100)]
Fix error message on old or missing nettle.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Nikos Mavrogiannopoulos [Sat, 1 Dec 2018 05:04:45 +0000 (06:04 +0100)]
released 3.4.1
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 1 Dec 2018 05:20:37 +0000 (05:20 +0000)]
Merge branch 'tmp-fix-CVE-2018-16868' into 'master'
CVE-2018-16868
Closes #630
See merge request gnutls/gnutls!832
Simo Sorce [Wed, 3 Oct 2018 17:12:38 +0000 (13:12 -0400)]
Constant time/cache PKCS#1 RSA decryption
This patch tries to make the code have the same time and memory access
aptterns across all branches of the decryption function so that timining
or cache side channels are minimized or neutralized.
To do so it uses a new nettle rsa decryption function that is
side-channel silent.
Signed-off-by: Simo Sorce <simo@redhat.com>
Nikos Mavrogiannopoulos [Wed, 28 Nov 2018 15:00:34 +0000 (16:00 +0100)]
Added test about rsa decryption under pkcs11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 30 Nov 2018 09:28:28 +0000 (10:28 +0100)]
gnutls_x509_crt_set_expiration_time: fixed documentation [ci skip]
Fixed the documentation of the function to reflect reality.
This function did not accept the GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION
macro.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 30 Nov 2018 07:49:50 +0000 (08:49 +0100)]
NEWS: updated [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 30 Nov 2018 07:44:35 +0000 (08:44 +0100)]
bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 30 Nov 2018 07:07:38 +0000 (07:07 +0000)]
Merge branch 'drbg' into 'master'
DRBG: Remove all traces of FIPS 140-2 continuous self test
See merge request gnutls/gnutls!820
Nikos Mavrogiannopoulos [Thu, 29 Nov 2018 11:40:29 +0000 (11:40 +0000)]
Merge branch 'test-mingw-macos' into 'master'
Fix MacOS X builds
See merge request gnutls/gnutls!826
Dmitry Eremin-Solenikov [Thu, 29 Nov 2018 03:05:22 +0000 (06:05 +0300)]
tests: attempt to fix test errors on Mac OS X
It looks like Mac OS X's grep has issues with applying basic regexps
with alternation operator inside. Use several grep calls in pipeline to
achieve the same result.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Wed, 28 Nov 2018 20:39:32 +0000 (23:39 +0300)]
travis: print logs for all failed tests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Thu, 29 Nov 2018 03:00:30 +0000 (03:00 +0000)]
Merge branch 'ckm-eddsa' into 'master'
lib: fix pkcs11 using defines from PKCS#11 3.0 for EdDSA
Closes #626
See merge request gnutls/gnutls!823
Dmitry Eremin-Solenikov [Wed, 28 Nov 2018 11:10:35 +0000 (14:10 +0300)]
lib: fix pkcs11 using defines from PKCS#11 3.0 for EdDSA
pkcs11 support code uses several definitions from forthcoming PKCS#11
standard version. Older p11-kit versions do not provide these
definitions. Detect and disable code supporting EdDSA if compiling
GnuTLS with older p11-kit library.
Closes #626
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fixes: 88377775a3eff679a9ec60ab9bfc6b3c683a0407
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Nikos Mavrogiannopoulos [Wed, 28 Nov 2018 19:08:29 +0000 (20:08 +0100)]
CONTRIBUTING.md: specify rules for static/inline functions [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 22 Nov 2018 16:36:17 +0000 (17:36 +0100)]
CONTRIBUTING.md: proposal for new features/modifications approach [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 21 Nov 2018 20:09:33 +0000 (21:09 +0100)]
CONTRIBUTING.md: added proposal on commenting style [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 28 Nov 2018 18:51:14 +0000 (18:51 +0000)]
Merge branch 'fix-mingw' into 'master'
tests: fix crl test under MinGW32/64
See merge request gnutls/gnutls!824
Dmitry Eremin-Solenikov [Wed, 28 Nov 2018 13:03:59 +0000 (16:03 +0300)]
tests: fix crl test under MinGW32/64
Use --outfile instead of output redirection to stop CR from sneaking
into temp file. Extra CR symbols make grep choke on that file.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Stephan Mueller [Tue, 27 Nov 2018 21:27:26 +0000 (22:27 +0100)]
DRBG: Use ACVP validated test vector in self test
Due to removing all of the FIPS 140-2 continuous self test leftovers,
the DRBG test vector must be updated as the very first DRBG block is not
dropped any more.
The test complies with the CAVP test definition specified in "The
NIST SP 800-90A Deterministic Random Bit Generator Validation
System (DRBGVS)" section 6.2.
The test vector is obtained during a successful trial run using the
NIST ACVP server. The following registration was used to generate the
test vector:
{
"algorithm":"ctrDRBG",
"prereqVals":[
{
"algorithm":"AES",
"valValue":"same"
}
],
"predResistanceEnabled":[
false
],
"reseedImplemented":true,
"capabilities":[
{
"mode":"AES-256",
"derFuncEnabled":false,
"entropyInputLen":[
384
],
"nonceLen":[
0
],
"persoStringLen":[
0,
256
],
"additionalInputLen":[
0,
256
],
"returnedBitsLen":512
}
]
},
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Nikos Mavrogiannopoulos [Tue, 27 Nov 2018 12:47:46 +0000 (13:47 +0100)]
Fix session description info printing
This fixes a truncation issue in session description information printing
for certain ciphersuites, and adds a limited testing of expected description
strings for certain ciphersuites.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Tim Rühsen [Tue, 27 Nov 2018 14:05:00 +0000 (14:05 +0000)]
Merge branch 'tpm12_extend_testcase' into 'master'
Fix some minor issue in the TPM test cases
See merge request gnutls/gnutls!814
Nikos Mavrogiannopoulos [Tue, 27 Nov 2018 13:06:19 +0000 (13:06 +0000)]
Merge branch 'tmp-tls10-tls13-fix' into 'master'
Prevent applications from combining legacy versions of TLS with TLS1.3
Closes #621
See merge request gnutls/gnutls!815
Nikos Mavrogiannopoulos [Tue, 20 Nov 2018 10:30:22 +0000 (11:30 +0100)]
Prevent applications from combining legacy versions of TLS with TLS1.3
It can happen that an application due to a misconfiguration, enables TLS1.3
in combination with TLS1.0 or TLS1.1 only. In that case a server which is
unaware of the TLS1.3 protocol will reply by selecting the TLS1.2 protocol
instead and that answer will be rejected by the client. With this change
we ensure that TLS1.3 is not enabled in these problematic scenarios.
Resolves: #621
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Dmitry Eremin-Solenikov [Tue, 27 Nov 2018 10:59:04 +0000 (10:59 +0000)]
Merge branch 'pem-notext' into 'master'
certtool: don't output textual information if --no-text was given
Closes #487
See merge request gnutls/gnutls!810
Dmitry Eremin-Solenikov [Wed, 21 Nov 2018 15:35:07 +0000 (18:35 +0300)]
cert-tests: verify --no-text switch for pkcs7/pkcs12 info
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Fri, 16 Nov 2018 00:46:52 +0000 (03:46 +0300)]
certtool: don't output textual information if --no-text was given
Disable text output if --no-text option was given for --p7-info and
--p12-info.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Wed, 21 Nov 2018 17:05:20 +0000 (20:05 +0300)]
certtool: don't output pkcs12 information to stderr
Print all pkcs12-info output to outfile, rather than stderr.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Wed, 21 Nov 2018 15:35:07 +0000 (18:35 +0300)]
cert-tests: verify --no-text switch for cert/crq/pub/privkeys
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Dmitry Eremin-Solenikov [Fri, 16 Nov 2018 00:46:52 +0000 (03:46 +0300)]
certtool: don't output textual information if --no-text was given
Change privkey/certificate/CRL/CSR handling to disable text output if
--no-text option was given.
Closes #487
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Stefan Berger [Mon, 19 Nov 2018 16:47:45 +0000 (11:47 -0500)]
tests: tpm: Use kill_proc to terminate a process
Use kill_proc to terminate a process by first sending it SIGTERM,
waiting max. 1 second and then use SIGKILL.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Stefan Berger [Mon, 19 Nov 2018 16:19:53 +0000 (11:19 -0500)]
tests: tpm: Redirect help screen output to stdout
The dash shell doesn't seem to understand &>/dev/null, so use
>/dev/null to quiet down the help screen check.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Daiki Ueno [Mon, 26 Nov 2018 06:34:17 +0000 (06:34 +0000)]
Merge branch 'tmp-minor-fixes' into 'master'
Minor fixes towards 3.6.5
See merge request gnutls/gnutls!818
Daiki Ueno [Sat, 24 Nov 2018 15:59:12 +0000 (16:59 +0100)]
doc: suggest to check max_early_data_size before sending early data
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 22 Nov 2018 13:59:54 +0000 (14:59 +0100)]
tests: resume: suppress compiler warnings
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Stephan Mueller [Sun, 25 Nov 2018 12:46:44 +0000 (13:46 +0100)]
DRBG: Remove all traces of FIPS 140-2 continuous self test
The removal allows the CAVS / ACVP test required for a successful FIPS
140-2 validation to pass.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Daiki Ueno [Thu, 22 Nov 2018 14:04:00 +0000 (15:04 +0100)]
.gitignore: ignore more files and sort them alphabetically
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Tim Rühsen [Sat, 24 Nov 2018 14:58:48 +0000 (15:58 +0100)]
bootstrap.conf: add "autogen" to buildreq
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>