]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agodoc: no longer list SHA1 as a safe choice in X.509 signing
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 15:32:04 +0000 (16:32 +0100)] 
doc: no longer list SHA1 as a safe choice in X.509 signing

9 years agocerttool: prevent-null termination of buffers allocated with fread_file()
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 15:19:31 +0000 (16:19 +0100)] 
certtool: prevent-null termination of buffers allocated with fread_file()

We do not know whether their allocated size allows for that additional
null, and we do not need the null termination.

9 years agognutls_x509_crl_verify: always return zero on success
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 07:40:13 +0000 (08:40 +0100)] 
gnutls_x509_crl_verify: always return zero on success

Also document that in previous versions a positive number could
be returned on success. Reported by Adrien Beraud.

9 years agotests: corrected space-tab issue
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 13:09:15 +0000 (14:09 +0100)] 
tests: corrected space-tab issue

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 09:04:45 +0000 (10:04 +0100)] 
doc update

9 years agoImproved messages and violation handling in signature key usage checks
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:55:51 +0000 (09:55 +0100)] 
Improved messages and violation handling in signature key usage checks

This will now tolerate violations in server certificate, if
%DEBUG_ALLOW_KEY_USAGE_VIOLATIONS is set.

9 years agoRemoved redundant certificate key usage checks.
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:48:56 +0000 (09:48 +0100)] 
Removed redundant certificate key usage checks.

There were redundant checks when a certificate was obtained, as
well as prior to performing operations with certificates/pubkeys.
Kept the checks prior to operations.

9 years ago_gnutls_map_pk_get_pk -> _gnutls_map_kx_get_pk
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:45:26 +0000 (09:45 +0100)] 
_gnutls_map_pk_get_pk -> _gnutls_map_kx_get_pk

9 years agognutls_kx_get: allow calling the function during handshake
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 13:18:51 +0000 (14:18 +0100)] 
gnutls_kx_get: allow calling the function during handshake

Previous this function would return garbage during handshake, because
parameters were not considered established, however there are valid
uses of this function during it. For that reason this function is
modified to return a correct value even during handshake (after
a hello is being exchanged).

9 years ago_gnutls_check_key_usage: check for invalid key exchange algorithm
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 13:14:42 +0000 (14:14 +0100)] 
_gnutls_check_key_usage: check for invalid key exchange algorithm

Reported by Dmitry Eremin-Solenikov.

9 years agotests: added checks on signature key usage violations
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 13:56:41 +0000 (14:56 +0100)] 
tests: added checks on signature key usage violations

9 years ago.gitlab-ci.yml: added docker tag on mingw builds
Nikos Mavrogiannopoulos [Thu, 1 Dec 2016 08:10:41 +0000 (09:10 +0100)] 
.gitlab-ci.yml: added docker tag on mingw builds

That ensures that these builds are done on the gitlab.com runners
which run as privileged containers (and thus have access to mount).

9 years agoprivkey: set the key parameters algorithm prior to returning success
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 08:20:26 +0000 (09:20 +0100)] 
privkey: set the key parameters algorithm prior to returning success

9 years agoWhen decoding a public key ensure that algorithm is written in the params struct
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 08:15:06 +0000 (09:15 +0100)] 
When decoding a public key ensure that algorithm is written in the params struct

Reported by Dmitry Eremin-Solenikov.

9 years agocfg.mk: disable checks for public submodule updates in CI
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 07:54:09 +0000 (08:54 +0100)] 
cfg.mk: disable checks for public submodule updates in CI

9 years ago.gitlab-ci.yml: do not require update to /proc/sys/fs/binfmt_misc to succeed
Nikos Mavrogiannopoulos [Wed, 30 Nov 2016 07:44:40 +0000 (08:44 +0100)] 
.gitlab-ci.yml: do not require update to /proc/sys/fs/binfmt_misc to succeed

In some CI systems, it is not possible to write to this filesystem, and
they already have the wine executable registered. In the case we cannot
write proceed to running the check and hope for the best.

9 years agotests: use datefudge in rsa-md5-collision check
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 15:00:30 +0000 (16:00 +0100)] 
tests: use datefudge in rsa-md5-collision check

This makes sure that any failure detected is not because of
expired certificates, but because of MD5 being disabled.

