]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 11:14:57 +0000 (13:14 +0200)]
corrected typo
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 10:10:56 +0000 (12:10 +0200)]
README.md: corrected link to travius build
Nikos Mavrogiannopoulos [Thu, 20 Oct 2016 13:58:38 +0000 (15:58 +0200)]
.travis.yml: added support for compiling in macosx
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 09:02:30 +0000 (11:02 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 21 Oct 2016 09:01:43 +0000 (11:01 +0200)]
tests: added checks for the new GNUTLS_NO_TICKETS flag
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.
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.
Jakub Jelen [Wed, 19 Oct 2016 11:41:55 +0000 (13:41 +0200)]
Expose CKA_PUBLIC_EXPONENT and CKA_MODULUS for private keys too
Jakub Jelen [Wed, 19 Oct 2016 07:17:52 +0000 (09:17 +0200)]
tests/pkcs11: Return also CKA_CLASS
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
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 13:42:52 +0000 (15:42 +0200)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 11:45:34 +0000 (13:45 +0200)]
updated auto-generated files
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 07:24:02 +0000 (09:24 +0200)]
doc update
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.
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 08:01:49 +0000 (10:01 +0200)]
certtool: introduce key purpose checks in p7 direct verification
Nikos Mavrogiannopoulos [Tue, 18 Oct 2016 07:22:59 +0000 (09:22 +0200)]
x509: introduced gnutls_x509_crt_check_key_purpose()
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.
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.
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 10:00:41 +0000 (12:00 +0200)]
gnutls-serv: use the included known DH parameters by default
Nikos Mavrogiannopoulos [Mon, 17 Oct 2016 09:54:51 +0000 (11:54 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 10:02:31 +0000 (12:02 +0200)]
certtool: manpage update
Nikos Mavrogiannopoulos [Wed, 12 Oct 2016 06:34:13 +0000 (08:34 +0200)]
getfuncs-map.pl: ignore the ffdhe exported parameters
That is ignore the new variables exported which are not functions, and
thus cannot be detected by getfuncs-map.pl.
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 17:26:44 +0000 (19:26 +0200)]
updated auto-generated files
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 18:10:37 +0000 (20:10 +0200)]
tests: crl-test: use a unique temp file
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 18:01:27 +0000 (20:01 +0200)]
tests: added sanity check for included primes
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 17:36:26 +0000 (19:36 +0200)]
doc: discuss the set_known_dh_params and use it in the examples
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 17:25:52 +0000 (19:25 +0200)]
tests: check gnutls_psk_set_server_known_dh_params
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 17:22:25 +0000 (19:22 +0200)]
tests: check gnutls_anon_set_server_known_dh_params
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 17:12:16 +0000 (19:12 +0200)]
tests: check gnutls_certificate_set_known_dh_params
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 14:42:28 +0000 (16:42 +0200)]
DH: introduced gnutls_*_set_known_dh_params()
That is, the functions gnutls_certificate_set_known_dh_params(),
gnutls_anon_set_server_known_dh_params(),
gnutls_psk_set_server_known_dh_params().
These functions allow to statically set the DH parameters, based
on the RFC7919 FFDHE parameters. This can simplify server configuration
by allowing DH without loading parameters from file.
Relates #37
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 14:18:22 +0000 (16:18 +0200)]
certtool: --get-dh-params will output the FFDHE primes instead of the SRP primes
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 14:05:57 +0000 (16:05 +0200)]
DH: export the FFDHE Diffie-Hellman values
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 14:13:29 +0000 (16:13 +0200)]
.gitlab-ci.yml: use fedora's mingw-cmocka packages
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 14:12:44 +0000 (16:12 +0200)]
more files to ignore
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 13:04:41 +0000 (15:04 +0200)]
tests: added check for PKCS#7 catalog file parsing and data extracting
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 13:46:05 +0000 (15:46 +0200)]
tests: updated pkcs7 text outputs to account for certtool update
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 12:55:57 +0000 (14:55 +0200)]
certtool: --p7-info will include the PKCS#7 encoded data in PEM format
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 12:50:25 +0000 (14:50 +0200)]
tests: replaced large test2.cat with a smaller file
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 11:13:26 +0000 (13:13 +0200)]
certtool: improve text on missing options for cert generation
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 10:57:31 +0000 (12:57 +0200)]
Revert "certtool: improve text on missing options for cert generation"
This reverts commit
7daed1fd0602bce7495d252f1a9b638fc41e38d3 .
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 08:22:07 +0000 (10:22 +0200)]
handshake: set a maximum number of warning messages that can be received per handshake
That is to avoid DoS due to the assymetry of cost of sending an alert vs the cost
of processing.
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 08:08:35 +0000 (10:08 +0200)]
record: disallow parsing of alert messages prior to session start
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 08:07:58 +0000 (10:07 +0200)]
tests: added check to verify that the server will bail out after receiving only alerts
Nikos Mavrogiannopoulos [Fri, 14 Oct 2016 07:59:22 +0000 (09:59 +0200)]
tests: added check to verify that the server will bail out after many alerts
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 15:01:16 +0000 (17:01 +0200)]
certtool: improve text on missing options for cert generation
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 14:55:00 +0000 (16:55 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 14:51:19 +0000 (16:51 +0200)]
tools: removed redudant messages on PIN re-use
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 14:48:52 +0000 (16:48 +0200)]
p11tool: avoid asking the security officer PIN twice on initialization
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 14:41:04 +0000 (16:41 +0200)]
p11tool: improved messages on token initialization
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 14:37:45 +0000 (16:37 +0200)]
p11tool: corrected check of PIN existance in token initialization
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 11:10:52 +0000 (13:10 +0200)]
doc: set a default handshake timeout on example server
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 11:09:35 +0000 (13:09 +0200)]
serv: set a timeout value in handshake
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 06:56:45 +0000 (08:56 +0200)]
tests: added check for Encrypt-then-MAC under DTLS
Nikos Mavrogiannopoulos [Thu, 13 Oct 2016 06:54:52 +0000 (08:54 +0200)]
tests: cleanups in tls-etm.c
Nikos Mavrogiannopoulos [Wed, 12 Oct 2016 11:36:01 +0000 (13:36 +0200)]
gnutls_pkcs7_get_embedded_data: added GNUTLS_PKCS7_EDATA_GET_RAW flag
This flag allows the export of the stored embedded data with any wrapping
encoding included. This in particular, it allows to read the data from the
microsoft catalog PKCS#7 structures, which store as embedded data elements
of a SEQUENCE, but only authenticate the inner parts without the bytes
forming the SEQUENCE header.
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 19:33:24 +0000 (21:33 +0200)]
configure: automatically disable non-suiteb curves
That is, if the installed nettle doesn't provide the
nettle_secp_192r1 symbol.
Nikos Mavrogiannopoulos [Sun, 9 Oct 2016 18:41:18 +0000 (20:41 +0200)]
doc update
Colin Walters [Tue, 11 Oct 2016 15:28:39 +0000 (11:28 -0400)]
priorities: Do read crypto policy files with mtime of zero
In a default Fedora Atomic Host installation,
`/etc/crypto-policies/backends/gnutls.config` is a symlink to the
default in `/usr/share/`. On an OSTree-managed system, files in
`/usr` have an mtime of zero (to help deduplication).
The simple fix here is to still try to read the first time, even if
the file has an mtime of zero.
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 12:11:27 +0000 (14:11 +0200)]
doc update
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 11:55:56 +0000 (13:55 +0200)]
certtool: corrected use of gnutls_pkcs7_get_embedded_data()
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 11:06:48 +0000 (13:06 +0200)]
pkix.asn: simplified ASN.1 description by eliminating pkcs-7-ContentType
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 11:03:45 +0000 (13:03 +0200)]
updated auto-generated files
Nikos Mavrogiannopoulos [Tue, 11 Oct 2016 09:30:28 +0000 (11:30 +0200)]
certtool: print the enacapsulated content OID on verification
Nikos Mavrogiannopoulos [Fri, 7 Oct 2016 13:25:31 +0000 (15:25 +0200)]
tests: added checks for the decoding of various PKCS#7 structures
Nikos Mavrogiannopoulos [Fri, 7 Oct 2016 13:19:16 +0000 (15:19 +0200)]
pkcs7: print the eContent type in output functions if it does not match the defaults
Nikos Mavrogiannopoulos [Fri, 7 Oct 2016 10:06:37 +0000 (12:06 +0200)]
pkcs7: allow unknown and legacy signature data OIDs to be imported
This allows to decode very old PKCS#7 structures where the content is not
an octet string. In addition, it introduces gnutls_pkcs7_get_embedded_data_oid()
to obtain the OID of the signature data.
Nikos Mavrogiannopoulos [Fri, 7 Oct 2016 17:07:41 +0000 (19:07 +0200)]
certtool: --p7-info can be combined with --p7-show-data to display embedded data
Nikos Mavrogiannopoulos [Mon, 10 Oct 2016 07:48:05 +0000 (09:48 +0200)]
lib: link with LTLIBDL instead of LIBDL
It fixes compilation issues on some systems.
Nikos Mavrogiannopoulos [Sun, 9 Oct 2016 18:01:06 +0000 (20:01 +0200)]
released 3.5.5
Nikos Mavrogiannopoulos [Sun, 9 Oct 2016 17:27:39 +0000 (19:27 +0200)]
doc update
Nikos Mavrogiannopoulos [Sun, 9 Oct 2016 17:04:30 +0000 (19:04 +0200)]
doc: mention gnutls_session_ext_register and its supplemental data equivalent
Nikos Mavrogiannopoulos [Sun, 9 Oct 2016 16:56:52 +0000 (18:56 +0200)]
bumped version
Nikos Mavrogiannopoulos [Sun, 9 Oct 2016 12:21:09 +0000 (14:21 +0200)]
TLS extensions: only cache the extension IDs from exts that the server supports
That avoids imposing any artificial limits on the number of extensions that
a server can handle.
Resolves #136
Nikos Mavrogiannopoulos [Sun, 9 Oct 2016 12:05:07 +0000 (14:05 +0200)]
tests: check the registration of multiple extensions
Nikos Mavrogiannopoulos [Sat, 8 Oct 2016 05:24:02 +0000 (07:24 +0200)]
doc: added gnutls_datum_t and giovec_t to indexes
Resolves #137
Nikos Mavrogiannopoulos [Fri, 7 Oct 2016 13:24:25 +0000 (15:24 +0200)]
pkcs7: removed any limits in hex encoding of attributes
Nikos Mavrogiannopoulos [Fri, 7 Oct 2016 14:10:19 +0000 (16:10 +0200)]
certtool: lift any limits in print_raw()
Nikos Mavrogiannopoulos [Fri, 7 Oct 2016 12:17:52 +0000 (14:17 +0200)]
certtool: added safety net when generating a certificate request
That is, do not allow specifying --generate-request --load-pubkey without
specifying --load-privkey. Previously if --load-pubkey would have been
used, it would have been ignored, causing confusion to the users.
Nikos Mavrogiannopoulos [Thu, 6 Oct 2016 06:50:39 +0000 (08:50 +0200)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 18:10:46 +0000 (20:10 +0200)]
Makefile.am: improved the files-update output
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 18:09:21 +0000 (20:09 +0200)]
updated auto-generated files
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 11:51:05 +0000 (13:51 +0200)]
_gnutls_utf8_to_ucs2: force NFC normalization form in windows
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 09:04:54 +0000 (11:04 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 09:41:23 +0000 (11:41 +0200)]
tests: added checks for gnutls_session_supplemental_register
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 09:33:55 +0000 (11:33 +0200)]
Added session-specific supplemental data handling
This allows a caller to add supplemental data handling which will
only be made available for a specific session.
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 08:43:29 +0000 (10:43 +0200)]
tests: added checks for gnutls_session_ext_register
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 16:53:09 +0000 (18:53 +0200)]
Added session-specific TLS extensions
This allows a caller to add extensions which will be made available
for a specific session.
Ludovic Courtès [Wed, 5 Oct 2016 12:30:33 +0000 (14:30 +0200)]
guile: Implement session record ports using the Guile 2.2 API.
This allows the Guile bindings to be built and used with
Guile >= 2.1.4, which introduced a new port API.
* guile/src/core.c (USING_GUILE_BEFORE_2_2): New macro.
(session_record_port_type) [!USING_GUILE_BEFORE_2_2]: New definition.
(read_from_session_record_port, write_to_session_record_port)
(make_session_record_port) [!USING_GUILE_BEFORE_2_2]: New functions.
Conditionalize the other same-named functions on
USING_GUILE_BEFORE_2_2.
(scm_init_gnutls_session_record_port_type): Use
'read_from_session_record_port' when !USING_GUILE_BEFORE_2_2.
Ludovic Courtès [Wed, 5 Oct 2016 12:30:32 +0000 (14:30 +0200)]
guile: Test 'set-session-transport-fd!'.
* guile/tests/session-record-port.scm: Use 'set-session-transport-fd!'
on the server side.
Ludovic Courtès [Wed, 5 Oct 2016 12:30:31 +0000 (14:30 +0200)]
guile: Guile 2.x 'uniform-vector-read!' replacement returns 0 upon EOF.
This problem was never hit in practice because our tests always got the
non-EOF case.
* guile/modules/gnutls/build/tests.scm (uniform-vector-read!) [guile-2]:
Return 0 upon EOF.
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 08:01:20 +0000 (10:01 +0200)]
win32: install the .def files in libdir instead of bindir
Suggested by Eli Zaretskii.
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 06:48:57 +0000 (08:48 +0200)]
certtool: include arpa/inet.h unconditionally
That is because we use inet_pton() which is either provided by the
OS, or by gnulib.
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 06:46:08 +0000 (08:46 +0200)]
gnutls-cli: fix compilation warning in win32
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 06:44:05 +0000 (08:44 +0200)]
Fixed the version in libgnutls-openssl.def file
Previously the version set in that file would have
been (incorrectly) equal to the version of the main library.
Nikos Mavrogiannopoulos [Wed, 5 Oct 2016 06:34:51 +0000 (08:34 +0200)]
tests: avoid using %zd for formatted output
It is not supported by windows.
Nikos Mavrogiannopoulos [Tue, 4 Oct 2016 14:20:44 +0000 (16:20 +0200)]
tests: skip tests which depend on libidn functionality if build without libidn
Nikos Mavrogiannopoulos [Tue, 4 Oct 2016 13:55:08 +0000 (15:55 +0200)]
tests: fixed compilation of pkcs11-privkey-always-auth
Nikos Mavrogiannopoulos [Tue, 4 Oct 2016 13:10:22 +0000 (15:10 +0200)]
Fix build of system/keys-win.c with older mingw
Patch by Eli Zaretskii <eliz@gnu>
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 12:48:49 +0000 (14:48 +0200)]
tests: introduced further parallelization in provable* tests
This runs independent verification steps in parallel, improving running time significantly.
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 12:40:06 +0000 (14:40 +0200)]
tests: provable-dh-default check is too slow and is only run when the complete suite is requested