]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Ludovic Courtès [Thu, 11 Feb 2016 22:04:35 +0000 (23:04 +0100)]
guile: Build and install .go files on Guile 2.x.
* configure.ac: Check for 'guild' and substitute 'GUILD'. Define
'HAVE_GUILD'. Substitute 'guileobjectdir'. Don't output
guile/modules/Makefile and guile/tests/Makefile.
* guile/modules/Makefile.am, guile/tests/Makefile.am: Remove. Move
contents to...
* guile/Makefile.am: ... here.
(SUBDIRS): Remove 'modules' and 'tests'.
Ludovic Courtès [Thu, 11 Feb 2016 22:04:34 +0000 (23:04 +0100)]
guile: doc: Change prompt in examples.
* doc/gnutls-guile.texi (Guile Preparations): Use the prompt found in
2.0. Change "libguile-gnutls-v-0" to "guile-gnutls-v-2".
Ludovic Courtès [Thu, 11 Feb 2016 22:04:33 +0000 (23:04 +0100)]
guile: tests: Add Guile 2.2 compatibility layer.
This allows tests to run with Guile 2.1/2.2.
* guile/modules/gnutls/build/tests.scm (define-replacement) [guile-2]:
New macro.
(uniform-vector-read!, uniform-vector-write) [guile-2]: New procedures.
* doc/gnutls-guile.texi (Guile Preparations): Mention 2.2.
Ludovic Courtès [Thu, 11 Feb 2016 22:04:32 +0000 (23:04 +0100)]
guile: tests: Make sure no processes are left behind.
Before that, child processes would be left behind and become zombies.
* guile/tests/anonymous-auth.scm, guile/tests/openpgp-auth.scm,
guile/tests/session-record-port.scm, guile/tests/x509-auth.scm:
Add (waitpid pid) call on the server side.
Ludovic Courtès [Thu, 11 Feb 2016 22:04:31 +0000 (23:04 +0100)]
guile: tests: Add 'with-child-process'.
This makes sure that child processes always exit no matter what.
* guile/modules/gnutls/build/tests.scm (define-syntax-rule) [!guile-2]:
New macro.
(call-with-child-process): New procedure.
(with-child-process): New macro.
* guile/tests/anonymous-auth.scm, guile/tests/openpgp-auth.scm,
guile/tests/session-record-port.scm, guile/tests/x509-auth.scm: Use it
instead of an explicit 'primitive-fork' call.
* guile/.dir-locals.el: New file.
* guile/Makefile.am (EXTRA_DIST): New variable.
Nikos Mavrogiannopoulos [Mon, 15 Feb 2016 08:52:10 +0000 (09:52 +0100)]
tests: mini-loss-time: ensure client timeouts after the server is
This addresses issue with the server detecting the client disconnection
prior to its timeout. Reported by Steven Chamberlain, Andreas Metzler.
Jaak Ristioja [Fri, 12 Feb 2016 14:59:31 +0000 (16:59 +0200)]
Removed the invariant htype parameter of _gnutls_recv_int()
All uses of _gnutls_recv_int() passed -1 as the htype argument of type
gnutls_handshake_description_t, which had been used for SSLv2 client
hellos. Introduced in 2001 with
dc1122e7b6 .
Nikos Mavrogiannopoulos [Sun, 14 Feb 2016 17:41:01 +0000 (18:41 +0100)]
provable RSA key generation: adjust the seed size based on N size
Nikos Mavrogiannopoulos [Sun, 14 Feb 2016 17:18:38 +0000 (18:18 +0100)]
provable RSA key generation: allow non-2048 and non-3072 keys
That is enforce the 2048 and 3072-bit limit to FIPS when in FIPS140-2
mode.
Nikos Mavrogiannopoulos [Sat, 13 Feb 2016 17:21:08 +0000 (18:21 +0100)]
DH/DSA: allow the generation of larger than 15360 bit parameters
Nikos Mavrogiannopoulos [Sat, 13 Feb 2016 13:50:19 +0000 (14:50 +0100)]
tests: eliminated mem leak in hash-large
Nikos Mavrogiannopoulos [Fri, 12 Feb 2016 14:16:55 +0000 (15:16 +0100)]
tests: check whether large buffer hashes and MAC work as expected
Nikos Mavrogiannopoulos [Fri, 12 Feb 2016 09:48:12 +0000 (10:48 +0100)]
nettle: use the correct type for hash and MAC functions
Nikos Mavrogiannopoulos [Sat, 6 Feb 2016 21:44:37 +0000 (22:44 +0100)]
provable prime generation: arbitrary seed lengths are accepted in non-FIPS mode
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 11:10:57 +0000 (12:10 +0100)]
gnutls-cli: improved indentation in benchmark output
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 10:43:27 +0000 (11:43 +0100)]
certtool: removed unused variable
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 10:00:15 +0000 (11:00 +0100)]
certtool: the --generate-dh-params option can be combined with --provable
This however, will generate provable DSA parameters and import them
as DH parameters.
Resolves #72
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 09:42:34 +0000 (10:42 +0100)]
certtool: the --dh-info option will retrieve DH parameters from DSA keys
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 09:34:52 +0000 (10:34 +0100)]
tests: added check for gnutls_dh_params_import_dsa
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 09:05:58 +0000 (10:05 +0100)]
doc update
Nikos Mavrogiannopoulos [Thu, 11 Feb 2016 09:05:13 +0000 (10:05 +0100)]
Added gnutls_dh_params_import_dsa() which allows to import DSA parameters into DH ones
This simplifies importing DSA private keys into DH parameters.
Nikos Mavrogiannopoulos [Wed, 10 Feb 2016 13:29:47 +0000 (14:29 +0100)]
tests: set_pkcs12_cred: existing tests are disabled when in FIPS140-2 mode
The tests require access to the RC4 cipher which is not available.
Attila Molnar [Wed, 10 Feb 2016 09:55:15 +0000 (10:55 +0100)]
Fix memory leak in gnutls_certificate_set_ocsp_status_request_file()
Signed-off-by: Attila Molnar <attilamolnar@hush.com>
Attila Molnar [Sat, 6 Feb 2016 17:16:59 +0000 (18:16 +0100)]
doc: Update description of credential alloc/dealloc functions
Get rid of "This structure is complex enough to manipulate directly..."
text which suggests that these functions are optional, "helper" functions
when in fact their usage is required for encapsulation reasons.
Nikos Mavrogiannopoulos [Wed, 10 Feb 2016 09:11:00 +0000 (10:11 +0100)]
doc update
Nikos Mavrogiannopoulos [Mon, 8 Feb 2016 10:23:33 +0000 (11:23 +0100)]
ALPN: added the GNUTLS_ALPN_SERVER_PRECEDENCE flag
This allows the server to set precedence on the protocols
it supports, rather than following the client's order.
Resolves #71
Andreas Metzler [Tue, 9 Feb 2016 12:37:49 +0000 (13:37 +0100)]
improve doc on special keywords in priority string
Special keywords in priority strings like %COMPAT may not be prefixed
with +, - or !, "NORMAL:+%COMPAT is invalid.
Attila Molnar [Sat, 6 Feb 2016 17:01:33 +0000 (18:01 +0100)]
doc: Fix some typos
Attila Molnar [Sat, 6 Feb 2016 16:50:05 +0000 (17:50 +0100)]
Remove remaining RSA-EXPORT support leftovers from doc and messages
Nikos Mavrogiannopoulos [Wed, 3 Feb 2016 08:20:05 +0000 (09:20 +0100)]
tests: pkcs11-pubkey-import-ecdsa will only work under softhsmv2
Andreas Metzler [Sun, 31 Jan 2016 16:59:37 +0000 (17:59 +0100)]
Fix some more typos.
certifcate, funtion, withing, missmatch
Nikos Mavrogiannopoulos [Sat, 30 Jan 2016 11:18:55 +0000 (12:18 +0100)]
tests: updated check to account for revert in
7d3caedb8df9d04eee9513cb5b3b417ae29927f5
Nikos Mavrogiannopoulos [Sat, 30 Jan 2016 11:15:07 +0000 (12:15 +0100)]
Revert "tests: updated to account for cert generation after
2adb9b2bfb31afebbdd9f990e2b74c9a3d4e5c57 fix"
This reverts commit
735dbde324be6c8785a3dea5f09c82b6a8ad298b .
Nikos Mavrogiannopoulos [Sat, 30 Jan 2016 10:15:13 +0000 (11:15 +0100)]
Revert "Fix out-of-bounds read in gnutls_x509_ext_export_key_usage"
This was not really an out-of-bounds check. Added documentation
to make that clear.
This reverts commit
ffbc9aaea7dcf29c03784d128b83f0682357858d .
Nikos Mavrogiannopoulos [Thu, 28 Jan 2016 12:14:14 +0000 (13:14 +0100)]
certtool: corrected email escaping in texinfo
Nikos Mavrogiannopoulos [Thu, 28 Jan 2016 09:45:17 +0000 (10:45 +0100)]
Replaced select() system call with poll() on POSIX systems
This allows to use the default gnutls functions with file descriptors
over the maximum supported by select.
Nikos Mavrogiannopoulos [Mon, 25 Jan 2016 10:08:21 +0000 (11:08 +0100)]
tests: windows: fixed check-output call
Nikos Mavrogiannopoulos [Fri, 22 Jan 2016 15:34:29 +0000 (16:34 +0100)]
tests: added dummy functions used by CAPI32 implementation
Nikos Mavrogiannopoulos [Fri, 22 Jan 2016 15:33:48 +0000 (16:33 +0100)]
tests: better checking for failure in windows cng check
Nikos Mavrogiannopoulos [Fri, 22 Jan 2016 11:59:47 +0000 (12:59 +0100)]
system-key-win: call CertFreeCertificateContext()
Bjørn Christensen [Fri, 22 Jan 2016 10:52:21 +0000 (11:52 +0100)]
system-key-win: added interface to CAPI, old style crypto api on windows
Nikos Mavrogiannopoulos [Thu, 21 Jan 2016 13:45:56 +0000 (14:45 +0100)]
certtool: corrected texinfo output for krb5_principal
Nikos Mavrogiannopoulos [Thu, 21 Jan 2016 11:58:56 +0000 (12:58 +0100)]
tests: priorities: account for the addition of CHACHA20-POLY1305
Nikos Mavrogiannopoulos [Thu, 21 Jan 2016 11:00:33 +0000 (12:00 +0100)]
CHACHA20_POLY1305 was added to the default priority strings
That is the NORMAL and PERFORMANCE priority strings now will
enable CHACHA20-POLY1305 by default.
Nikos Mavrogiannopoulos [Mon, 18 Jan 2016 17:38:36 +0000 (18:38 +0100)]
gnutls_global_init: log gnutls' version on initialization
Nikos Mavrogiannopoulos [Mon, 18 Jan 2016 14:56:02 +0000 (15:56 +0100)]
doc: corrected typo [ci skip]
Nikos Mavrogiannopoulos [Sat, 16 Jan 2016 19:54:20 +0000 (20:54 +0100)]
README: added trousers to list of dependencies [ci skip]
Nikos Mavrogiannopoulos [Sat, 16 Jan 2016 19:43:42 +0000 (20:43 +0100)]
tests: added check for KRB5Principal output
Resolves #67
Nikos Mavrogiannopoulos [Thu, 14 Jan 2016 16:16:00 +0000 (17:16 +0100)]
README.md -> README-alpha.md
Nikos Mavrogiannopoulos [Thu, 14 Jan 2016 16:09:23 +0000 (17:09 +0100)]
updated copyright info
Nikos Mavrogiannopoulos [Thu, 14 Jan 2016 16:04:54 +0000 (17:04 +0100)]
README: auto-generated from README-install.md
Nikos Mavrogiannopoulos [Thu, 14 Jan 2016 13:50:34 +0000 (14:50 +0100)]
gnutls_int.h: increased MAX_SERVER_NAME_SIZE to 256 bytes
Nikos Mavrogiannopoulos [Wed, 13 Jan 2016 12:14:55 +0000 (13:14 +0100)]
gnutls_pubkey_import_x509_raw: fixed memory leak
Nikos Mavrogiannopoulos [Fri, 8 Jan 2016 15:26:21 +0000 (16:26 +0100)]
tests: added check for the krb5_principal template option
Nikos Mavrogiannopoulos [Mon, 11 Jan 2016 14:11:41 +0000 (15:11 +0100)]
certtool: introduced the krb5_principal template option
Nikos Mavrogiannopoulos [Mon, 11 Jan 2016 14:09:23 +0000 (15:09 +0100)]
x509: introduced GNUTLS_SAN_OTHERNAME_KRB5PRINCIPAL
That allows to print and write KRB5PrincipalName othernames
in subject alternative name.
Nikos Mavrogiannopoulos [Mon, 11 Jan 2016 14:19:24 +0000 (15:19 +0100)]
x509: place newline when printing unsupported othernames
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 15:05:41 +0000 (16:05 +0100)]
x509: moved virtual subject alternative name othername support to virt-san.c
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 13:46:16 +0000 (14:46 +0100)]
gnutls_x509_crt_set_subject_alt_name: documented the version after which GNUTLS_SAN_OTHERNAME_XMPP is available
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 13:45:03 +0000 (14:45 +0100)]
tests: added check for XMPP othername generation
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 13:39:14 +0000 (14:39 +0100)]
certtool: allow writing xmpp_name
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 13:30:56 +0000 (14:30 +0100)]
Allow assigning 'virtual' SAN types via *_set_subject_alt_name()
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 12:47:38 +0000 (13:47 +0100)]
NEWS: document newly added functions
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 07:17:51 +0000 (08:17 +0100)]
alpn: when parsing the list of protocols return at the first mutually common
That resolves an issue where the server wouldn't select the first mutually supported.
Resolves #63
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 07:17:07 +0000 (08:17 +0100)]
tests: mini-alpn: corrected protocol selection order
Nikos Mavrogiannopoulos [Sun, 10 Jan 2016 07:04:29 +0000 (08:04 +0100)]
tests: alpn: enhance the testing of ALPN negotiation
Nikos Mavrogiannopoulos [Sat, 9 Jan 2016 20:42:11 +0000 (21:42 +0100)]
alpn: document how the selected protocol is selected [ci skip]
Nikos Mavrogiannopoulos [Sat, 9 Jan 2016 20:20:00 +0000 (21:20 +0100)]
tests: verify that the selected ALPN protocol is the first advertised
Nikos Mavrogiannopoulos [Fri, 8 Jan 2016 15:52:44 +0000 (16:52 +0100)]
gnutls_aead_cipher_decrypt: removed misleading text
Reported by Fridolin Pokorny.
Nikos Mavrogiannopoulos [Fri, 8 Jan 2016 11:16:29 +0000 (12:16 +0100)]
tests: added check for certtool's othername writing functionality
Nikos Mavrogiannopoulos [Fri, 8 Jan 2016 10:16:58 +0000 (11:16 +0100)]
certtool: added ability to generate othernames via template files
Relates #62
Nikos Mavrogiannopoulos [Fri, 8 Jan 2016 11:05:18 +0000 (12:05 +0100)]
x509: added flags to enable the encoding of othername data
Nikos Mavrogiannopoulos [Fri, 8 Jan 2016 10:05:36 +0000 (11:05 +0100)]
x509: introduced functions to set an othername alternative name
That is, added, gnutls_x509_crt_set_subject_alt_othername,
gnutls_x509_crt_set_issuer_alt_othername, gnutls_x509_crq_set_subject_alt_othername
Relates #62
Nikos Mavrogiannopoulos [Thu, 7 Jan 2016 13:35:59 +0000 (14:35 +0100)]
trust_list_get_issuer_by_dn: fixed check for DN or SPKI
Nikos Mavrogiannopoulos [Thu, 7 Jan 2016 13:02:24 +0000 (14:02 +0100)]
configure: no longer distribute lzip tarballs
Nikos Mavrogiannopoulos [Thu, 7 Jan 2016 13:14:21 +0000 (14:14 +0100)]
symbols.last: don't include internal symbols into exported list
Nikos Mavrogiannopoulos [Tue, 5 Jan 2016 10:21:43 +0000 (11:21 +0100)]
tests: updated to account for cert generation after
2adb9b2bfb31afebbdd9f990e2b74c9a3d4e5c57 fix
Tim Kosse [Mon, 4 Jan 2016 15:40:26 +0000 (16:40 +0100)]
Fix out-of-bounds read in gnutls_x509_ext_export_key_usage
Nikos Mavrogiannopoulos [Thu, 31 Dec 2015 18:16:37 +0000 (20:16 +0200)]
.gitlab-ci.yml: optimized build process
That is, in slow asan and valgrind builds don't check the full test suite.
Nikos Mavrogiannopoulos [Thu, 31 Dec 2015 12:35:45 +0000 (14:35 +0200)]
gnutls_pkcs11_copy_x509_privkey2: corrected the writing of ECC private key
Nikos Mavrogiannopoulos [Thu, 31 Dec 2015 11:38:34 +0000 (13:38 +0200)]
tests: pkcs11-pubkey-import will check both RSA and ECDSA keys
Nikos Mavrogiannopoulos [Thu, 31 Dec 2015 11:35:30 +0000 (13:35 +0200)]
gnutls_pkcs11_copy_x509_privkey2: corrected the type of the written object
Previously only RSA objects were correctly written.
Nikos Mavrogiannopoulos [Thu, 31 Dec 2015 11:10:37 +0000 (13:10 +0200)]
tests: added ECDSA key in cert-common.h
Nikos Mavrogiannopoulos [Thu, 31 Dec 2015 10:20:41 +0000 (12:20 +0200)]
pkcs11: moved default RSA public exponent out of stack
Nikos Mavrogiannopoulos [Thu, 31 Dec 2015 10:17:21 +0000 (12:17 +0200)]
pkcs11: import public keys from any available object
That is, load public keys from the public key object, or
the certificate object if they are present. That affects
non-RSA public keys which do not contain all required fields
on the private key object.
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 23:02:30 +0000 (01:02 +0200)]
session DB: made the magic number depending on gnutls' version
That will make sure that sessions not stored by this version of
gnutls will not be resumed by another (which may be incompatible).
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:46:12 +0000 (00:46 +0200)]
ui.c -> fingerprint.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:45:43 +0000 (00:45 +0200)]
split OCSP functionality from ui.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:39:19 +0000 (00:39 +0200)]
split anon credentials functionality from ui.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:38:31 +0000 (00:38 +0200)]
split psk functionality from ui.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:37:22 +0000 (00:37 +0200)]
split session info functions from ui.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:34:25 +0000 (00:34 +0200)]
split certificate credentials functions from ui.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:32:20 +0000 (00:32 +0200)]
split dh API functions from ui.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 22:28:46 +0000 (00:28 +0200)]
split randomart functionality from ui.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 21:18:32 +0000 (23:18 +0200)]
helper.c -> file.c
Nikos Mavrogiannopoulos [Wed, 30 Dec 2015 09:26:30 +0000 (11:26 +0200)]
certtool: doc update [skip ci]
Andreas Metzler [Sat, 26 Dec 2015 17:24:56 +0000 (18:24 +0100)]
Fix some typos [ci skip]
Nikos Mavrogiannopoulos [Thu, 24 Dec 2015 09:54:21 +0000 (11:54 +0200)]
NEWS: doc update [ci skip]
Nikos Mavrogiannopoulos [Thu, 24 Dec 2015 09:44:00 +0000 (11:44 +0200)]
respect the max-record extension under DTLS
This resolves issue with max-record being negotiated but
ignored. Resolves #61
Nikos Mavrogiannopoulos [Thu, 24 Dec 2015 09:42:58 +0000 (11:42 +0200)]
tests: added check for max-record extension in TLS