9 years agotools: use stamp files to allow parallel build of autogen files
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 14:51:18 +0000 (15:51 +0100)] 
tools: use stamp files to allow parallel build of autogen files

Autogen seems to output on the creates files gradually, something that
makes 'make' believe that the command is complete prior to the output
file being fully populated. The current approach uses stamp files to
ensure that no incomplete files are used for compilation.

9 years agoguile: do not use +COMP-DEFLATE in priorities test
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 12:44:01 +0000 (13:44 +0100)] 
guile: do not use +COMP-DEFLATE in priorities test

This allows the test to work even in the cases where gnutls
is compiled without zlib support.

9 years agomoved all syntax check exceptions in cfg.mk
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 17:19:43 +0000 (18:19 +0100)] 
moved all syntax check exceptions in cfg.mk

9 years ago.gitlab-ci.yml: added zlib dependency
Nikos Mavrogiannopoulos [Tue, 29 Nov 2016 06:57:26 +0000 (07:57 +0100)] 
.gitlab-ci.yml: added zlib dependency

9 years ago.gitlab-ci.yml: fixed artifacts paths for Debian build
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 11:48:25 +0000 (12:48 +0100)] 
.gitlab-ci.yml: fixed artifacts paths for Debian build

9 years agotests: str-unicode: check whether exceptions are tolerated on decryption
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 09:26:14 +0000 (10:26 +0100)] 
tests: str-unicode: check whether exceptions are tolerated on decryption

9 years agotests: added exception and join control characters in str-unicode
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 09:01:02 +0000 (10:01 +0100)] 
tests: added exception and join control characters in str-unicode

9 years agounistring: added property-join-control
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 08:38:38 +0000 (09:38 +0100)] 
unistring: added property-join-control

9 years agounistring: added default_ignorable_code_point and not_a_character tests
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 16:49:10 +0000 (17:49 +0100)] 
unistring: added default_ignorable_code_point and not_a_character tests

9 years agounistring: added NFKC normalization
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 16:23:51 +0000 (17:23 +0100)] 
unistring: added NFKC normalization

9 years agounistring: included all possible categories for simplicity and extensibility
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 14:29:43 +0000 (15:29 +0100)] 
unistring: included all possible categories for simplicity and extensibility

9 years agotests: enhanced str-unicode with more char sets
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 13:55:37 +0000 (14:55 +0100)] 
tests: enhanced str-unicode with more char sets

9 years agognutls_utf8_password_normalize: perform more strict check on input characters
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 13:20:11 +0000 (14:20 +0100)] 
gnutls_utf8_password_normalize: perform more strict check on input characters

That is, ensure that the input characters are in the valid class of characters
for the PRECIS FreeformClass.

9 years agotests: fixed str-unicode tests with control characters
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 12:11:44 +0000 (13:11 +0100)] 
tests: fixed str-unicode tests with control characters

9 years agognutls_utf8_password_normalize: avoid use of strlen()
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 12:02:48 +0000 (13:02 +0100)] 
gnutls_utf8_password_normalize: avoid use of strlen()

9 years agotests: added pkcs12 file with long password
Nikos Mavrogiannopoulos [Mon, 28 Nov 2016 10:03:28 +0000 (11:03 +0100)] 
tests: added pkcs12 file with long password

9 years agorenamed system/iconv.c -> str-iconv.c
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 15:09:20 +0000 (16:09 +0100)] 
renamed system/iconv.c -> str-iconv.c

We no longer use the system's functionality for converting between
charsets (we use libunistring), hence it is no longer suitable for
the wrappers to stay in system/.

9 years agox509: when printing ACE DNSnames ensure the actual name is also printed
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 10:58:14 +0000 (11:58 +0100)] 
x509: when printing ACE DNSnames ensure the actual name is also printed

9 years agotests: added unit tests of of _gnutls_idna_reverse_map
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 10:47:53 +0000 (11:47 +0100)] 
tests: added unit tests of of _gnutls_idna_reverse_map

9 years agointroduced _gnutls_idna_reverse_map()
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 10:34:19 +0000 (11:34 +0100)] 
introduced _gnutls_idna_reverse_map()

This function allows mapping ACE formatted domains to UTF-8.

