]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Tue, 4 Jul 2017 14:15:08 +0000 (16:15 +0200)]
ext/alpn: added stricter checks on field lengths
That is, no longer tolerate empty fields, and error on invalid
lengths.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Jul 2017 13:35:25 +0000 (15:35 +0200)]
gnutls-serv: added the --alpn and --alpn-fatal options
This allows specifying ALPN protocols supported by server, allowing
to test the ALPN negotiation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 4 Jul 2017 09:42:59 +0000 (11:42 +0200)]
fuzz: updated server with multiple keys (ECDSA, RSA) and DH parameters [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 1 Jul 2017 08:50:57 +0000 (10:50 +0200)]
OCSP: find_signercert: improved DER length calculation
Previously we were assuming a fixed amount of length bytes which
is not correct for all possible lengths. Use libtasn1 to decode
the length field.
Resolves: #223
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 30 Jun 2017 08:04:01 +0000 (10:04 +0200)]
OCSP: check the subject public key identifier field to figure issuer
Normally when attempting to match the 'Responder Key ID' in an OCSP response
against the issuer certificate we check (according to RFC6960) against the
hash of the SPKI field. However, in few certificates (see commit:
"added ECDSA OCSP response verification"), that may not be the case. In that
certificate, that value matches the Subject Public Key identifier field
but not the hash.
To account for these certificates, we enhance the matching to also consider
the Subject Public Key identifier field.
Relates: #223
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 30 Jun 2017 07:33:08 +0000 (09:33 +0200)]
OCSP: added more verbose debug logging on verification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 29 Jun 2017 19:17:34 +0000 (21:17 +0200)]
tests: added ECDSA OCSP response verification
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 30 Jun 2017 08:43:20 +0000 (10:43 +0200)]
.travis.yml: do not fail on brew install failures
brew install seems to fail on several occasions when a newer package
is available than the installed. Ignore those errors rather than
failing build.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 29 Jun 2017 12:34:20 +0000 (14:34 +0200)]
tests: added check on saving certs and OCSP responses
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 29 Jun 2017 12:28:29 +0000 (14:28 +0200)]
gnutls-cli: save OCSP response at the time certificate is saved
That ensures that we always save the OCSP response, even when certificate
verification fails.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 12:26:07 +0000 (14:26 +0200)]
moved compression-related APIs to compat.h
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 06:56:09 +0000 (08:56 +0200)]
doc: removed any references to compression and documented change
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 5 Jun 2017 14:20:25 +0000 (16:20 +0200)]
tests: removed tests related to zlib support
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 5 Jun 2017 13:58:35 +0000 (15:58 +0200)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 5 Jun 2017 13:36:18 +0000 (15:36 +0200)]
Removed support for compression mechanisms
They are not required for TLS 1.3, and are deprecated for TLS 1.2.
We eliminate them in order to reduce the complexity in the record
packet handling.
Resolves #212
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 20 Jun 2017 11:59:54 +0000 (13:59 +0200)]
gnutls-cli: be less verbose in OCSP error messages
Previously we were reporting "No issuer found" if any certificate
in a chain could not be verified. That was confusing information
and not strictly necessary. No longer print that.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 20 Jun 2017 11:57:15 +0000 (13:57 +0200)]
gnutls-cli: improved error message of OCSP failure
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 20 Jun 2017 07:12:39 +0000 (09:12 +0200)]
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 19 Jun 2017 18:50:22 +0000 (20:50 +0200)]
tests: ocsptool: added test of --verify-response with --load-chain
This utilizes the provided chain to find the signer of the
OCSP response.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 20 Jun 2017 07:09:41 +0000 (09:09 +0200)]
ocsp: print response's signature algorithm in compact listing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 20 Jun 2017 07:06:01 +0000 (09:06 +0200)]
ocsptool: verify_response will print information on the response
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 20 Jun 2017 06:59:45 +0000 (08:59 +0200)]
ocsptool: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 20 Jun 2017 06:31:41 +0000 (08:31 +0200)]
ocsptool: allow combining --load-trust with --verify-response
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 19 Jun 2017 18:58:21 +0000 (20:58 +0200)]
ocsptool: --load-chain will sort the input chain
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 19 Jun 2017 18:50:22 +0000 (20:50 +0200)]
ocsptool: introduced --verify-allow-broken option
This allows verification to succeed even when broken algorithms are
involved.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 19 Jun 2017 18:47:10 +0000 (20:47 +0200)]
ocsptool: the --verify-response can be combined with --load-chain
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 19 Jun 2017 18:27:24 +0000 (20:27 +0200)]
gnutls_certificate_verification_status_print: mention OCSP in error messages
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 12:36:43 +0000 (14:36 +0200)]
ocsptool: added --load-chain option
This option allows to directly verify all the members of a certificate
chain.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 19 Jun 2017 06:20:47 +0000 (08:20 +0200)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sun, 18 Jun 2017 15:35:06 +0000 (17:35 +0200)]
tests: enabled X25519 interop tests with openssl 1.1.0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 18 Jun 2017 12:35:57 +0000 (14:35 +0200)]
NORMAL priority: no longer enable the smaller curves by default
They are not widely enabled by web servers, and they provide no
advantage over X25519.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 18 Jun 2017 12:35:33 +0000 (14:35 +0200)]
NORMAL priority: enable X25519 curve
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 17 Jun 2017 12:22:02 +0000 (14:22 +0200)]
pkcs11: cleanups in pkcs11_login()
Use pkcs11_rv_to_err() to return the right error code map after
PKCS#11 calls; separate checks for already log in status for SO and
user login.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 17 Jun 2017 12:07:50 +0000 (14:07 +0200)]
tests: pkcs11-mock: reset state when requesting reauth
That is, for the MOCK_FLAG_SAFENET_ALWAYS_AUTH flag we ensure that
GetSessionInfo() will return the right state when authentication
is required for the first time.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 20:04:49 +0000 (22:04 +0200)]
pkcs11: improved handling of HSMs without CKU_CONTEXT_SPECIFIC support
That is, when the HSM returns CKR_USER_NOT_LOGGED_IN, switch
to CKU_USER, instead of relying to a fallback within pkcs11_login().
That simplifies login logic.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 28 May 2017 09:07:50 +0000 (11:07 +0200)]
tests: added unit test for safenet protectserver HSM's PKCS#11 support
That is, detect whether the absence of C_Login will fallback to CKU_USER
after CKU_CONTEXT_SPECIFIC is tried.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 29 May 2017 09:26:19 +0000 (11:26 +0200)]
pkcs11: simplified pkcs11_login()
By cleanups, as well as including the reauth flag in the flags option.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 29 May 2017 09:11:24 +0000 (11:11 +0200)]
pkcs11: the GNUTLS_PKCS11_OBJ_FLAG_LOGIN will force a login
That is, even in tokens which do not have a CKF_LOGIN_REQUIRED flag
a login will be forced. This allows operation on the safenet HSMs
which do not set that flag.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 27 May 2017 05:24:36 +0000 (07:24 +0200)]
Handle specially safenet HSMs which cannot handle CKU_CONTEXT_SPECIFIC
These HSMs do not support CKA_ALWAYS_AUTHENTICATE, nor understand CKU_CONTEXT_SPECIFIC,
but rather return CKR_USER_NOT_LOGGED_IN on the first private key operation.
Try to discover that state by calling C_Login when CKR_USER_NOT_LOGGED_IN
is seen, and retrying with CKU_USER after CKU_CONTEXT_SPECIFIC login fails.
See discussion in https://github.com/OpenSC/libp11/issues/160
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 10:06:36 +0000 (12:06 +0200)]
Added documentation to legacy openpgp functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 08:58:23 +0000 (10:58 +0200)]
Removed unnecessary certificate type functionality
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 08:23:19 +0000 (10:23 +0200)]
NEWS: doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 08:21:52 +0000 (10:21 +0200)]
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 08:21:10 +0000 (10:21 +0200)]
doc: removed references to openpgp
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 08:14:58 +0000 (10:14 +0200)]
po: removed openpgp/output.c
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 07:55:44 +0000 (09:55 +0200)]
guile: removed openpgp related tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 07:30:41 +0000 (09:30 +0200)]
fuzz: removed the openpgp certificate fuzzer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 07:03:05 +0000 (09:03 +0200)]
tools: removed options for openpgp support
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 06:50:32 +0000 (08:50 +0200)]
Removed support for openpgp certificates and keys
Resolves #178
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 16 Jun 2017 06:38:42 +0000 (08:38 +0200)]
tests: removed openpgp related tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 7 Jun 2017 09:58:25 +0000 (11:58 +0200)]
tests: added reproducer for assertion trigger
This relates to handshakes with support for RSA-PSS.
Found with oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2132
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Daiki Ueno [Thu, 8 Jun 2017 13:42:30 +0000 (15:42 +0200)]
nettle: ported fix for assertion failure in pss_verify_mgf1
Backport the upstream fix from:
https://git.lysator.liu.se/nettle/nettle/commit/
b1252fedf6ee1dbb8468d1d3f177711a16e83e52
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 15:33:21 +0000 (17:33 +0200)]
.gitlab-ci.yml: keep logs of tests in abi build
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Thu, 15 Jun 2017 11:41:36 +0000 (13:41 +0200)]
doc: simplified the default client example
Removed optional paths.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 15 Jun 2017 11:20:51 +0000 (13:20 +0200)]
tests: added reproducer for OCSP response found test cases
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 15 Jun 2017 11:14:23 +0000 (13:14 +0200)]
fuzz: documented location for OCSP-related reproducers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 15 Jun 2017 10:43:48 +0000 (12:43 +0200)]
ocsp: added sanity check in returned length
This addresses:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1492
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 15 Jun 2017 08:37:53 +0000 (10:37 +0200)]
doc: added/modernized text on AEAD ciphers [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 15 Jun 2017 07:09:20 +0000 (09:09 +0200)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 15 Jun 2017 07:06:49 +0000 (09:06 +0200)]
tests: improved duplicate extension test
Instead of sending two duplicate extensions of which one is invalid,
send two valid ones instead. That way, we avoid the possibility of false
positives due to the validation code of the extension contents.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 14 Jun 2017 12:15:08 +0000 (14:15 +0200)]
tests: verify that duplicate extensions are rejected
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 14 Jun 2017 11:09:44 +0000 (13:09 +0200)]
TLS extensions: added duplicate extension check on server side
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 14 Jun 2017 09:15:54 +0000 (11:15 +0200)]
gnutls_init: better naming for internal function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 13 Jun 2017 06:08:56 +0000 (08:08 +0200)]
tests: added unit test for overriding TLS extensions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 14 Jun 2017 09:11:34 +0000 (11:11 +0200)]
TLS extensions: mark each extension which cannot be overriden
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 14 Jun 2017 09:02:49 +0000 (11:02 +0200)]
TLS extensions: combined the extension data and resumed data structures
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 12 Jun 2017 15:31:19 +0000 (17:31 +0200)]
removed type extension_priv_data_t
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 13 Jun 2017 06:02:04 +0000 (08:02 +0200)]
gnutls_int.h: groupped extension structures together
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 12 Jun 2017 12:19:23 +0000 (14:19 +0200)]
TLS extensions: several simplifications
This allows extensions set by the application to override some
of the internal ones.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 14 Jun 2017 13:53:13 +0000 (15:53 +0200)]
.gitlab-ci.yml: FreeBSD system is no longer available; disabling for CI [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 12 Jun 2017 08:26:13 +0000 (10:26 +0200)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 9 Jun 2017 16:53:48 +0000 (18:53 +0200)]
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 9 Jun 2017 14:37:48 +0000 (16:37 +0200)]
doc: added reference to privkey export functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 9 Jun 2017 16:29:18 +0000 (18:29 +0200)]
tests: added basic unit tests for the export_*_raw2() functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 9 Jun 2017 16:17:34 +0000 (18:17 +0200)]
corrected typo in x962 functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 9 Jun 2017 14:21:31 +0000 (16:21 +0200)]
pkcs11: do not set leading zeros on integers
PKCS#11 defines integers as unsigned having most significant byte
first, e.g., 32768 = 0x80 0x00. This is interpreted literraly by
some HSMs which do not accept an integer with a leading zero.
Resolves: #215
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 9 Jun 2017 14:20:05 +0000 (16:20 +0200)]
Introduced functions to export integers with no leading zero
That is introduced the flag GNUTLS_EXPORT_FLAG_NO_LZ and:
* gnutls_pubkey_export_rsa_raw2
* gnutls_pubkey_export_dsa_raw2
* gnutls_pubkey_export_ecc_raw2
* gnutls_privkey_export_rsa_raw2
* gnutls_privkey_export_dsa_raw2
* gnutls_privkey_export_ecc_raw2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 13:03:17 +0000 (15:03 +0200)]
nettle: use older GMP macros for mpz_mod_2exp and mpz_div_2exp
These ensure that compilation will succeed even when building with gmp-mini.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 11:15:00 +0000 (13:15 +0200)]
_gnutls_ucs2_to_utf8: use void* as pointer type to avoid compiler assumptions on alignment [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 11:06:19 +0000 (13:06 +0200)]
ciphersuites: removed unused function
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 11:00:25 +0000 (13:00 +0200)]
nettle/cipher: document that ctx_ptr is 16-byte aligned, and use void* to avoid compiler assumptions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 10:53:44 +0000 (12:53 +0200)]
certtool: corrected typo in strcmp() use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 09:15:02 +0000 (11:15 +0200)]
_gnutls_x509_privkey_reinit: ensure fields will not be re-used
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Thu, 8 Jun 2017 07:25:32 +0000 (09:25 +0200)]
certtool: improved error message when public key cannot be figured [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 14:05:37 +0000 (16:05 +0200)]
updated auto-generated files for new signing API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 14:00:41 +0000 (16:00 +0200)]
handshake: simplify handshake by using the new signing API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 11:38:05 +0000 (13:38 +0200)]
tests: introduced unit tests of the new signing API
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 30 May 2017 13:39:52 +0000 (15:39 +0200)]
abstract API: introduced new signing functions
That is, the gnutls_privkey_sign_data2() and gnutls_privkey_sign_hash2().
The new functions perform signing with input the signature algorithm instead
of the hash algorithm; that allows to use algorithms where the hash algorithm
is not used, or the public key algorithm may be different than the key's.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 7 Jun 2017 09:18:07 +0000 (11:18 +0200)]
pkix: removed unused definition
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 14:04:53 +0000 (16:04 +0200)]
gnutls_privkey_st: removed unused element
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 08:34:33 +0000 (10:34 +0200)]
gnutls_session_get_desc: improved ciphersuite description
That is, separated the key exchange from the signature algorithm
used by the server, and list them in different fields.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 2 Jun 2017 09:16:45 +0000 (11:16 +0200)]
tests: key-import-export: use cert-common.h
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Fri, 2 Jun 2017 15:04:45 +0000 (17:04 +0200)]
tests: simplified CPPFLAGS of tests using internal gnutls funcs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 10:54:24 +0000 (12:54 +0200)]
tests: key-exchange: added error checking in gnutls_certificate_set_x509_key_mem
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 08:58:33 +0000 (10:58 +0200)]
_gnutls_check_key_cert_match: account for RSA and RSA-PSS mismatches
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 6 Jun 2017 07:49:09 +0000 (09:49 +0200)]
certtool: fix DER export with --p7-info
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 5 Jun 2017 11:21:38 +0000 (13:21 +0200)]
updated auto-generated files
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 5 Jun 2017 08:01:07 +0000 (10:01 +0200)]
doc update
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 5 Jun 2017 07:59:49 +0000 (09:59 +0200)]
psktool: minor documentation updates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 5 Jun 2017 07:52:53 +0000 (09:52 +0200)]
tests: added basic functionality check for psktool
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>