]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agoPKCS#5,7 decryption: verify the correctness of padding
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 15:30:46 +0000 (16:30 +0100)] 
PKCS#5,7 decryption: verify the correctness of padding

That is, for block ciphers (i.e., cbc), verify that all the padding bytes
match the expected contents according to RFC2898.

Relates #148

9 years agoPKCS#5,7 decryption: added sanity check on padding size
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 14:17:26 +0000 (15:17 +0100)] 
PKCS#5,7 decryption: added sanity check on padding size

Relates #148

9 years agoPKCS#5,7 decryption: fail without leak on unknown MAC
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 14:01:18 +0000 (15:01 +0100)] 
PKCS#5,7 decryption: fail without leak on unknown MAC

9 years agoPKCS#5,7 decryption: fail early on invalid block sizes
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 13:54:00 +0000 (14:54 +0100)] 
PKCS#5,7 decryption: fail early on invalid block sizes

9 years agoPKCS#5,7 decryption: enforce limits in the support parameter sizes
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 13:47:13 +0000 (14:47 +0100)] 
PKCS#5,7 decryption: enforce limits in the support parameter sizes

This allows to detect invalid parameters early rather than later.
Relates #148

9 years agoupdated auto-generated files for new functions
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 13:03:58 +0000 (14:03 +0100)] 
updated auto-generated files for new functions

9 years agopkcs7 output: use the new functions for DN output
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 09:03:29 +0000 (10:03 +0100)] 
pkcs7 output: use the new functions for DN output

9 years agotests: account for the strict RFC4514 compliance reversal
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 08:52:16 +0000 (09:52 +0100)] 
tests: account for the strict RFC4514 compliance reversal

Test the new functions only for the strict RFC4514 compliance to
output strings, and test the old functions for the legacy format.

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 18:05:27 +0000 (19:05 +0100)] 
doc update

9 years agox509 output: use the new functions for DN output
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 17:52:03 +0000 (18:52 +0100)] 
x509 output: use the new functions for DN output

9 years agocleanups in _gnutls_buffer_to_datum()
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 17:31:37 +0000 (18:31 +0100)] 
cleanups in _gnutls_buffer_to_datum()

9 years agocerttool: use the new APIs for DN extraction
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 17:42:59 +0000 (18:42 +0100)] 
certtool: use the new APIs for DN extraction

9 years ago_gnutls_x509_get_dn: when no data ensure we return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 12:31:34 +0000 (13:31 +0100)] 
_gnutls_x509_get_dn: when no data ensure we return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE

This aligns with the previous (prior to RFC4514 improvements) behavior of the function.

9 years agoIntroduced new functions to allow multiple DN parsing modes
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 15:20:01 +0000 (16:20 +0100)] 
Introduced new functions to allow multiple DN parsing modes

The old DN parsing functions are changed to return the original
non-fully compliant with RFC4514 string format, while the new
ones return the compliant string by default. This allows applications
which relied on the previous format to continue functioning without
changes.

9 years ago.gitlab-ci.yml: include root dir log files in all builds
Nikos Mavrogiannopoulos [Wed, 9 Nov 2016 16:19:48 +0000 (17:19 +0100)] 
.gitlab-ci.yml: include root dir log files in all builds

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 10:06:26 +0000 (11:06 +0100)] 
doc update

9 years agogl: removed invalid module name
Nikos Mavrogiannopoulos [Mon, 14 Nov 2016 11:57:53 +0000 (12:57 +0100)] 
gl: removed invalid module name

9 years agotools: added explicit socket flag to skip TLS initialization
Nikos Mavrogiannopoulos [Sun, 13 Nov 2016 16:08:35 +0000 (17:08 +0100)] 
tools: added explicit socket flag to skip TLS initialization

This allows proper error recovery when SOCKET_FLAG_RAW is specified
and initialize_session() fails.

9 years agognutls-cli-debug: terminate sessions which cannot be re-used
Nikos Mavrogiannopoulos [Sun, 13 Nov 2016 15:41:43 +0000 (16:41 +0100)] 
gnutls-cli-debug: terminate sessions which cannot be re-used

9 years agosockets: only use gnutls_bye on a valid socket session
Nikos Mavrogiannopoulos [Sun, 13 Nov 2016 15:15:42 +0000 (16:15 +0100)] 
sockets: only use gnutls_bye on a valid socket session

9 years agop11tool: --initialize will no longer reset user PIN
Nikos Mavrogiannopoulos [Thu, 10 Nov 2016 05:39:32 +0000 (06:39 +0100)] 
p11tool: --initialize will no longer reset user PIN