9 years agoCombined checks for printable characters
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 09:05:28 +0000 (10:05 +0100)] 
Combined checks for printable characters

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 08:58:58 +0000 (09:58 +0100)] 
doc update

9 years agotests: updated crt_apis to include setting UTF-8 SAN
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 07:44:59 +0000 (08:44 +0100)] 
tests: updated crt_apis to include setting UTF-8 SAN

9 years agotests: updated crq_apis to include setting UTF-8 SAN
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 07:17:13 +0000 (08:17 +0100)] 
tests: updated crq_apis to include setting UTF-8 SAN

9 years agognutls_idna_map: check for printable data prior to mapping
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 08:48:56 +0000 (09:48 +0100)] 
gnutls_idna_map: check for printable data prior to mapping

9 years agognutls_x509_aia_set: IDNA encode when needed
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 09:53:23 +0000 (10:53 +0100)] 
gnutls_x509_aia_set: IDNA encode when needed

9 years agoWhen writing alternative names to certificates ensure we write in ACE format
Nikos Mavrogiannopoulos [Wed, 16 Nov 2016 13:48:59 +0000 (14:48 +0100)] 
When writing alternative names to certificates ensure we write in ACE format

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 09:39:10 +0000 (10:39 +0100)] 
doc update

9 years agotests: added pkcs7 verification with struct generated from openssl (with keyid)
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 15:30:49 +0000 (16:30 +0100)] 
tests: added pkcs7 verification with struct generated from openssl (with keyid)

9 years agotests: added pkcs7 verification with struct generated from openssl
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 14:44:35 +0000 (15:44 +0100)] 
tests: added pkcs7 verification with struct generated from openssl

9 years agodoc: added certificate for ECC with any purpose
Nikos Mavrogiannopoulos [Fri, 25 Nov 2016 09:23:00 +0000 (10:23 +0100)] 
doc: added certificate for ECC with any purpose

9 years agopkcs7: return GNUTLS_E_PK_SIG_VERIFY_FAILED on hash mismatch
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 15:40:15 +0000 (16:40 +0100)] 
pkcs7: return GNUTLS_E_PK_SIG_VERIFY_FAILED on hash mismatch

In addition introduce a new error code to warn about no embedded data.

9 years agopkcs7: only print signer's issuer DN when DN has contents
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 15:33:18 +0000 (16:33 +0100)] 
pkcs7: only print signer's issuer DN when DN has contents

9 years agopkcs7: added recursive discovery of structure's signer
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 13:51:15 +0000 (14:51 +0100)] 
pkcs7: added recursive discovery of structure's signer

This uses the PKCS#7 certificate list as a pool of certificates
to generate a certificate chain that leads to our root CAs.

9 years agopkcs7: on data verification failure log the signer
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 14:11:31 +0000 (15:11 +0100)] 
pkcs7: on data verification failure log the signer

9 years agotests: added complex verification example using PKCS#7
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 12:17:41 +0000 (13:17 +0100)] 
tests: added complex verification example using PKCS#7

That uses multiple intermediate certificates from the PKCS#7 structure.

9 years agodoc: updated gnutls_x509_trust_list_verify_crt2()
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 13:32:28 +0000 (14:32 +0100)] 
doc: updated gnutls_x509_trust_list_verify_crt2()

9 years agopkcs7: pass the verification flags down to gnutls_x509_trust_list_verify_crt2, in...
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 12:14:16 +0000 (13:14 +0100)] 
pkcs7: pass the verification flags down to gnutls_x509_trust_list_verify_crt2, in find_signer()

This allows for flags like GNUTLS_VERIFY_DISABLE_TIME_CHECKS to apply when
verifying PKCS#7 structures.

9 years agopkcs7: corrected iteration over stored certificates
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 08:54:17 +0000 (09:54 +0100)] 
pkcs7: corrected iteration over stored certificates

This allows to use all possibly stored certificates on chain discovery,
not only the first.

9 years agopkcs7: added debug logging on verification discovery
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 08:53:58 +0000 (09:53 +0100)] 
pkcs7: added debug logging on verification discovery

9 years agoerrors.h: added _gnutls_reason_log
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 13:54:46 +0000 (14:54 +0100)] 
errors.h: added _gnutls_reason_log

