]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 14:07:56 +0000 (16:07 +0200)]
doc: clarify return codes in verification functions [ci skip]
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 14:02:42 +0000 (16:02 +0200)]
gnutls_certificate_verify_peers2: document that hostname comparison follows RFC6125
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 09:53:46 +0000 (11:53 +0200)]
rnd-getentropy: better handling of error printing with errno
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 09:51:05 +0000 (11:51 +0200)]
rnd-linux: make getrandom back-end robust against EINTR failures
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:36:38 +0000 (13:36 +0200)]
gnutls_init: doc update
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:31:18 +0000 (13:31 +0200)]
tests: verify that GNUTLS_NONBLOCK is available as a definition
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:23:16 +0000 (13:23 +0200)]
gnutls.h: define elements of gnutls_init_flags_t
That is, define all the elements that were available prior
the move from #define to enum, to allow code relying on
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:07:44 +0000 (13:07 +0200)]
gnutls.h: documented the version various gnutls_init flags were introduced
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 09:27:35 +0000 (11:27 +0200)]
Moved the gnutls_x509_dn API functions to x509_dn.c
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 13:12:13 +0000 (15:12 +0200)]
tests: enhanced DN decoding tests with complex encoding
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:43:52 +0000 (14:43 +0200)]
RFC4514 DN decoding: allow decoding of raw ('#') items
In addition allow escaping prefix or suffix spaces as well as
the hash.
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:21:16 +0000 (14:21 +0200)]
doc update
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:10:08 +0000 (14:10 +0200)]
tests: enhanced DN decoding tests with encoding
This adds unit tests for gnutls_x509_dn_set_str().
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:09:06 +0000 (14:09 +0200)]
Added gnutls_x509_dn_set_str()
This allows initializing a gnutls_x509_dn_t structure via a DN string.
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 11:45:08 +0000 (13:45 +0200)]
tests: utils: use vasprintf() where available
This allows printing long strings.
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 11:35:13 +0000 (13:35 +0200)]
tests: added checks for the RFC4514 decoding via gnutls_x509_dn_get_str()
Tim Rühsen [Tue, 19 Jul 2016 10:08:23 +0000 (12:08 +0200)]
Remove redundant if expression from tests/mini-loss-time.c
Tim Rühsen [Tue, 19 Jul 2016 09:08:10 +0000 (11:08 +0200)]
Fix tests/slow/cipher-openssl-compat.c for OpenSSL 1.1.0
Nikos Mavrogiannopoulos [Mon, 18 Jul 2016 16:02:25 +0000 (18:02 +0200)]
cfg.mk: no longer save config.rpath
Nikos Mavrogiannopoulos [Mon, 18 Jul 2016 14:36:27 +0000 (16:36 +0200)]
removed auto-generated files from the repository
Nikos Mavrogiannopoulos [Sun, 17 Jul 2016 07:37:22 +0000 (09:37 +0200)]
tests: removed an skipped failures due to bugs in softhsm 2.0.0
These are no longer an issue as the CI has been updated to softhsm
2.1.0, which addresses them, and they prevented catching the
GNUTLS-SA-2016-2 regression.
Nikos Mavrogiannopoulos [Sat, 16 Jul 2016 16:12:27 +0000 (18:12 +0200)]
doc update
Nikos Mavrogiannopoulos [Sat, 16 Jul 2016 15:19:02 +0000 (17:19 +0200)]
Dropped support for EGD random generator
This removes rarely tested code for systems which no longer exist
and simplifies code for Linux random generator.
Resolves #112
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 19:55:04 +0000 (21:55 +0200)]
configure: prevent a version of getentropy() in a linux libc to be used
For now, we auto-detect and switch between getrandom() and /dev/urandom
when the former is not available. With the complexity of dealing with
libc's that have the feature but kernel not supporting it, or vice versa
it is best keep things simple.
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 19:38:02 +0000 (21:38 +0200)]
rnd-linux: added sanity check in getrandom output
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 16:57:01 +0000 (18:57 +0200)]
nettle: split the rnd-common to rnd-windows, rnd-getentropy, and rnd-linux
That is, to the windows random generator as well as the getentropy()
generator in BSDs, as well as the getrandom(), /dev/urandom,
and EGD generators on Linux systems.
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 16:51:14 +0000 (18:51 +0200)]
rnd-common: added faster detection of getrandom based on GRND_NONBLOCK
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 13:31:16 +0000 (15:31 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 12:58:07 +0000 (14:58 +0200)]
urandom: use st_ino and st_rdev to determine device uniqueness
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 12:34:38 +0000 (14:34 +0200)]
Added auto-detection of getrandom() system call in Linux systems
In addition use getrandom() via the syscall interface if it doesn't
exist in Libc. The reason for the latter is that getrandom() support
for glibc is in limbo for several years, and for auto-detection is that
even if it is going to be present in libc we will not be able to guarrantee
that the system call is available just because it is present in glibc.
For that we detect on initialization whether getrandom() can obtain
random data, and if yes, we continue using that.
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 11:58:16 +0000 (13:58 +0200)]
tests: seccomp examples: use cert-common.h
Nikos Mavrogiannopoulos [Thu, 14 Jul 2016 08:00:19 +0000 (10:00 +0200)]
tests: enhanced arbitrary extension tests with octet_string encoding
Nikos Mavrogiannopoulos [Thu, 14 Jul 2016 07:43:28 +0000 (09:43 +0200)]
certtool: added the ability to encode arbitrary extensions
That is, added the ability to encode as an octet string any
specified extension data.
Nikos Mavrogiannopoulos [Thu, 14 Jul 2016 07:21:16 +0000 (09:21 +0200)]
.gitlab-ci.yml: added expiration time of a week for failure artifacts
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 14:36:39 +0000 (16:36 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 14:31:47 +0000 (16:31 +0200)]
tests: added basic testing of gnutls_x509_crq_set_extension_by_oid()
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 14:13:12 +0000 (16:13 +0200)]
tests: added checks on certificate and request generation with arbitrary extensions
This tests the add_extension and add_critical_extension options of certtool.
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 09:43:10 +0000 (11:43 +0200)]
certtool: added options to set arbitrary extensions to certificates and requests
This allows setting arbitrary extensions using the following new template options:
add_extension = "5.6.7.8 0x0001020304050607AAABCD"
add_critical_extension = "9.10.11.12.13.14.15.16.17.1.5 0xCAFE"
The "0x" prefix can be omitted.
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 09:41:14 +0000 (11:41 +0200)]
added gnutls_x509_crq_set_extension_by_oid()
This is a function to add an arbitrary extension into a
certificate request.
Nikos Mavrogiannopoulos [Wed, 13 Jul 2016 11:20:10 +0000 (13:20 +0200)]
doc: mention the need of libtasn1-tools in Fedora based systems [ci skip]
Nikos Mavrogiannopoulos [Wed, 13 Jul 2016 10:11:57 +0000 (12:11 +0200)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 08:54:09 +0000 (10:54 +0200)]
doc: mention libcmocka dependency
Nikos Mavrogiannopoulos [Sat, 9 Jul 2016 12:52:42 +0000 (14:52 +0200)]
tests: added unit testing for DTLS sliding window implementation
This was taken from the unit testing of AF_KTLS.
Nikos Mavrogiannopoulos [Fri, 10 Jun 2016 21:14:03 +0000 (23:14 +0200)]
dtls: imported Fridolin's DTLS sliding window implementation
This simplifies the current code, and reduces the memory needed.
Nikos Mavrogiannopoulos [Fri, 10 Jun 2016 20:42:21 +0000 (22:42 +0200)]
dtls: moved DTLS window handling to separate file
Nikos Mavrogiannopoulos [Tue, 12 Jul 2016 16:37:53 +0000 (18:37 +0200)]
ex-client-x509: removed unused call to gnutls_session_set_ptr()
Nikos Mavrogiannopoulos [Tue, 12 Jul 2016 12:48:14 +0000 (14:48 +0200)]
libtasn1: updated to allow large OIDs to be used even on 32-bit systems
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 15:44:28 +0000 (17:44 +0200)]
doc: updated contribution guide
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 15:43:04 +0000 (17:43 +0200)]
doc: updated contribution guide
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 15:19:16 +0000 (17:19 +0200)]
tests: link the resume tests to gnulib due to their missing memmem()
This fixes compilation of gnutls in solaris. Reported by Dagobert Michelsen.
Nikos Mavrogiannopoulos [Fri, 8 Jul 2016 12:26:38 +0000 (14:26 +0200)]
NEWS: corrected release date [ci skip]
Nikos Mavrogiannopoulos [Thu, 7 Jul 2016 20:55:48 +0000 (22:55 +0200)]
.gitlab-ci.yml: keep the artifacts on failure
Nikos Mavrogiannopoulos [Thu, 7 Jul 2016 19:00:56 +0000 (21:00 +0200)]
write_nss_key_log: write the premaster secret while it is still valid
Nikos Mavrogiannopoulos [Thu, 7 Jul 2016 18:55:03 +0000 (20:55 +0200)]
updated libtasn1
Nikos Mavrogiannopoulos [Wed, 6 Jul 2016 06:43:58 +0000 (08:43 +0200)]
released 3.5.2
Nikos Mavrogiannopoulos [Tue, 5 Jul 2016 16:40:32 +0000 (18:40 +0200)]
cfg.mk: reduced the generated changelog size
Nikos Mavrogiannopoulos [Tue, 5 Jul 2016 16:37:15 +0000 (18:37 +0200)]
bumped version
Nikos Mavrogiannopoulos [Tue, 5 Jul 2016 10:03:51 +0000 (12:03 +0200)]
tests: ignore any memory leaks from libcrypto
Nikos Mavrogiannopoulos [Tue, 5 Jul 2016 09:33:54 +0000 (11:33 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 1 Jul 2016 11:51:18 +0000 (13:51 +0200)]
asm: updated openssl and the asm sources for AES-GCM from openssl 1.0.2h
This improves the performance of AES-GCM significantly by taking
advantage of AVX and MOVBE instructions where available. This
utilizes Andy Polyakov's code under BSD license.
Nikos Mavrogiannopoulos [Tue, 5 Jul 2016 09:44:59 +0000 (11:44 +0200)]
tests: when testing with openssl disallow any CPU optimizations
This ensures that we test our optimized code (which is mostly
openssl based), with code that is not identical.
Nikos Mavrogiannopoulos [Fri, 1 Jul 2016 12:29:40 +0000 (14:29 +0200)]
tests: added openssl compatibility tests for AES-GCM cipher
Nikos Mavrogiannopoulos [Tue, 5 Jul 2016 09:41:20 +0000 (11:41 +0200)]
dane: corrected the license of libdane files
The license was always LGPL version 2.1, and these
files mentioned LGPL version 3. Reported by Thomas
Petazzoni.
Nikos Mavrogiannopoulos [Mon, 4 Jul 2016 15:29:30 +0000 (17:29 +0200)]
tests: ignore leaks due to p11-kit in test suite
This addresses issue in "pkcs11-privkey-fork" which failed
when compiled under asan due to leaks in p11-kit after fork.
Nikos Mavrogiannopoulos [Mon, 4 Jul 2016 13:28:27 +0000 (15:28 +0200)]
tests: added check to ensure that pkcs11 objects will be reopened on fork
This checks whether C_Initialize() and C_OpenSession() will be called
again when using a PKCS#11 module.
Resolves #95
Nikos Mavrogiannopoulos [Mon, 4 Jul 2016 13:19:32 +0000 (15:19 +0200)]
pkcs11: on object import always check for a support public key algorithm
Nikos Mavrogiannopoulos [Fri, 1 Jul 2016 13:29:58 +0000 (15:29 +0200)]
gnutls_aead_cipher_decrypt: corrected the return value of ptext_len
That is, do not account the tag_size into the plaintext.
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 13:29:44 +0000 (15:29 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 13:22:22 +0000 (15:22 +0200)]
configure: check for libdl irrespective of FIPS140 configuration
This allows to link to libdl for the tests that require it.
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 11:44:57 +0000 (13:44 +0200)]
tests: account pkcs11/pkcs11-mock-ext.h in Makefile
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 11:41:51 +0000 (13:41 +0200)]
tests: link pkcs11-import-url-privkey with libdl
That is because it uses dlopen().
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 08:47:02 +0000 (10:47 +0200)]
more files to ignore
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 07:34:33 +0000 (09:34 +0200)]
tests: avoid compiler warning from pkcs11-pubkey-import
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 07:30:47 +0000 (09:30 +0200)]
tests: added check to verify the tolerance of broken C_GetAttributes
That is, test gnutls_pkcs11_obj_list_import_url4() when importing
private keys from tokens that return CKR_OK on sensitive objects,
and tokens that return CKR_ATTRIBUTE_SENSTIVE.
Relates #108
Nikos Mavrogiannopoulos [Thu, 30 Jun 2016 07:11:40 +0000 (09:11 +0200)]
pkcs11_get_attribute_avalue: correctly handle a -1 value length from C_GetAttributeValue
That is, work-around modules which do not return an error on sensitive
objects.
Relates #108
Nikos Mavrogiannopoulos [Wed, 29 Jun 2016 16:52:22 +0000 (18:52 +0200)]
pkcs11_get_attribute_avalue: do not assign values on failure
When C_GetAttributeValue() returns size but does not return data
then pkcs11_get_attribute_avalue() would set the return data pointer
to a free'd value. This is against the convention expected by callers,
i.e, set data to NULL. Reported by Anthony Alba in #108.
Nikos Mavrogiannopoulos [Wed, 29 Jun 2016 15:25:06 +0000 (17:25 +0200)]
tests: use datefudge in name-constraints test
This avoids the expiration of the used certificate to affect the test.
Nikos Mavrogiannopoulos [Tue, 28 Jun 2016 07:17:13 +0000 (09:17 +0200)]
tests: link libpkcs11mock1 with gnulib
This allows it to use gnulib for strndup where it is needed.
Nikos Mavrogiannopoulos [Tue, 28 Jun 2016 07:15:55 +0000 (09:15 +0200)]
p11tool: do not return from void functions
This fixes a compilation issue with solaris compiler. Reported
by Peter Eriksson.
Nikos Mavrogiannopoulos [Fri, 24 Jun 2016 09:01:35 +0000 (11:01 +0200)]
doc: mention the boolean functions in the gnutls API
Nikos Mavrogiannopoulos [Fri, 24 Jun 2016 08:55:37 +0000 (10:55 +0200)]
tests: removed remainders of pkcs11 tests from suite/
Nikos Mavrogiannopoulos [Fri, 24 Jun 2016 06:37:03 +0000 (08:37 +0200)]
gnutls_pkcs11_crt_is_known: changed to unsigned type
Nikos Mavrogiannopoulos [Thu, 23 Jun 2016 21:24:19 +0000 (23:24 +0200)]
tests: pkcs11-is-known: check that no flags enforce compare
Nikos Mavrogiannopoulos [Thu, 23 Jun 2016 21:13:50 +0000 (23:13 +0200)]
gnutls_pkcs11_crt_is_known: always assume GNUTLS_PKCS11_OBJ_FLAG_COMPARE unless GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_DISTRUSTED is given
Nikos Mavrogiannopoulos [Thu, 23 Jun 2016 21:06:29 +0000 (23:06 +0200)]
tests: moved pkcs11-softhsm test suite into pkcs11/
Nikos Mavrogiannopoulos [Thu, 23 Jun 2016 20:40:26 +0000 (22:40 +0200)]
find_cert_cb: minor cleanups in find_cert_cb
Nikos Mavrogiannopoulos [Thu, 23 Jun 2016 20:25:06 +0000 (22:25 +0200)]
tests: added more unit tests for gnutls_pkcs11_crt_is_known()
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 16:04:45 +0000 (18:04 +0200)]
dn2: updated to account for serial number being printed
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 16:01:15 +0000 (18:01 +0200)]
tests: corrected create-chain.sh to remove the ocsp_signing_key from generated certs
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 16:00:03 +0000 (18:00 +0200)]
tests: replaced tls feature extension checks
The previous checks had incorrect key purpose check on the final
(root) certificate.
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 15:31:30 +0000 (17:31 +0200)]
enhanced debugging messages for cert verification
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 15:09:54 +0000 (17:09 +0200)]
x509: print serial number in compact output
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 14:49:42 +0000 (16:49 +0200)]
tests: include softhsm.h into dist files
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 13:27:05 +0000 (15:27 +0200)]
pkcs11: correctly encode the serial number when searching for certificate
In gnutls_pkcs11_crt_is_known() corrected the encoding of the
serial number to TLV DER from LV DER. This is the encoding we
use when storing that number.
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 13:50:51 +0000 (15:50 +0200)]
pkcs11: correctly account check_found_cert()
Nikos Mavrogiannopoulos [Wed, 22 Jun 2016 11:50:48 +0000 (13:50 +0200)]
gnutls-cli-debug: replaced draft-ietf-tls-chacha20-poly1305-04 with RFC7905
Nikos Mavrogiannopoulos [Mon, 20 Jun 2016 10:07:03 +0000 (12:07 +0200)]
gnutls-cli: benchmark the memcpy performance to compare with ciphers
Also ensure that we use different memory areas for each operation
to avoid measuring better performance due to caching.
Nikos Mavrogiannopoulos [Thu, 16 Jun 2016 09:53:55 +0000 (11:53 +0200)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Sun, 19 Jun 2016 13:48:21 +0000 (15:48 +0200)]
doc: corrected typo
Nikos Mavrogiannopoulos [Sun, 19 Jun 2016 11:06:15 +0000 (13:06 +0200)]
Sync with TP.