That is because it only resetted the user PIN and not the admin PIN,
while at the same time it had problems to cope with the case where
the URL changed between token initialization and PIN setting (which
is the case if --label is provided to --initialize).

9 years agop11tool: added options to initialize a user and admin's PIN
Nikos Mavrogiannopoulos [Thu, 10 Nov 2016 05:34:50 +0000 (06:34 +0100)] 
p11tool: added options to initialize a user and admin's PIN

9 years agognutls_store_pubkey: document the default hosts format
Nikos Mavrogiannopoulos [Fri, 11 Nov 2016 08:01:39 +0000 (09:01 +0100)] 
gnutls_store_pubkey: document the default hosts format

9 years ago_wrap_nettle_pk_verify: use FAIL_IF_LIB_ERROR prior to returning success
Nikos Mavrogiannopoulos [Mon, 7 Nov 2016 08:17:22 +0000 (09:17 +0100)] 
_wrap_nettle_pk_verify: use FAIL_IF_LIB_ERROR prior to returning success

This will prevent verification to succeed if the system is in
error state.

9 years agofips140-2: moved PCT-test in wrap_nettle_generate_keys
Nikos Mavrogiannopoulos [Mon, 7 Nov 2016 08:11:24 +0000 (09:11 +0100)] 
fips140-2: moved PCT-test in wrap_nettle_generate_keys

This allows it to run in any potential scenario, i.e., any
call of _gnutls_pk_generate_keys().

9 years agodoc update
Nikos Mavrogiannopoulos [Sat, 5 Nov 2016 18:18:08 +0000 (19:18 +0100)] 
doc update

9 years ago.gitlab-ci.yml: use included libtasn1 in CI systems which do not have 4.9
Nikos Mavrogiannopoulos [Sun, 6 Nov 2016 09:03:35 +0000 (10:03 +0100)] 
.gitlab-ci.yml: use included libtasn1 in CI systems which do not have 4.9

9 years agobumped the version of the minimum required libtasn1
Nikos Mavrogiannopoulos [Sat, 3 Sep 2016 08:31:27 +0000 (10:31 +0200)] 
bumped the version of the minimum required libtasn1

We now require the latest version that supports OIDs
with elements that are longer than 32-bits.

9 years agotests: added check for the decoding of certificates with long OIDs
Nikos Mavrogiannopoulos [Mon, 11 Jul 2016 09:16:12 +0000 (11:16 +0200)] 
tests: added check for the decoding of certificates with long OIDs

That is, OIDs which have an element which exceeds 2^32.

9 years agosymbol-check: do not compare against symbols not exported by us
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 09:42:58 +0000 (10:42 +0100)] 
symbol-check: do not compare against symbols not exported by us

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

9 years agotests: updated known ciphersuites test for CHACHA20-POLY1305 in the SECURE set
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 08:34:55 +0000 (09:34 +0100)] 
tests: updated known ciphersuites test for CHACHA20-POLY1305 in the SECURE set

9 years agopriorities: added CHACHA20-POLY1305 to SECURE set
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 08:10:18 +0000 (09:10 +0100)] 
priorities: added CHACHA20-POLY1305 to SECURE set

9 years agoreleased 3.5.6
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 07:15:24 +0000 (08:15 +0100)] 
released 3.5.6

9 years agobumped versions
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 06:58:48 +0000 (07:58 +0100)] 
bumped versions

9 years agosymbols.last: updated auto-generated file
Nikos Mavrogiannopoulos [Fri, 4 Nov 2016 06:56:33 +0000 (07:56 +0100)] 
symbols.last: updated auto-generated file

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 19 Oct 2016 08:27:26 +0000 (10:27 +0200)] 
doc update

9 years agotests: added test to ensure that gnutls_rnd() is not called during initialization
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 09:18:09 +0000 (10:18 +0100)] 
tests: added test to ensure that gnutls_rnd() is not called during initialization

9 years agodoc: explicitly state that rng self_test mustn't require rng initialization
Nikos Mavrogiannopoulos [Mon, 24 Oct 2016 06:30:06 +0000 (08:30 +0200)] 
doc: explicitly state that rng self_test mustn't require rng initialization

9 years agodeprecated _gnutls_rnd() in favor of exported gnutls_rnd()
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 12:10:08 +0000 (14:10 +0200)] 
deprecated _gnutls_rnd() in favor of exported gnutls_rnd()

9 years agorng: split initialization in preinit and init
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 12:16:51 +0000 (14:16 +0200)] 
rng: split initialization in preinit and init