9 years agoerrors.h: added _gnutls_cert_log
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 08:49:13 +0000 (09:49 +0100)] 
errors.h: added _gnutls_cert_log

This log function allows to easily log the name of a certificate.

9 years agocerttool: One if check is enough
Andreas Schneider [Thu, 24 Nov 2016 16:31:45 +0000 (17:31 +0100)] 
certtool: One if check is enough

Signed-off-by: Andreas Schneider <asn@samba.org>
9 years agocorrected log message [ci skip]
Nikos Mavrogiannopoulos [Thu, 24 Nov 2016 07:37:47 +0000 (08:37 +0100)] 
corrected log message [ci skip]

9 years agognutls_idna_map was prefixed with underscore to avoid clashes with exported symbols
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 20:09:03 +0000 (21:09 +0100)] 
gnutls_idna_map was prefixed with underscore to avoid clashes with exported symbols

9 years agomore files to ignore
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 13:37:47 +0000 (14:37 +0100)] 
more files to ignore

9 years agoavoid the use of c_isascii() and use c_isprint()
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 13:30:48 +0000 (14:30 +0100)] 
avoid the use of c_isascii() and use c_isprint()

That latter detects correctly the printable characters we are
interested in.

9 years agotests: added unit tests for gnutls_idna_map()
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 14:45:22 +0000 (15:45 +0100)] 
tests: added unit tests for gnutls_idna_map()

9 years agoIDNA code re-organization
Nikos Mavrogiannopoulos [Wed, 23 Nov 2016 12:12:08 +0000 (13:12 +0100)] 
IDNA code re-organization

That introduces the internal function gnutls_idna_map(), which
utilizes libidn and libunistring to convert hostnames to IDNA ACE
form.

9 years agotests: updated outputs to reflect new fingerprint/keyid formats
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:57:01 +0000 (16:57 +0100)] 
tests: updated outputs to reflect new fingerprint/keyid formats

9 years agotests: made tmp files unique
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:56:41 +0000 (16:56 +0100)] 
tests: made tmp files unique

9 years agodoc update
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:43:25 +0000 (16:43 +0100)] 
doc update

9 years agoAlign the printing of a certificate's fingerprint with the key ID printing
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:42:14 +0000 (16:42 +0100)] 
Align the printing of a certificate's fingerprint with the key ID printing

9 years agoPrint a key's or certificate's key ID with SHA256 in addition to SHA1
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:35:58 +0000 (16:35 +0100)] 
Print a key's or certificate's key ID with SHA256 in addition to SHA1

9 years agocerttool: address compiler warnings
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 15:18:01 +0000 (16:18 +0100)] 
certtool: address compiler warnings

9 years agodoc: document the RFC7613 normalization of passwords [ci skip]
Nikos Mavrogiannopoulos [Tue, 22 Nov 2016 08:31:19 +0000 (09:31 +0100)] 
doc: document the RFC7613 normalization of passwords [ci skip]

9 years agounistring: include only the required categories
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 20:16:28 +0000 (21:16 +0100)] 
unistring: include only the required categories

In addition fix the license text of the included library.

9 years agoserver_name: log server name sent
Nikos Mavrogiannopoulos [Wed, 16 Nov 2016 14:50:39 +0000 (15:50 +0100)] 
server_name: log server name sent

9 years agox509/output: improve log message on embedded null
Nikos Mavrogiannopoulos [Wed, 16 Nov 2016 15:47:15 +0000 (16:47 +0100)] 
x509/output: improve log message on embedded null

9 years agobuild-aux: added unused-parameter.h
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 11:00:28 +0000 (12:00 +0100)] 
build-aux: added unused-parameter.h

9 years ago.gitlab-ci.yml: explicitly specify --with-included-unistring when needed
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 10:36:43 +0000 (11:36 +0100)] 
.gitlab-ci.yml: explicitly specify --with-included-unistring when needed

9 years agohooks.m4: corrected typo
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 10:32:09 +0000 (11:32 +0100)] 
hooks.m4: corrected typo

9 years ago.gitlab-ci.yml: ignore syntax-check issues caused by included unistring
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 09:52:23 +0000 (10:52 +0100)] 
.gitlab-ci.yml: ignore syntax-check issues caused by included unistring

