]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 07:26:01 +0000 (09:26 +0200)]
x509/output: do not print usage entry when there is none
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 07:21:19 +0000 (09:21 +0200)]
certtool: improved printing of the key PIN and key ID
That is, on private keys use the same format when printing
the public Key ID and public key PIN, as when printing it
in certificates.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 6 Apr 2017 16:34:56 +0000 (18:34 +0200)]
.gitlab-ci.yml: fixed freebsd build project restriction
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 6 Apr 2017 16:18:02 +0000 (18:18 +0200)]
certtool: print the key PIN on private and public keys
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 6 Apr 2017 16:09:14 +0000 (18:09 +0200)]
gnutls_pem_base64_encode2: do raw base64 when msg is NULL
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 7 Apr 2017 06:33:54 +0000 (08:33 +0200)]
.gitlab-ci.yml: simplified CI setup
This makes builds independent by reducing interactions between
artifacts of builds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 6 Apr 2017 09:53:33 +0000 (11:53 +0200)]
fuzz: do not enable the openpgp fuzzer when openpgp is disabled
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 12:50:43 +0000 (14:50 +0200)]
serv: fixed carriage return stripping in strip()
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 12:47:30 +0000 (14:47 +0200)]
Mark with (void) the remove() function and other unchecked functions
This allows static analysers to properly warn on unchecked return values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 12:29:16 +0000 (14:29 +0200)]
gnutls-cli: fixed minor coverity identified issues
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 12:26:52 +0000 (14:26 +0200)]
certtool: fixed newline skip code in smime-to-p7 code
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 12:12:03 +0000 (14:12 +0200)]
tests: added unit test for the certtool smime conversion functionality
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:41:36 +0000 (13:41 +0200)]
certtool: fixed minor issues pointed out by coverity
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:38:06 +0000 (13:38 +0200)]
gnutls-cli: better resource management in benchmark cmd
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:30:22 +0000 (13:30 +0200)]
is_level_acceptable: ensure issuer is not dereferenced when null
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:25:08 +0000 (13:25 +0200)]
certtool: guard the value of tl before gnutls_pkcs7_verify
This utilizes assert() as it cannot be triggered in practice.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:20:44 +0000 (13:20 +0200)]
Avoid using ASN1_MAX_NAME_SIZE directly
Since ASN1_MAX_NAME_SIZE refers to a single element in the asn1
tree, it is not suitable to hold the maximum combined name. Instead
use a local definition of MAX_NAME_SIZE, which is a multiple of
the ASN1_MAX_NAME_SIZE.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:15:38 +0000 (13:15 +0200)]
gnutls_x509_crq_set_challenge_password: don't accept null password
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:13:26 +0000 (13:13 +0200)]
Mark with (void) the functions where the returned value is not checked intentionally
This allows static analysers to properly warn on unchecked return values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 11:08:11 +0000 (13:08 +0200)]
removed duplicate code
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 10:47:03 +0000 (12:47 +0200)]
handshake/record: mark with comments all expected fall-through switches
This reduces warnings from static analysers like coverity and makes
explicit the intention.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 10:42:18 +0000 (12:42 +0200)]
gnutlsxx.cpp: fixed misleading indentation issues
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 10:39:23 +0000 (12:39 +0200)]
doc: document intended fallthrough
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 10:36:52 +0000 (12:36 +0200)]
tests: fixed possible buffer overflow to avoid spurious complaints
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 10:34:56 +0000 (12:34 +0200)]
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 09:54:45 +0000 (11:54 +0200)]
x509.h: added macro for inhibit any policy
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 09:50:29 +0000 (11:50 +0200)]
NEWS: updated
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 08:24:17 +0000 (10:24 +0200)]
doc: documented the inhibit any policy extension
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 09:08:09 +0000 (11:08 +0200)]
tests: added PKCS#12 unit test with AES file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 14:36:48 +0000 (16:36 +0200)]
tests: added unit test for inhibit anypolicy generation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 13:36:47 +0000 (15:36 +0200)]
supported_exts: inhibit anypolicy is listed as supported
Since we don't support certificate verification based on policies,
we make sure we do not reject any certificates based on the inhibit
any policy extension being present.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 14:27:34 +0000 (16:27 +0200)]
certtool: added template option inhibit_anypolicy_skip_certs
This option writes the inhibit anyPolicy option in a certificate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 14:25:47 +0000 (16:25 +0200)]
x509: output the inhibit anyPolicy value
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 08:29:32 +0000 (10:29 +0200)]
documented the GNUTLS_X509_OID_POLICY_ANY macro
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 14:03:34 +0000 (16:03 +0200)]
x509: added function to set and retrieve inhibit anypolicy extension value
That is, introduced:
* gnutls_x509_crt_get_inhibit_anypolicy
* gnutls_x509_crt_set_inhibit_anypolicy
Resolves #180
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 13:53:05 +0000 (15:53 +0200)]
_gnutls_x509_write_uint32: ensure we prepend leading zero when writing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 13:46:45 +0000 (15:46 +0200)]
Added helper functions to parse the inhibit anyPolicy X.509 extension
That introduces:
* gnutls_x509_ext_export_inhibit_anypolicy
* gnutls_x509_ext_import_inhibit_anypolicy
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 13:22:06 +0000 (15:22 +0200)]
tests: added unit test for PKCS#12 with file that uses PBES1 with no salt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 6 Apr 2017 03:14:25 +0000 (05:14 +0200)]
tests: added basic check for system trust store
This checks whether the gnutls_certificate_set_x509_system_trust()
and thus the trust list equivalent function operate as expected
and return a positive number of certificates. The test is ignored
in systems where these functions return GNUTLS_E_UNIMPLEMENTED_FEATURE.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
David Caldwell [Wed, 5 Apr 2017 04:29:55 +0000 (21:29 -0700)]
gnutls_x509_trust_list_add_system_trust: Add macOS keychain support
Also don't check for a default_trust_store_file in configure when building on
macOS (unless explicitly asked to with --with-default-trust-store-file=xxx),
because otherwise it finds /etc/ssl/cert.pem: This file is new (since
10.12.2?), which means libraries built on the newest OS version wouldn't work
the same way on an older versions (and vice versa). "/etc/ssl/cert.pem" also
doesn't seem to reflect additions and deletions from the user's or system's
trusted roots keychain (in my limited testing).
Signed-off-by: David Caldwell <david@porkrind.org>
David Caldwell [Wed, 5 Apr 2017 18:15:45 +0000 (11:15 -0700)]
Rename uint64 to gnutls_uint64 to avoid conflict with macOS
Signed-off-by: David Caldwell <david@porkrind.org>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 08:11:01 +0000 (10:11 +0200)]
mpi: openpgp integer scanning was put into conditional
That is, no longer include that code when compiling without openpgp
support.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 29 Mar 2017 10:38:34 +0000 (12:38 +0200)]
Moved all openpgp-related variables and definitions into ifdef blocks
This allows compilation with -Werror even if openpgp is disabled.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 29 Mar 2017 07:55:36 +0000 (09:55 +0200)]
OpenPGP authentication is disabled by default
The flag --enable-openpgp-authenticationcan be used to revert
this change.
Resolves #178
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 06:50:53 +0000 (08:50 +0200)]
tools: remove outfile when exited on error
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 06:32:48 +0000 (08:32 +0200)]
certtool: added examples on verifying certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 5 Apr 2017 06:12:17 +0000 (08:12 +0200)]
certtool: improved documentation
Incorporated comments made in Lenka Horakova's thesis study.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 13:22:06 +0000 (15:22 +0200)]
tests: added unit test for PKCS#12 with file that uses PBES1 with no salt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 09:28:27 +0000 (11:28 +0200)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 10:52:14 +0000 (12:52 +0200)]
tests: add unit test for PKCS#12 with file that uses SHA512 for MAC
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 10:11:27 +0000 (12:11 +0200)]
pkcs12: increased the maximum salt size
This accomodates for files which have salt sizes up to 256 bytes.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 10:01:15 +0000 (12:01 +0200)]
_gnutls_pkcs12_string_to_key: allow SHA384 and SHA512
The previous implementation of the function was restricted to SHA1 and
SHA256. Extended to allow SHA384 and SHA512 as well.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 09:25:22 +0000 (11:25 +0200)]
PKCS#12: added support for files with zero salt length in MAC
Resolves #191
Resolves #190
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 09:19:23 +0000 (11:19 +0200)]
tests: added unit test for PKCS#12 with file with no salt in MAC
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 3 Apr 2017 07:44:43 +0000 (09:44 +0200)]
tests: verify that the encryption OID is printed
That is, verify whether certtool --p12-info will print the
actual encryption OID on unsupported files, rather than the
generic PBES2 algorithm.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 3 Apr 2017 07:35:31 +0000 (09:35 +0200)]
gnutls_pkcs8_info: return the encryption algorithm OID on failure
When failing to import a structure due to an unsupported encryption
algorithm OID, return the unsupported OID instead of the generic
PBES2 OID.
Resolves: #193
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Apr 2017 08:26:43 +0000 (10:26 +0200)]
gnutls_transport_set_pull_timeout_function: doc update [ci skip]
Clarified when this function should be set. Based on suggestion by
Sean Greenslade.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Andreas Metzler [Sun, 2 Apr 2017 15:56:15 +0000 (17:56 +0200)]
Use NORMAL priority for SSLv23_*_method.
Instead of enforcing TLS1.0/SSL3.0 use gnutls NORMAL priority for
SSLv23_*_methods.
http://bugs.debian.org/857436
Nikos Mavrogiannopoulos [Sun, 2 Apr 2017 13:14:41 +0000 (15:14 +0200)]
.gitlab-ci.yml: renamed dist build to doc-dist
This better describes the name of the build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 2 Apr 2017 13:12:44 +0000 (15:12 +0200)]
.gitlab-ci.yml: combined minimal and no-tools builds
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 2 Apr 2017 13:07:05 +0000 (15:07 +0200)]
.gitlab-ci.yml: combined static analyser runs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 1 Apr 2017 21:40:12 +0000 (23:40 +0200)]
.gitlab-ci.yml: reduced builds and stages
That is an improvement to run the CI faster.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 30 Mar 2017 18:56:01 +0000 (20:56 +0200)]
tests: added unit test for gnutls_priority_get_cipher_suite_index
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 31 Mar 2017 18:33:49 +0000 (20:33 +0200)]
gnutls-cli: eliminate leak on --list option
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 29 Mar 2017 16:52:48 +0000 (18:52 +0200)]
gnutls_priority_get_cipher_suite_index: fixed returned protocols
That is no longer return indexes for ciphersuites which would not have
been available due to TLS version mismatch in the priorities cache.
Resolves #146
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Matt Turner [Fri, 31 Mar 2017 20:45:04 +0000 (13:45 -0700)]
tests: Copy template out of ${srcdir}
Otherwise, out of tree builds will fail to copy the template.
Signed-off-by: Matt Turner <mattst88@gmail.com>
Nikos Mavrogiannopoulos [Fri, 31 Mar 2017 18:56:04 +0000 (20:56 +0200)]
gnutls_cipher_get_tag_size: document behavior on non-AEAD ciphers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 31 Mar 2017 18:53:19 +0000 (20:53 +0200)]
doc: make a note that parts of the crypto API are in Core API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 31 Mar 2017 14:27:03 +0000 (16:27 +0200)]
tests: added checks with problematic PKCS#12 files
These check whether parsing of unsupported files (e.g., with RC2-128),
will succeed. This serves as functionality check for gnutls_pkcs8_info.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 31 Mar 2017 14:17:07 +0000 (16:17 +0200)]
gnutls_pkcs8_info: do not free oid on GNUTLS_E_UNKNOWN_CIPHER_TYPE
The documented behavior of the function was to return a valid
OID in that case.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 30 Mar 2017 17:58:22 +0000 (19:58 +0200)]
doc update [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 29 Mar 2017 12:08:26 +0000 (14:08 +0200)]
Makefile.am: dropped .clcopying from dist files [ci skip]
It is no longer being used.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 29 Mar 2017 08:40:31 +0000 (10:40 +0200)]
Simplified the generation of ChangeLog [ci skip]
Removed the dependency on git2cl and utilize git log directly.
git2cl seems to provide incorrect output.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 28 Mar 2017 07:05:38 +0000 (09:05 +0200)]
tests: added global locks on tls-fuzzer tests
They both require access to the same port and thus cannot
be run in parallel.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 28 Mar 2017 07:01:25 +0000 (09:01 +0200)]
cert: ensure that there are no leftovers in certificate msg
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 28 Mar 2017 06:58:29 +0000 (08:58 +0200)]
testsuite: added tlsfuzzer certificate requiring tests
This enhances the testsuite by running all the tlsfuzzer
fuzzer tests which require certificates from server.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 28 Mar 2017 06:40:32 +0000 (08:40 +0200)]
alert: return GNUTLS_A_BAD_CERTIFICATE on GNUTLS_E_PK_SIG_VERIFY_FAILED
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 28 Mar 2017 07:28:44 +0000 (09:28 +0200)]
fuzz: updated pkcs12 corpus
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 27 Mar 2017 15:40:23 +0000 (17:40 +0200)]
fuzz: added PKCS#12 file parser fuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 27 Mar 2017 15:28:08 +0000 (17:28 +0200)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sun, 26 Mar 2017 11:46:45 +0000 (13:46 +0200)]
ocsp-test: disable under windows
This test was failing because datefudge couldn't run under win32.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 26 Mar 2017 11:45:37 +0000 (13:45 +0200)]
Revert "ocsp-test: disable under windows"
This reverts commit
90d5ad5a42759957866ba1d9c96f5dccfd3ea1cc .
Nikos Mavrogiannopoulos [Sun, 26 Mar 2017 08:10:02 +0000 (10:10 +0200)]
.travis.yml: no longer install pkg-config
Travis build seem to fail for some reason since pkg-config is already
installed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 26 Mar 2017 08:07:13 +0000 (10:07 +0200)]
ocsp-test: disable under windows
This test was failing because datefudge couldn't run under win32.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 25 Mar 2017 20:48:46 +0000 (21:48 +0100)]
.gitlab-ci.yml: increase time of artifact expiration
This allows to re-run failed builds on the depending stages
during that time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 25 Mar 2017 20:44:53 +0000 (21:44 +0100)]
gnutls.pc: Removed P11_KIT_LIBS from Libs.private
It was already being included in Requires.private. Reported
by Andreas Metzler.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 23 Mar 2017 07:03:52 +0000 (08:03 +0100)]
gnutls.pc: don't include zlib twice in private libs
Nikos Mavrogiannopoulos [Thu, 23 Mar 2017 10:39:34 +0000 (11:39 +0100)]
tests: create-chain.sh: do not explicitly set serial
We were previously exporting certificates with serial number being
zero, which is not allowed by RFC5280.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 23 Mar 2017 10:34:07 +0000 (11:34 +0100)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Mar 2017 08:39:12 +0000 (09:39 +0100)]
tests: added mini-x509-ipaddr
This is a unit test for GNUTLS_DT_IP_ADDRESS as used in
gnutls_certificate_verify_peers().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 22 Mar 2017 08:00:09 +0000 (09:00 +0100)]
Introduced GNUTLS_DT_IP_ADDRESS
This allows verifying an IP address using gnutls_certificate_verify_peers()
or gnutls_x509_trust_list_verify_crt2().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 21 Mar 2017 11:19:35 +0000 (12:19 +0100)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Mar 2017 14:04:50 +0000 (15:04 +0100)]
tests: check whether we fallback to CN unconditionally
This is a unit test for:
"gnutls_x509_crt_check_hostname2: do not fallback to CN unconditionally"
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Mar 2017 14:01:12 +0000 (15:01 +0100)]
gnutls_x509_crt_check_hostname2: do not fallback to CN unconditionally
Do not fallback to checking the CN of a certificate for a hostname
if supported names such as IP addresses were found in gnutls_x509_crt_check_hostname2().
This behavioral change is in order to satisfy the RFC6125 requirement
of not falling back to CN in that case. Reported by Suphannee Sivakorn.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Mar 2017 13:50:10 +0000 (14:50 +0100)]
tests: added unit test of GNUTLS_VERIFY_DO_NOT_ALLOW_IP_MATCHES
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Mar 2017 13:43:36 +0000 (14:43 +0100)]
Introduced verification flag GNUTLS_VERIFY_DO_NOT_ALLOW_IP_MATCHES
This flag when provided to the gnutls_x509_crt_check_hostname2() function
(and its callers), will prevent IP matching of the subject alternative
name. This can be utilized by applications which directly check for
IP addresses using gnutls_x509_crt_check_ip().
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 17 Mar 2017 13:37:21 +0000 (14:37 +0100)]
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 16 Mar 2017 10:38:19 +0000 (11:38 +0100)]
tests: added unit test for gnutls_x509_crt_check_ip
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 16 Mar 2017 09:07:37 +0000 (10:07 +0100)]
Added gnutls_x509_crt_check_ip()
This function allows to directly verify IP addresses on a certificate.
That is a first step towards making gnutls_x509_crt_check_hostname2()
not verify IP addresses.
Based on discussion and suggestion by Suphannee Sivakorn. See
https://lists.gnupg.org/pipermail/gnutls-devel/2017-March/008368.html
Relates #185
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 21 Mar 2017 13:07:22 +0000 (14:07 +0100)]
tests: added unit test of gnutls_pubkey_verify_data2 override flags
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>