This makes gnutls to initialize its random generator on the
first call to gnutls_rnd(). That prevents blocking due to
getrandom() on a constructor; that change allows to use gnutls-linked
applications even in early boot in systems where getrandom() blocks
waiting for entropy.

9 years ago_gnutls_rnd_check: call _rnd_system_entropy_check directly
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 10:40:12 +0000 (11:40 +0100)] 
_gnutls_rnd_check: call _rnd_system_entropy_check directly

9 years agox509: removed unused IDNA file
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 17:07:13 +0000 (18:07 +0100)] 
x509: removed unused IDNA file

9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 12:24:59 +0000 (13:24 +0100)] 
doc update [ci skip]

9 years agohandshake: log advertized version
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 07:29:25 +0000 (08:29 +0100)] 
handshake: log advertized version

9 years agoalgorithms.h: removed exported prototype from internal header
Nikos Mavrogiannopoulos [Wed, 2 Nov 2016 07:13:38 +0000 (08:13 +0100)] 
algorithms.h: removed exported prototype from internal header

9 years agodoc update
Nikos Mavrogiannopoulos [Tue, 1 Nov 2016 17:39:38 +0000 (18:39 +0100)] 
doc update

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 16:23:16 +0000 (17:23 +0100)] 
doc update

9 years agotests: added decoding of multi-value DN
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 15:59:20 +0000 (16:59 +0100)] 
tests: added decoding of multi-value DN

9 years agox509_dn: forbid non-supported escaped chars on DN encoding
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:21:37 +0000 (14:21 +0100)] 
x509_dn: forbid non-supported escaped chars on DN encoding

9 years agotests: enhanced RFC4514 with arbitrary escaped strings
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:07:13 +0000 (14:07 +0100)] 
tests: enhanced RFC4514 with arbitrary escaped strings

9 years agox509_dn: allow arbitrary escaped strings
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:07:27 +0000 (14:07 +0100)] 
x509_dn: allow arbitrary escaped strings

In addition fail encoding on unescaped '+'. We do not support it
for DN encoding.

9 years agotests: modified to account for backwards-encoded DN (according to RFC4514)
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 12:46:49 +0000 (14:46 +0200)] 
tests: modified to account for backwards-encoded DN (according to RFC4514)

9 years agotests: removed old README file
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 12:18:17 +0000 (13:18 +0100)] 
tests: removed old README file

The description in the file had no relevance to the existing tests.

9 years agognutls_x509_crt_set_*dn, gnutls_x509_dn_set_str: honor the reverse property of RFC4514
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 12:00:14 +0000 (13:00 +0100)] 
gnutls_x509_crt_set_*dn, gnutls_x509_dn_set_str: honor the reverse property of RFC4514

When converting an RFC4514 string to a DN ensure that the elements
are encoded in reverse order, as required by the RFC.

Resolves #111

9 years agoEncode string DNs backwards according to RFC4514
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 13:35:44 +0000 (15:35 +0200)] 
Encode string DNs backwards according to RFC4514

This makes the output string from functions such as gnutls_x509_crt_get*dn()
to comply with RFC4514 requirements in DN element order.

Relates #111

9 years agoUpdated issue templates [ci skip]
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:41:10 +0000 (14:41 +0100)] 
Updated issue templates [ci skip]

9 years agoAdded issue templates [ci skip]
Nikos Mavrogiannopoulos [Mon, 31 Oct 2016 13:35:22 +0000 (14:35 +0100)] 
Added issue templates [ci skip]

9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Sat, 29 Oct 2016 21:45:18 +0000 (23:45 +0200)] 
doc update [ci skip]

9 years agonettle: renamed system random generator-related files for clarity
Nikos Mavrogiannopoulos [Sat, 29 Oct 2016 21:31:00 +0000 (23:31 +0200)] 
nettle: renamed system random generator-related files for clarity

9 years agotests: introduced checks for gnutls_rnd() in multi-threaded scenario
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 12:34:10 +0000 (14:34 +0200)] 
tests: introduced checks for gnutls_rnd() in multi-threaded scenario

9 years agotests: introduced sanity checks in rng-fork
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 12:33:53 +0000 (14:33 +0200)] 
tests: introduced sanity checks in rng-fork

9 years agodrbg-aes-self-test: corrected free call
Nikos Mavrogiannopoulos [Mon, 24 Oct 2016 06:30:29 +0000 (08:30 +0200)] 
drbg-aes-self-test: corrected free call

9 years agotests: check for gnutls 3.3.x compatibility
Nikos Mavrogiannopoulos [Thu, 27 Oct 2016 19:04:49 +0000 (21:04 +0200)] 
tests: check for gnutls 3.3.x compatibility