9 years agomore files to ignore
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 09:11:32 +0000 (10:11 +0100)] 
more files to ignore

9 years agounconditionally include unistring code
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 08:38:38 +0000 (09:38 +0100)] 
unconditionally include unistring code

That simplifies internationalization support, at the cost of
including a version of libunistring, which is used on systems
which do not ship it.

9 years agolib: added unistring sub-library
Nikos Mavrogiannopoulos [Mon, 21 Nov 2016 08:20:36 +0000 (09:20 +0100)] 
lib: added unistring sub-library

9 years agoupdated auto-generated files for gnutls_utf8_password_normalize()
Nikos Mavrogiannopoulos [Sun, 20 Nov 2016 16:11:57 +0000 (17:11 +0100)] 
updated auto-generated files for gnutls_utf8_password_normalize()

9 years agotests: enhanced str-unicode with GNUTLS_UTF8_IGNORE_ERRS flag
Nikos Mavrogiannopoulos [Sun, 20 Nov 2016 16:08:55 +0000 (17:08 +0100)] 
tests: enhanced str-unicode with GNUTLS_UTF8_IGNORE_ERRS flag

That is, enhanced to check the tolerable variant of gnutls_utf8_password_normalize()

9 years ago.gitlab-ci.yml: added build without libunistring
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 17:26:21 +0000 (18:26 +0100)] 
.gitlab-ci.yml: added build without libunistring

9 years agodoc: mention the RFC7613 normalization and the libunistring dependency
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 09:42:32 +0000 (10:42 +0100)] 
doc: mention the RFC7613 normalization and the libunistring dependency

9 years agotolerate non-valid UTF8 passwords when decrypting
Nikos Mavrogiannopoulos [Sun, 20 Nov 2016 16:03:02 +0000 (17:03 +0100)] 
tolerate non-valid UTF8 passwords when decrypting

9 years agotests: addressed compiler warnings
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 13:42:26 +0000 (14:42 +0100)] 
tests: addressed compiler warnings

9 years ago_gnutls_utf8_to_ucs2: normalize to NFC UTF16 output
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 13:40:19 +0000 (14:40 +0100)] 
_gnutls_utf8_to_ucs2: normalize to NFC UTF16 output

9 years agoopenssl_hash_password: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 13:31:24 +0000 (14:31 +0100)] 
openssl_hash_password: normalize the password prior to use

9 years agoTPM: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 11:55:22 +0000 (12:55 +0100)] 
TPM: normalize the password prior to use

9 years ago_gnutls_calc_srp_sha: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 09:53:40 +0000 (10:53 +0100)] 
_gnutls_calc_srp_sha: normalize the password prior to use

9 years agognutls_x509_crq_set_challenge_password: normalize the password prior to use
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 09:50:42 +0000 (10:50 +0100)] 
gnutls_x509_crq_set_challenge_password: normalize the password prior to use

9 years agoPKCS#7/8: normalize the password according to rfc7613
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 09:48:04 +0000 (10:48 +0100)] 
PKCS#7/8: normalize the password according to rfc7613

9 years agognutls.pc: use the LT version of the lib variables
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 09:53:37 +0000 (10:53 +0100)] 
gnutls.pc: use the LT version of the lib variables

9 years agoUse libunistring when present instead of iconv()
Nikos Mavrogiannopoulos [Tue, 8 Nov 2016 14:24:26 +0000 (15:24 +0100)] 
Use libunistring when present instead of iconv()

That allows us to rely to a single provider for unicode
functionality.

9 years agotests: added unit tests for gnutls_utf8_password_normalize()
Nikos Mavrogiannopoulos [Tue, 8 Nov 2016 14:24:00 +0000 (15:24 +0100)] 
tests: added unit tests for gnutls_utf8_password_normalize()

9 years agoAdded function for UTF-8 normalization based on RFC7613
Nikos Mavrogiannopoulos [Tue, 8 Nov 2016 12:00:16 +0000 (13:00 +0100)] 
Added function for UTF-8 normalization based on RFC7613

This introduces gnutls_utf8_password_normalize() and a dependency on libunistring.

9 years agotests: added test suite with PKCS#8 files that have invalid encryption
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 16:12:02 +0000 (17:12 +0100)] 
tests: added test suite with PKCS#8 files that have invalid encryption