]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Thu, 23 Feb 2017 12:07:47 +0000 (13:07 +0100)]
tests: added client reproducer for memory leak
That reproduces a memory leak detected in the client code path.
Detected using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=676
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 23 Feb 2017 11:34:28 +0000 (12:34 +0100)]
tests: update to take into account the removal of random art
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 23 Feb 2017 09:26:04 +0000 (10:26 +0100)]
x509/output: No longer include public key's random art
That is in order to reduce bloat in the output, which already
contains many identifiers for public key.
See mailing list discussion at:
https://lists.gnupg.org/pipermail/gnutls-devel/2017-February/008324.html
https://lists.gnupg.org/pipermail/gnutls-devel/2017-February/008329.html
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 16:02:33 +0000 (17:02 +0100)]
tests: updated to include the pin-sha256 in output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 15:47:02 +0000 (16:47 +0100)]
tests: updated to take into account the pin-sha256 oneline output
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 10:11:06 +0000 (11:11 +0100)]
x509/output: print key PIN on oneline output
That is, instead of the public key ID. The key PIN due to HPKP
is now more widely used than hex-based key IDs.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 10:06:51 +0000 (11:06 +0100)]
x509/output: print the public key PIN of a certificate
That is, print the value used by the HPKP protocol as per
RFC7469.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 23 Feb 2017 08:39:28 +0000 (09:39 +0100)]
certtool: don't warn when 'uri' is specified on template
Reported at:
https://bugzilla.redhat.com/show_bug.cgi?id=
1425884
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 20:53:42 +0000 (21:53 +0100)]
.gitlab-ci.yml: ubsan build: fixed artifacts path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 20:45:32 +0000 (21:45 +0100)]
tests: split starttls.sh into multiple scripts
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 20:29:22 +0000 (21:29 +0100)]
tests: pkcs11-import-with-pin: removed invalid conditional macro
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 16:38:07 +0000 (17:38 +0100)]
tests: added PKCS#11 test for pin input
This introduces a test on PIN input to retrieve an object using
pin-value and pin-source (file).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Feb 2017 20:01:30 +0000 (21:01 +0100)]
SECURITY.md: updated after comments from Daniel Berrange [ci skip]
Nikos Mavrogiannopoulos [Tue, 21 Feb 2017 15:50:22 +0000 (16:50 +0100)]
Removed unnecessary entries in pkix.asn and gnutls.asn
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 21 Feb 2017 13:20:17 +0000 (14:20 +0100)]
nettle/pk: corrected memcpy of Q in DSA params
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 07:02:02 +0000 (08:02 +0100)]
crypto.h: improved documentation of randomness levels
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 07:01:09 +0000 (08:01 +0100)]
nettle/pk: use the appropriate level of randomness for each operation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 07:00:41 +0000 (08:00 +0100)]
srp: use nonce level for SRP password randomization
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 21 Feb 2017 07:58:16 +0000 (08:58 +0100)]
doc: document the use of assert()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 21 Feb 2017 07:17:25 +0000 (08:17 +0100)]
doc: removed protocol/ directory
While it was used during the first years of development, today
it is way more easy to access protocol documents via the IETF
web site.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 21 Feb 2017 07:13:56 +0000 (08:13 +0100)]
Added SECURITY.md, a description of the security issue handling process
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 17:57:56 +0000 (18:57 +0100)]
.gitlab-ci.yml: require clang analyzer build to be warning free
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 17:53:01 +0000 (18:53 +0100)]
configure: no longer use -Wframe-larger-than
We do not require a specific stack size, and there is legacy
code which utilizes large stack sizes. As such remove the
warnings to allow for a warning free compilation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 17:50:40 +0000 (18:50 +0100)]
pkcs11: avoid calling memcpy will null options
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 15:41:46 +0000 (16:41 +0100)]
preinitialize variables to work-around warnings with clang
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 14:05:57 +0000 (15:05 +0100)]
eliminated dead code as indicated by clang scan-build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 14:02:22 +0000 (15:02 +0100)]
pkcs7: corrected error checking in write_signer_id
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 13:18:25 +0000 (14:18 +0100)]
preinitialize variables to work-around warnings with clang's scan-build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 13:03:40 +0000 (14:03 +0100)]
eliminated various clang warnings with non-null arguments
That is, use assert() to ensure that known to be non-null
variables will be used as input to functions requiring non-null.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 12:49:55 +0000 (13:49 +0100)]
make_printable_string: allow operation with null input
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 12:32:37 +0000 (13:32 +0100)]
.gitlab-ci.yml: replaced clang's build with clang analyser's scan-build
This introduces a static analyser pass in the CI.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 12:13:19 +0000 (13:13 +0100)]
.gitlab-ci.yml: added cppcheck run
This adds a basic static analysis of the source code.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 10:14:49 +0000 (11:14 +0100)]
opencdk/read-packet.c: corrected typo in type cast
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 10:13:08 +0000 (11:13 +0100)]
cdk_pkt_read: enforce packet limits
That ensures that there are no overflows in the subsequent
calculations.
Resolves the oss-fuzz found bug:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=420
Relates: #159
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 20 Feb 2017 10:01:07 +0000 (11:01 +0100)]
tests: added test case with invalid openpgp cert
That triggers a heap buffer overflow:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=420
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Robert Scheck [Sun, 19 Feb 2017 21:50:30 +0000 (22:50 +0100)]
Add LMTP, POP3, NNTP, Sieve and PostgreSQL support to gnutls-cli
Add LMTP (RFC 2033), POP3 (RFC 2595), NNTP (RFC 4642), Sieve (RFC 5804) and PostgreSQL support to gnutls-cli ("--starttls-proto").
Signed-off-by: Robert Scheck <robert@fedoraproject.org>
Nikos Mavrogiannopoulos [Sun, 19 Feb 2017 16:31:52 +0000 (17:31 +0100)]
README.md: added CII best practices badge [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Rical Jasan [Sat, 18 Feb 2017 05:22:19 +0000 (21:22 -0800)]
tests: Improve port-checking infrastructure.
The test suite unnecessarily failed on systems without netstat because
it was assumed to be present. Instead of simply checking for its
presence and indicating an unsupported test, however, the ss utility
can be used as a drop-in replacement. When netstat/net-tools is not
present, the ss utility from iproute2 still stands a fair chance of
existing, and they also have similar enough semantics that they can be
used interchangeably in the test suite.
The functions in tests/scripts/common.sh that used netstat
(wait_for_port, wait_for_free_port) now use new functions,
check_if_port_in_use and check_if_port_listening, to abstract the call
to netstat/ss. The eval'd variable GETPORT also used netstat, and has
been updated accordingly.
The new port-checking functions use another new function,
have_port_finder, which takes care of the details of selecting ss
(preferred) or netstat, or fails otherwise.
Signed-off-by: Rical Jasan <ricaljasan@pacific.net>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Alon Bar-Lev [Sun, 12 Feb 2017 17:48:19 +0000 (19:48 +0200)]
build: doc: install images also into htmldir
images are required also by the html documentation.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 14:37:42 +0000 (15:37 +0100)]
.gitlab-ci.yml: corrected coverage build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 18 Feb 2017 06:23:18 +0000 (07:23 +0100)]
.gitlab-ci.yml: remove submodule update from main build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 16:40:27 +0000 (17:40 +0100)]
updated auto-generated files
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 16:38:23 +0000 (17:38 +0100)]
Makefile: improved symbols extraction
That is, do not include non-function names.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 14:35:41 +0000 (15:35 +0100)]
doc update
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 14:31:02 +0000 (15:31 +0100)]
tests: ignore sanity checks in broken cert test
This allows the existing reproducers which contain certificates which
are rejected by sanity checks, to still be used to detect regressions.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 14:26:56 +0000 (15:26 +0100)]
Added gnutls_x509_crt_set_flags()
This functions allows specifying flags to the certificate object.
In particular it allows the single flag GNUTLS_X509_CRT_FLAG_IGNORE_SANITY
which allows to ignore sanity checks at the import of the certificate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 14:20:44 +0000 (15:20 +0100)]
doc update
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 14:14:38 +0000 (15:14 +0100)]
Introduced GNUTLS_E_CERTIFICATE_TIME_ERROR error code
This error code indicates an issue in the time fields of certificate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 10:49:48 +0000 (11:49 +0100)]
x509/output: properly indicate error in Time fields
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 10:33:56 +0000 (11:33 +0100)]
x509/time: refuse importing certificates with invalid Time fields
That will refuse to import certificates which their time field
is not in GMT, or contain fractional seconds.
Resolves: #169
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 10:26:33 +0000 (11:26 +0100)]
_gnutls_x509_generalTime2gtime: refuse to parse fractional seconds
Fractional seconds in GeneralizedTime are prohibited by RFC5280.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 10:25:15 +0000 (11:25 +0100)]
tests: enhanced test suite to include invalid X509v3 cert
That certificate contains a GeneralizedTime with fractional
seconds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 14:10:40 +0000 (15:10 +0100)]
gnutls_x509_crt_list_import: fixed leak on import failure
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 09:39:21 +0000 (10:39 +0100)]
tests: enhanced test suite to include creation of invalid certificates
That is, check whether the creation of invalid V2 or V1 certificates
will be detected, and that the correct error codes are returned.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 09:06:58 +0000 (10:06 +0100)]
gnutls_x509_crt_sign2: refuse to sign invalid X.509 certificates
That is, do not sign X.509 certificates which have fields that
shouldn't be present on their corresponding version.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 09:04:52 +0000 (10:04 +0100)]
gnutls_x509_crt_import: reject X.509v1 certificates with invalid fields
Refuse to import X.509v1 certificates which have fields that didn't
exist in X.509v1 specification. That is the issuerUniqueID and
subjectUniqueID fields.
Resolves: #168
Resolves: #167
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Feb 2017 08:56:24 +0000 (09:56 +0100)]
tests: enhanced test suite to include invalid V1 certs
That is, added X.509v1 certificates with attributes that shouldn't
have been presented (valid for X.509v2 only).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 15 Feb 2017 17:42:22 +0000 (18:42 +0100)]
gnutls.pc: do not include libidn2 in Requires.private
The libidn2 versions available do not include libidn2.pc,
thus the inclusion was causing problems when using pkg-config.
Instead we include -lidn2 in Libs.private.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 12 Feb 2017 10:01:46 +0000 (11:01 +0100)]
.gitlab-ci.yml: Re-organized stages
The less CPU intensive tasks were moved to earlier stage, and the
CPU intensive tasks are only spawned only after basic syntax and
ABI checks have succeeded.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 12 Feb 2017 08:42:15 +0000 (09:42 +0100)]
gnutls.h: corrected typo [ci skip]
Marcin Cieślak [Thu, 9 Feb 2017 00:26:16 +0000 (00:26 +0000)]
<alloca.h> only if HAVE_ALLOCA_H
FreeBSD does know alloca() but has no such header
Signed-off-by: Marcin Cieślak <saper@SAPER.INFO>
Nikos Mavrogiannopoulos [Sun, 5 Feb 2017 10:41:41 +0000 (11:41 +0100)]
doc: document the intention of the priority string usage [ci skip]
This documents the gnutls_set_default_priority() function, and
how it is intended to be combined with an application that utilizes
priority strings.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 24 Dec 2016 14:51:17 +0000 (15:51 +0100)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 07:57:16 +0000 (08:57 +0100)]
tests: modified tests for the disablement of 3DES
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 24 Dec 2016 14:50:11 +0000 (15:50 +0100)]
Removed support for the 3DES cipher by default
That is a legacy cipher that is no longer needed to be
included as backup cipher.
Resolves #120
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 2 Feb 2017 21:59:43 +0000 (22:59 +0100)]
x509: optimize subject alternative name access
That reads SAN and IAN early on import, significantly reducing
the running time of functions which iterate over the alternative
names of a certificate, e.g., gnutls_x509_crt_check_hostname().
Relates #165
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 4 Feb 2017 13:28:30 +0000 (14:28 +0100)]
.travis.yml: list all logs on failure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 4 Feb 2017 13:01:36 +0000 (14:01 +0100)]
tests: enable all IDNA tests when compiled with libidn2
Keep IDNA2003-only tests on the ifdef HAVE_LIBIDN.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 4 Feb 2017 06:50:03 +0000 (07:50 +0100)]
.travis.yml: updated instructions for travis builds
Removed unbound and other minor fixes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 3 Feb 2017 22:28:01 +0000 (23:28 +0100)]
extras/hex.h: do not use strlen as variable name
That is, do not utilize a standard C function name as variable name.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 3 Feb 2017 22:11:27 +0000 (23:11 +0100)]
gnutls_pkcs11_obj_list_import_url4: always return an initialized pointer
When returning success, but no elements, gnutls_pkcs11_obj_list_import_url4,
could have returned zero number of elements with a pointer that was uninitialized.
Ensure that an initialized (i.e., null in that case), pointer is always returned.
Reported by Jeremy Harris.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 2 Feb 2017 23:08:19 +0000 (00:08 +0100)]
.gitlab-ci.yml: use libidn2 on windows builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 2 Feb 2017 10:26:18 +0000 (11:26 +0100)]
gnutls_heartbeat_allowed: corrected type on dummy wrapper
That is, when compiling without heartbeat support, compilation
could fail due to the dummy wrapper not returning the right
type.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 2 Feb 2017 07:27:14 +0000 (08:27 +0100)]
Address test suite failure due to timezone differences.
Reported by Thorsten Glaser and Andreas Metzler.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 31 Jan 2017 16:06:16 +0000 (17:06 +0100)]
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 31 Jan 2017 06:38:50 +0000 (07:38 +0100)]
gnutls_heartbeat_allowed: corrected return type
This reflects better the fact that this function returns
a boolean.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 28 Jan 2017 08:26:05 +0000 (09:26 +0100)]
_idn2_to_unicode_8z8z: do not err on mixed IDNA domains
That is allow domains of the form 'großes.xn--fa-hia.de'. The
drawback is that we may not err early on invalid formatted
names. We however delegate any such decisions to libidn2.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 27 Jan 2017 09:07:28 +0000 (10:07 +0100)]
README.md: added link to travis build for 3.5.x [ci skip]
In addition to adding a link to travis build for 3.5.x branch removed
link on 3.4.x branch. It is no longer active.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 26 Jan 2017 13:49:33 +0000 (14:49 +0100)]
heartbeat extension: doc update
Document how to calculate the total TLS data transmitted.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 26 Jan 2017 12:21:39 +0000 (13:21 +0100)]
str-idna: improved error handling
In addition to detecting input with invalid characters in _idn2_to_unicode_8z8z(),
we also add support for case insensitive punycode header.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 25 Jan 2017 14:45:57 +0000 (15:45 +0100)]
Updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 25 Jan 2017 02:35:54 +0000 (03:35 +0100)]
str-idna: cleanups in IDNA handling
Ensure safe operation even with broken libidn2, and make
sure that we properly allocate memory to caller, even on complex
library configuration.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 13:13:21 +0000 (14:13 +0100)]
fuzz: added run-afl helper script
This script which allows running the fuzzying tests
locally using american fuzzy lop.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 12:50:59 +0000 (13:50 +0100)]
fuzz: Added IDNA encoding/decoding fuzzying units
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 12:43:54 +0000 (13:43 +0100)]
Move IDNA functionality to str-idna.c from str-unicode.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 07:57:52 +0000 (08:57 +0100)]
tests: use the exported API for IDNA testing
In addition group together the tests which require libidn2 >= 0.14.
This allows the tests to succeed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 07:55:06 +0000 (08:55 +0100)]
tools: depend on gnutls_idna_map() instead of using directly libidn/libidn2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 07:50:54 +0000 (08:50 +0100)]
Exported gnutls_idna_map() and gnutls_idna_reverse_map()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 06:56:12 +0000 (07:56 +0100)]
.gitlab-ci.yml: added run with IDNA2003
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 17:59:51 +0000 (18:59 +0100)]
tests: simplified str-idna
This separates the directions that are tested (utf-8 -> punycode
and vice versa).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 06:52:23 +0000 (07:52 +0100)]
configure: added flag to force IDNA2003
That allows to compile with libidn even if libidn2 is present, and
can be used to check IDNA2003 support.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Tim Rühsen [Sat, 21 Jan 2017 22:14:46 +0000 (23:14 +0100)]
Add support for libidn2 (IDNA 2008 + TR46)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Nikos Mavrogiannopoulos [Wed, 25 Jan 2017 07:55:40 +0000 (08:55 +0100)]
pkcs7 decryption: addressed memory leak in PBES1-DES-CBC-MD5 handling
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 25 Jan 2017 08:46:00 +0000 (09:46 +0100)]
minitasn1: updated to libtasn1 4.10
Nikos Mavrogiannopoulos [Wed, 25 Jan 2017 02:24:34 +0000 (03:24 +0100)]
configure: do not disable valgrind tests unless explicitly specified
... or unless we are in release build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 24 Jan 2017 15:28:41 +0000 (16:28 +0100)]
Makefile.am: increased the number of releases to perform ABI checks with
That is added 3.4.0, 3.4.17 and 3.5.8.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 20 Jan 2017 15:55:26 +0000 (16:55 +0100)]
tests: verify that a written certificate will inherit its ID from privkey
That is, whether p11tool will do the right thing and figure the proper
ID to use for a certificate object, if the public key is available.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 20 Jan 2017 15:33:03 +0000 (16:33 +0100)]
p11tool: re-use ID from corresponding objects when writing certificates
That is when writing a certificate which has a corresponding public key,
or private key in the token, ensure that we use the same ID for the
objects. That eases the work of someone writing objects to certificates,
and does not require him to manually detect the object IDs.
Resolves #160
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Alon Bar-Lev [Fri, 20 Jan 2017 17:18:09 +0000 (19:18 +0200)]
.gitlab-ci.yml: add Fedora/x86_64/no-tools
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev [Fri, 20 Jan 2017 21:12:36 +0000 (23:12 +0200)]
valgrind: support separate builddir for suppressions.valgrind
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>