Nikos Mavrogiannopoulos [Mon, 12 Jan 2015 09:33:21 +0000 (10:33 +0100)]
tests: key-import-export: enhanced to test gnutls_pubkey_*_ecc_x962
Nikos Mavrogiannopoulos [Mon, 12 Jan 2015 09:32:13 +0000 (10:32 +0100)]
gnutls_pubkey_t: allow the import of another parameter set without a leak
Nikos Mavrogiannopoulos [Mon, 12 Jan 2015 09:19:47 +0000 (10:19 +0100)]
removed ABI-compatibility functions
Nikos Mavrogiannopoulos [Fri, 9 Jan 2015 12:59:34 +0000 (13:59 +0100)]
doc update
Nikos Mavrogiannopoulos [Sun, 11 Jan 2015 21:41:01 +0000 (22:41 +0100)]
testpkcs11: modified to support both softhsmv1 and v2
Nikos Mavrogiannopoulos [Sun, 11 Jan 2015 21:15:10 +0000 (22:15 +0100)]
pkcs11: when importing a public key, import it's data as well
Nikos Mavrogiannopoulos [Sun, 11 Jan 2015 17:00:38 +0000 (18:00 +0100)]
tests: enhanced key-import-export to check output of pubkeys
Nikos Mavrogiannopoulos [Sun, 11 Jan 2015 15:25:01 +0000 (16:25 +0100)]
tests: eliminated leaks
Nikos Mavrogiannopoulos [Sun, 11 Jan 2015 15:16:49 +0000 (16:16 +0100)]
doc update
Nikos Mavrogiannopoulos [Sun, 11 Jan 2015 15:06:26 +0000 (16:06 +0100)]
tests: added checks for private key import/export functions
Nikos Mavrogiannopoulos [Sat, 10 Jan 2015 20:56:21 +0000 (21:56 +0100)]
doc update
Nikos Mavrogiannopoulos [Sat, 10 Jan 2015 11:13:29 +0000 (12:13 +0100)]
tests: Added test case for openpgp keys loaded by callback
Nikos Mavrogiannopoulos [Sat, 10 Jan 2015 11:12:25 +0000 (12:12 +0100)]
When setting up TLS with cert-type OpenPGP from a client,
the server verifies if it supports the extension’s contents
in _gnutls_session_cert_type_supported(). This function
checks for cred->get_cert_callback but not cred->get_cert_callback2.
As a result, servers setup for OpenPGP certificate credential
callback with gnutls_certificate_set_retrieve_function2() are
unable to use the OpenPGP certificate type.
The solution is to consider cred->get_cert_callback2 alongside
cred->get_cert_callback in _gnutls_session_cert_type_supported().
Patch by Rick van Rein.
Nikos Mavrogiannopoulos [Sat, 10 Jan 2015 10:56:48 +0000 (11:56 +0100)]
gnutls_privkey_import_openpgp_raw: do not release the cached value
Ludovic Courtès [Thu, 8 Jan 2015 09:18:07 +0000 (10:18 +0100)]
guile: Call 'load-extension' both during expansion and at run time.
Fixes <https://bugzilla.redhat.com/show_bug.cgi?id=1177847>.
* guile/modules/gnutls.in: Wrap '%libdir' definition and
'load-extension' call in 'eval-when'.
Nikos Mavrogiannopoulos [Thu, 8 Jan 2015 08:35:59 +0000 (09:35 +0100)]
When receiving a TLS record with multiple handshake packets, parse them in one go
That resolves:
https://savannah.gnu.org/support/?108712
Nikos Mavrogiannopoulos [Thu, 8 Jan 2015 08:25:15 +0000 (09:25 +0100)]
tests: updated mini-dtls-record-asym
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 20:36:33 +0000 (21:36 +0100)]
tests: better documentation of mini-dtls-record-asym purpose
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 20:27:14 +0000 (21:27 +0100)]
tests: moved udp_socketpair to utils
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 20:22:02 +0000 (21:22 +0100)]
tests: corrected asymmetric MTU test for DTLS and added caching
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 16:32:44 +0000 (17:32 +0100)]
Added test case for DTLS handshake packet reconstruction when it exceeds MTU
https://savannah.gnu.org/support/?108712
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 16:18:57 +0000 (17:18 +0100)]
simplified _gnutls_dgram_read()
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 12:39:19 +0000 (13:39 +0100)]
danetool: only compile when dane is enabled
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 09:17:14 +0000 (10:17 +0100)]
in DTLS don't combine multiple packets which exceed MTU
Resolves: https://savannah.gnu.org/support/?108715
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 09:01:47 +0000 (10:01 +0100)]
Added more precise check of push functions availability
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 08:59:33 +0000 (09:59 +0100)]
Revert "in DTLS don't use writev() when multiple packets which exceed MTU are queued"
This reverts commit
43082a67c7514d65301d157fb567a133138a85ab.
Nikos Mavrogiannopoulos [Tue, 6 Jan 2015 08:59:25 +0000 (09:59 +0100)]
Revert "Give precedence to vector push function"
This reverts commit
cb4ea413569803cbbf291abb27d30d14bfa971c5.
Nikos Mavrogiannopoulos [Mon, 5 Jan 2015 14:08:28 +0000 (15:08 +0100)]
Give precedence to vector push function
Nikos Mavrogiannopoulos [Mon, 5 Jan 2015 14:08:28 +0000 (15:08 +0100)]
in DTLS don't use writev() when multiple packets which exceed MTU are queued
That change requires the system_write() to be registered unconditionally,
even when writev() is available.
Resolves: https://savannah.gnu.org/support/?108715
Nikos Mavrogiannopoulos [Mon, 5 Jan 2015 15:28:58 +0000 (16:28 +0100)]
tests: added check to ensure that DTLS handshake packets will not exceed MTU
Nikos Mavrogiannopoulos [Mon, 5 Jan 2015 15:21:57 +0000 (16:21 +0100)]
certtool: warn when setting a certificate's expiration longer than the CA's expiration
Nikos Mavrogiannopoulos [Mon, 5 Jan 2015 14:01:22 +0000 (15:01 +0100)]
testpkcs11: detect softhsm2
Nikos Mavrogiannopoulos [Mon, 5 Jan 2015 13:40:51 +0000 (14:40 +0100)]
tests: account for disabling of ARCFOUR where needed
Nikos Mavrogiannopoulos [Sun, 4 Jan 2015 22:19:33 +0000 (23:19 +0100)]
certtool: modified check for READ_NUMERIC
Nikos Mavrogiannopoulos [Sun, 4 Jan 2015 21:46:16 +0000 (22:46 +0100)]
certtool: use 64-bit type for CRL serial number
Nikos Mavrogiannopoulos [Sun, 4 Jan 2015 21:43:00 +0000 (22:43 +0100)]
certtool: check for overflows when reading serial numbers
Nikos Mavrogiannopoulos [Sun, 4 Jan 2015 19:44:21 +0000 (20:44 +0100)]
certtool: use int64_t as type for integers read
Nikos Mavrogiannopoulos [Sun, 4 Jan 2015 19:30:39 +0000 (20:30 +0100)]
gnutls-cli-debug: more precise handling of SMTP protocol
Patch by Andreas Metzler.
Nikos Mavrogiannopoulos [Sun, 4 Jan 2015 10:11:51 +0000 (11:11 +0100)]
updated gnulib
Nikos Mavrogiannopoulos [Fri, 2 Jan 2015 10:49:55 +0000 (12:49 +0200)]
gnutls-cli-debug: corrected the skip of ignored checks
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 20:50:17 +0000 (22:50 +0200)]
use explicit casts in the dummy ip conversion functions
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 20:41:24 +0000 (22:41 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 20:40:55 +0000 (22:40 +0200)]
ARCFOUR-128 is disabled by default
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 20:38:51 +0000 (22:38 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 14:53:57 +0000 (16:53 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 10:48:06 +0000 (12:48 +0200)]
system-keys-win: use LoadLibraryA to load ncrypt.dll
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 10:23:04 +0000 (12:23 +0200)]
Updated abi-compliance-checker for 3.4 API
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 10:17:51 +0000 (12:17 +0200)]
updated export symbols list (due to ABI breakage)
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 10:15:16 +0000 (12:15 +0200)]
doc: updated auto-generated files
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 10:09:41 +0000 (12:09 +0200)]
generate manpages for urls.h and system-keys.h
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 10:07:37 +0000 (12:07 +0200)]
tests: added check for gnutls_x509_trust_list_get_issuer_by_dn()
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 10:00:11 +0000 (12:00 +0200)]
updated libgnutls.map for new functions
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 09:49:40 +0000 (11:49 +0200)]
doc: updated auto-generated files and added urls.h
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 09:17:55 +0000 (11:17 +0200)]
tests: added checks for the new --key-id and --fingerprint certtool options
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 09:11:40 +0000 (11:11 +0200)]
certtool: Added --fingerprint and --key-id options
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 08:00:11 +0000 (10:00 +0200)]
certtool: --pubkey-info will load a public key from stdin
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 07:40:03 +0000 (09:40 +0200)]
include netinet/in.h if present to access ipv6 related structures
Based on patch by Rumko.
https://savannah.gnu.org/support/?108713
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 07:34:24 +0000 (09:34 +0200)]
VERS-ALL adds all protocols if used with '+'
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 07:14:15 +0000 (09:14 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 07:04:27 +0000 (09:04 +0200)]
priority strings VERS-TLS-ALL and VERS-DTLS-ALL are restricted to the corresponding protocols
That introduces VERS-ALL which behaves as VERS-TLS-ALL previously.
Nikos Mavrogiannopoulos [Wed, 31 Dec 2014 06:49:13 +0000 (08:49 +0200)]
gnutls.h: made DTLS protocol version numbering distinct
Matthias-Christian Ott [Tue, 30 Dec 2014 09:58:43 +0000 (11:58 +0200)]
Don't call _gnutls_cipher_encrypt2 with textlen = 0 in _gnutls_auth_cipher_encrypt2_tag
If the plaintext is shorter than the block size of the used cipher,
_gnutls_auth_cipher_encrypt2_tag calls _gnutls_cipher_encrypt2 with
textlen = 0. By definition _gnutls_cipher_encrypt2 does nothing in this
case and thus does not need to be called.
Matthias-Christian Ott [Tue, 30 Dec 2014 09:57:36 +0000 (11:57 +0200)]
Handle zero length plaintext for VIA PadLock functions
If the plaintext is shorter than the block size of the used cipher,
_gnutls_auth_cipher_encrypt2_tag calls _gnutls_cipher_encrypt2 with
textlen = 0. padlock_ecb_encrypt and padlock_cbc_encrypt assume that the
plaintext length (last parameter) is greater than zero and segfault
otherwise. The assembler code for both functions is automatically
generated and imported from OpenSSL, so to ease maintenance the length
should be validated in the functions that call padlock_ecb_encrypt or
padlock_cbc_encrypt.
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 11:29:57 +0000 (13:29 +0200)]
use backslashes in windows path
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 09:14:47 +0000 (11:14 +0200)]
tests: enhanced openpgp-keyring test
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 09:13:10 +0000 (11:13 +0200)]
openpgp: properly print names in oneline output as well
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 09:11:18 +0000 (11:11 +0200)]
updates in openpgp DSA key printing
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 08:59:23 +0000 (10:59 +0200)]
properly print openpgp names
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 08:47:37 +0000 (10:47 +0200)]
opencdk: print all warnings on compilation
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 08:47:20 +0000 (10:47 +0200)]
opencdk: eliminated warning from armor.c
Nikos Mavrogiannopoulos [Sun, 28 Dec 2014 08:45:30 +0000 (10:45 +0200)]
removed cache support for opencdk's keydb
It's implementation looked buggy.
Nikos Mavrogiannopoulos [Sat, 27 Dec 2014 20:41:53 +0000 (22:41 +0200)]
updated guile comments
Nikos Mavrogiannopoulos [Wed, 24 Dec 2014 22:16:17 +0000 (00:16 +0200)]
tools: use OCSP functions only when OCSP is enabled
Nikos Mavrogiannopoulos [Wed, 24 Dec 2014 17:08:54 +0000 (19:08 +0200)]
Corrected encoding and decoding of ANSI X9.62
That affects gnutls_pubkey_export_ecc_x962() and
gnutls_pubkey_import_ecc_x962().
Nikos Mavrogiannopoulos [Wed, 24 Dec 2014 16:34:04 +0000 (18:34 +0200)]
tools: document the available curves
Nikos Mavrogiannopoulos [Wed, 24 Dec 2014 06:54:19 +0000 (08:54 +0200)]
PKCS #11 tests: ported to softhsmv2
The C programs still rely on softhsmv1 since there
are issues with softhsmv2 and CKA_TRUSTED.
https://bugzilla.redhat.com/show_bug.cgi?id=1177086
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 16:33:22 +0000 (18:33 +0200)]
updated documentation of gnutls_memcmp()
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 11:41:35 +0000 (13:41 +0200)]
use everywhere the new name of gnutls_x509_crt_import_pkcs11_url
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 11:29:13 +0000 (13:29 +0200)]
better cleanup in gnutls_pkcs11_privkey_import_url and allow reuse
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 10:54:23 +0000 (12:54 +0200)]
completely separated the two gnulibs to avoid conflicts
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 10:40:17 +0000 (12:40 +0200)]
updated gnulib
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 10:28:03 +0000 (12:28 +0200)]
dropped the sanitize URL approach
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 10:24:35 +0000 (12:24 +0200)]
Instead of sanitizing URLs, use hints to support incomplete PKCS#11 URIs
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 10:04:45 +0000 (12:04 +0200)]
gnutls_x509_crt_import_url replaces gnutls_x509_crt_import_pkcs11_url
Nikos Mavrogiannopoulos [Tue, 23 Dec 2014 06:52:24 +0000 (08:52 +0200)]
use p11_kit_uri_get_pin_source instead of p11_kit_uri_get_pinfile
Nikos Mavrogiannopoulos [Mon, 22 Dec 2014 10:16:05 +0000 (12:16 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 22 Dec 2014 09:59:41 +0000 (11:59 +0200)]
ex-pkcs11-list.c: updated for new API
Nikos Mavrogiannopoulos [Mon, 22 Dec 2014 09:43:49 +0000 (11:43 +0200)]
combined gnutls_pkcs11_obj_attr_t with gnutls_pkcs11_obj_flags
That was done in an API-backwards compatible way. That
introduces gnutls_pkcs11_obj_list_import_url3() and
gnutls_pkcs11_obj_list_import_url4().
Nikos Mavrogiannopoulos [Sun, 21 Dec 2014 18:33:22 +0000 (20:33 +0200)]
first attempt to unify obj_attrs with obj_flags
Nikos Mavrogiannopoulos [Sun, 21 Dec 2014 17:33:53 +0000 (19:33 +0200)]
tests: pkcs11-is-known checks whether the import of PKCS #11 objects as trusted certs works
Nikos Mavrogiannopoulos [Sun, 21 Dec 2014 11:16:17 +0000 (13:16 +0200)]
Added softhsm.h to share code in softhsm detection
Nikos Mavrogiannopoulos [Sun, 21 Dec 2014 11:00:53 +0000 (13:00 +0200)]
Directly import PKCS #11 object URLs as trusted certificates
That is, don't treat them as trusted modules, because they aren't
a token URL, but rather a direct reference to specific objects.
Nikos Mavrogiannopoulos [Sat, 20 Dec 2014 18:37:35 +0000 (20:37 +0200)]
PSK: added sanity check on PSK key size set
Nikos Mavrogiannopoulos [Fri, 19 Dec 2014 10:56:11 +0000 (12:56 +0200)]
gnutls-cli-debug: removed ARCFOUR-40 from the ciphers to use
It is no longer supported.
Nikos Mavrogiannopoulos [Fri, 19 Dec 2014 10:07:17 +0000 (12:07 +0200)]
_gnutls_buffer_append_data returns zero on success
Nikos Mavrogiannopoulos [Fri, 19 Dec 2014 08:40:58 +0000 (10:40 +0200)]
corrected documentation for the cork/uncork functions
Reported by Jaak Ristioja.
Nikos Mavrogiannopoulos [Fri, 19 Dec 2014 08:35:10 +0000 (10:35 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 19 Dec 2014 08:25:40 +0000 (10:25 +0200)]
Added more precise version check in _gnutls_version_lowest
Nikos Mavrogiannopoulos [Fri, 19 Dec 2014 06:56:44 +0000 (08:56 +0200)]
corrected documentation of gnutls_cork()
Nikos Mavrogiannopoulos [Wed, 17 Dec 2014 12:50:52 +0000 (14:50 +0200)]
Added 32-bit overflow protection in _gnutls_buffer_append_data()