That is, check whether the status request extension is not sent
by the server, if the server does not hold a status response. We
require that behavior to be backwards compatible with gnutls 3.3.x.

9 years agoReverted the behavior of sending a status request extension even without a response
Nikos Mavrogiannopoulos [Wed, 26 Oct 2016 15:51:11 +0000 (17:51 +0200)] 
Reverted the behavior of sending a status request extension even without a response

That is, we no longer reply to a client's hello with a status request, with
a status request extension. Although that behavior which was introduced
in 6b76e0c899b1ff08df9bd9b41588f771f050be89 is legal, it creates incompatibility
issues with gnutls 3.3.x branch. That is because versions prior 3.3.26
translates the presence of the extension as a guarrantee that the status
response data will be sent. Even though, that is false assumption we
replicate the previous behavior to allow such clients to connect to
a gnutls 3.5.x server.

Relates !66

9 years agotests: do not enable testpkcs11.sh twice
Dmitry Eremin-Solenikov [Thu, 27 Oct 2016 15:42:38 +0000 (18:42 +0300)] 
tests: do not enable testpkcs11.sh twice

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agostarttls: search for chat in sbin if it is not present in PATH
Dmitry Eremin-Solenikov [Sat, 22 Oct 2016 11:24:16 +0000 (14:24 +0300)] 
starttls: search for chat in sbin if it is not present in PATH

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agoFix autoconf warnings in libopts.m4
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 01:17:36 +0000 (04:17 +0300)] 
Fix autoconf warnings in libopts.m4

Without this patch Autoconf will spam console with the following kind of
messages:

configure.ac:650: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2740: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2759: AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2042: AC_CACHE_VAL is expanded from...
src/libopts/m4/libopts.m4:386: LIBOPTS_RUN_FOPEN_TEXT is expanded from...
src/libopts/m4/libopts.m4:425: INVOKE_LIBOPTS_MACROS is expanded from...
src/libopts/m4/libopts.m4:560: AM_COND_IF is expanded from...
src/libopts/m4/libopts.m4:581: LIBOPTS_CHECK is expanded from...
configure.ac:650: the top level

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agocfg.mk: fix m4 files removal
Dmitry Eremin-Solenikov [Fri, 21 Oct 2016 23:18:40 +0000 (02:18 +0300)] 
cfg.mk: fix m4 files removal

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agotests: better check for gnutls_ecc_curve_get result
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 15:45:03 +0000 (17:45 +0200)] 
tests: better check for gnutls_ecc_curve_get result

9 years agoTerminate handshake if only unknown or disabled signatures are advertized by the...
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 15:30:43 +0000 (17:30 +0200)] 
Terminate handshake if only unknown or disabled signatures are advertized by the peer

That is, do not attempt to proceed assuming that the peer supports SHA-1.

9 years agoFix compilation of tests if nettle is not installed in standard path
Dmitry Eremin-Solenikov [Sat, 22 Oct 2016 00:28:14 +0000 (03:28 +0300)] 
Fix compilation of tests if nettle is not installed in standard path

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
9 years agognutls-cli-debug: corrected TLS1.2 detection
Nikos Mavrogiannopoulos [Tue, 25 Oct 2016 06:03:32 +0000 (08:03 +0200)] 
gnutls-cli-debug: corrected TLS1.2 detection

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 24 Oct 2016 06:33:42 +0000 (08:33 +0200)] 
doc update

9 years agomodified the gnutls_certificate_set_key* change
Nikos Mavrogiannopoulos [Sat, 22 Oct 2016 07:41:45 +0000 (09:41 +0200)] 
modified the gnutls_certificate_set_key* change

While the change was fully backwards compatible for applications that were
adding a single certificate, and applications that were checking for negative
errors codes, many applications do not. As this may cause incompatibility issues
with software properly utilizing the previously documented API, the change
is reverted, and applications need to explicitly enable a flag (GNUTLS_CERTIFICATE_API_V2)
in the credentials structure for the set_key functions to return an index.

9 years agotests: removed nohats.ca from testdane
Nikos Mavrogiannopoulos [Wed, 19 Oct 2016 21:06:59 +0000 (23:06 +0200)] 
tests: removed nohats.ca from testdane

The host seems to be unreliable.

9 years ago.travis.yml: use as many jobs as CPUs in OSX
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 14:43:47 +0000 (16:43 +0200)] 
.travis.yml: use as many jobs as CPUs in OSX

9 years ago.travis.yml: do not run the public submodule checks of maint.mk
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 14:14:32 +0000 (16:14 +0200)] 
.travis.yml: do not run the public submodule checks of maint.mk

These seem to be problematic to detect modification and are preventing
the CI from operating.

9 years ago.travis.yml: simplified the submodule checkout
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 11:16:50 +0000 (13:16 +0200)] 
.travis.yml: simplified the submodule checkout

The default submodule initialization in travis caused the MacOSX builds to fail.

9 years agoAdded casts to prevent compiler warnings
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 11:15:19 +0000 (13:15 +0200)] 
Added casts to prevent compiler warnings

9 years agocorrected typo
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 11:14:57 +0000 (13:14 +0200)] 
corrected typo

9 years agoREADME.md: corrected link to travius build
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 10:10:56 +0000 (12:10 +0200)] 
README.md: corrected link to travius build

9 years ago.travis.yml: added support for compiling in macosx
Nikos Mavrogiannopoulos [Thu, 20 Oct 2016 13:58:38 +0000 (15:58 +0200)] 
.travis.yml: added support for compiling in macosx

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 09:02:30 +0000 (11:02 +0200)] 
doc update

9 years agotests: added checks for the new GNUTLS_NO_TICKETS flag
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 09:01:43 +0000 (11:01 +0200)] 
tests: added checks for the new GNUTLS_NO_TICKETS flag

9 years agognutls_init: added GNUTLS_NO_TICKETS flags
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 08:26:13 +0000 (10:26 +0200)] 
gnutls_init: added GNUTLS_NO_TICKETS flags

These flags allow the callers to disable the automatically enabled
session tickets. This could be done only with GNUTLS_NO_EXTENSIONS
which also disabled other useful extensions.

9 years agotests: added pkcs11-privkey-export
Nikos Mavrogiannopoulos [Thu, 20 Oct 2016 07:26:10 +0000 (09:26 +0200)] 
tests: added pkcs11-privkey-export

This checks whether the public parts of RSA private and public keys
can be properly extracted from a PKCS#11 module.

9 years agoExpose CKA_PUBLIC_EXPONENT and CKA_MODULUS for private keys too
Jakub Jelen [Wed, 19 Oct 2016 11:41:55 +0000 (13:41 +0200)] 
Expose CKA_PUBLIC_EXPONENT and CKA_MODULUS for private keys too

9 years agotests/pkcs11: Return also CKA_CLASS
Jakub Jelen [Wed, 19 Oct 2016 07:17:52 +0000 (09:17 +0200)] 
tests/pkcs11: Return also CKA_CLASS

9 years agotests/pkcs11: Expose SUBJECT for certificates, PUBLIC_EXPONENT and MODULUS for public...
Jakub Jelen [Tue, 18 Oct 2016 13:28:39 +0000 (15:28 +0200)] 
tests/pkcs11: Expose SUBJECT for certificates, PUBLIC_EXPONENT and MODULUS for public keys to widen compatibility

9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 13:42:52 +0000 (15:42 +0200)] 
doc update [ci skip]

9 years agoupdated auto-generated files
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 11:45:34 +0000 (13:45 +0200)] 
updated auto-generated files

9 years agodoc update
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 07:24:02 +0000 (09:24 +0200)] 
doc update

9 years agocerttool: allow setting key purposes for non-CA certificates
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 08:13:56 +0000 (10:13 +0200)] 
certtool: allow setting key purposes for non-CA certificates

That is, allow setting code signing, or time stamping key purpose
in certificates that are not marked as CA. The previous restriction
served no purpose.

9 years agocerttool: introduce key purpose checks in p7 direct verification
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 08:01:49 +0000 (10:01 +0200)] 
certtool: introduce key purpose checks in p7 direct verification

9 years agox509: introduced gnutls_x509_crt_check_key_purpose()
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 07:22:59 +0000 (09:22 +0200)] 
x509: introduced gnutls_x509_crt_check_key_purpose()

9 years agognutls_x509_crt_verify_data2: introduce constraints checks on the provided certificate
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 13:07:03 +0000 (15:07 +0200)] 
gnutls_x509_crt_verify_data2: introduce constraints checks on the provided certificate

That is check the provided certificate for validity in time and key usage.

9 years agotests: introduced verification constraints checks for PKCS#7 structures
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 08:02:29 +0000 (10:02 +0200)] 
tests: introduced verification constraints checks for PKCS#7 structures

That is, key purpose checks and more elaborate time checks.

9 years agognutls-serv: use the included known DH parameters by default
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 10:00:41 +0000 (12:00 +0200)] 
gnutls-serv: use the included known DH parameters by default

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 09:54:51 +0000 (11:54 +0200)] 
doc update