]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Thu, 12 May 2016 07:24:23 +0000 (09:24 +0200)]
doc: clarify that 'hmac' in the name of functions is only for legacy reasons
Nikos Mavrogiannopoulos [Wed, 11 May 2016 11:23:33 +0000 (13:23 +0200)]
tests: introduce delay between server restarts in testsrn.sh
This is to reduce test suite random failures on CI.
Nikos Mavrogiannopoulos [Wed, 11 May 2016 07:31:28 +0000 (09:31 +0200)]
tests: CRL test will separate stderr output from stdout
This addresses CI failures due to "Merge mismatch for function" messages
from gcov being inserted into stdout output and messing the base64 encoding.
Nikos Mavrogiannopoulos [Wed, 11 May 2016 07:28:55 +0000 (09:28 +0200)]
Revert "tests: CRL test will not push stderr into output files"
This reverts commit
bf1ee75f78cd81ea8309bdfb50f63ed0ab61a23a .
Nikos Mavrogiannopoulos [Wed, 11 May 2016 07:27:32 +0000 (09:27 +0200)]
gnutls_pkcs7_print: avoid warning for signed/unsigned comparison by making everything signed
Nikos Mavrogiannopoulos [Wed, 11 May 2016 06:17:37 +0000 (08:17 +0200)]
tests: CRL test will not push stderr into output files
This addresses CI failures due to "Merge mismatch for function" messages
from gcov being inserted into output and messing the base64 encoding.
Nikos Mavrogiannopoulos [Tue, 10 May 2016 20:46:34 +0000 (22:46 +0200)]
pack_srp_auth_info: corrected check for uninitialized username
Nikos Mavrogiannopoulos [Tue, 10 May 2016 20:48:56 +0000 (22:48 +0200)]
call_get_cert_callback: removed dead code
Nikos Mavrogiannopoulos [Tue, 10 May 2016 20:11:52 +0000 (22:11 +0200)]
pkcs11: added error check in _gnutls_buffer_append_data()
Nikos Mavrogiannopoulos [Tue, 10 May 2016 20:08:23 +0000 (22:08 +0200)]
gnutls_pubkey_verify_data2: simplified return logic
Nikos Mavrogiannopoulos [Tue, 10 May 2016 20:02:54 +0000 (22:02 +0200)]
gnutls_pkcs7_print: corrected type of unsigned count variable
Nikos Mavrogiannopoulos [Tue, 10 May 2016 19:55:07 +0000 (21:55 +0200)]
_gnutls_krb5_der_to_principal: fixed invalid deinitialization on cleanup
Nikos Mavrogiannopoulos [Tue, 10 May 2016 18:57:08 +0000 (20:57 +0200)]
tests: don't run hash-large on freebsd
Nikos Mavrogiannopoulos [Tue, 10 May 2016 18:06:03 +0000 (20:06 +0200)]
tests: fix mmap usage of hash-large to correctly detect failures
Nikos Mavrogiannopoulos [Tue, 10 May 2016 13:23:11 +0000 (15:23 +0200)]
doc: updated documentation for gnutls_x509_crt_get_*_dn
Nikos Mavrogiannopoulos [Tue, 10 May 2016 13:20:09 +0000 (15:20 +0200)]
certtool: handle empty CNs on verification
That is, handle GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if returned
from gnutls_x509_crt_get_dn() on the end certificate.
Nikos Mavrogiannopoulos [Tue, 10 May 2016 13:17:18 +0000 (15:17 +0200)]
Revert "x509: allow empty DNs on parsing for subject DNs"
This reverts commit
1641ea943079765d601cf418dc2c89c1c93f0ecf .
Nikos Mavrogiannopoulos [Tue, 10 May 2016 09:40:43 +0000 (11:40 +0200)]
cert cred: add the CN to the list of known hostnames only if no dns_names
That is, follow rfc6125 and support CN as a fallback only.
Nikos Mavrogiannopoulos [Tue, 10 May 2016 09:23:02 +0000 (11:23 +0200)]
tests: enhanced set_x509*_key to verify that connections succeed with creds
That is the tests no only verify that credentials are set as expected
but also whether sessions are established with the credentials provided.
Nikos Mavrogiannopoulos [Tue, 10 May 2016 09:15:53 +0000 (11:15 +0200)]
gnutls_certificate_set_key: import the DNS names of the certificates
That is, only when no (NULL) names are provided.
Nikos Mavrogiannopoulos [Tue, 10 May 2016 09:12:33 +0000 (11:12 +0200)]
reset the global time func on init/deinit
Nikos Mavrogiannopoulos [Tue, 10 May 2016 09:05:03 +0000 (11:05 +0200)]
auth/cert: log the server name requested by client
Nikos Mavrogiannopoulos [Tue, 10 May 2016 09:00:02 +0000 (11:00 +0200)]
improved output of gnutls_assert()
Nikos Mavrogiannopoulos [Tue, 10 May 2016 08:44:57 +0000 (10:44 +0200)]
x509: allow empty DNs on parsing for subject DNs
Alon Bar-Lev [Mon, 9 May 2016 17:57:36 +0000 (20:57 +0300)]
build: tests/windows/cng-windows.c: fix implicit decleration of exit
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Nikos Mavrogiannopoulos [Tue, 10 May 2016 07:15:29 +0000 (09:15 +0200)]
.gitlab-ci.yml: enable openssl compat library in minimal build
Nikos Mavrogiannopoulos [Tue, 10 May 2016 07:12:51 +0000 (09:12 +0200)]
openssl_compat: removed unneeded headers
These headers have been renamed, but they were not necessary for
this module's compilation. Report/Patch by Andreas Metzler.
Nikos Mavrogiannopoulos [Mon, 9 May 2016 19:47:14 +0000 (21:47 +0200)]
.gitlab-ci.yml: added build for windows DLLs
This creates the windows DLLs on every tagged release.
Nikos Mavrogiannopoulos [Mon, 9 May 2016 06:03:24 +0000 (08:03 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 9 May 2016 05:52:14 +0000 (07:52 +0200)]
bumped soversion
Nikos Mavrogiannopoulos [Mon, 9 May 2016 05:51:05 +0000 (07:51 +0200)]
updated auto-generated files
Nikos Mavrogiannopoulos [Sat, 7 May 2016 11:34:34 +0000 (13:34 +0200)]
x509: use the modified flag in gnutls_x509_crt_t
That will avoid re-encoding or decoding in common operations.
Nikos Mavrogiannopoulos [Sat, 7 May 2016 11:18:20 +0000 (13:18 +0200)]
x509: added flag to indicate modification in gnutls_x509_crt_t
Nikos Mavrogiannopoulos [Fri, 6 May 2016 14:55:48 +0000 (16:55 +0200)]
gnutls_x509_crt_equals*: modified to allow operation with certificates that are not imported
This allows it operating with certificates that are generated from scratch.
Nikos Mavrogiannopoulos [Fri, 6 May 2016 14:04:31 +0000 (16:04 +0200)]
tests: added checks for certificate generation APIs
Nikos Mavrogiannopoulos [Fri, 6 May 2016 13:40:14 +0000 (15:40 +0200)]
doc: fixed documentation of gnutls_x509_crt_set_subject_alternative_name
The previous version could not be parsed by gdoc.
Hubert Kario [Fri, 6 May 2016 09:12:29 +0000 (11:12 +0200)]
gnutls-serv: sending alerts on mismatched SNI names
Extend serv utility to be able to send alerts when the name advertised
by client does not match the name expected by server.
Hubert Kario [Fri, 6 May 2016 09:05:10 +0000 (11:05 +0200)]
Add support for sending unrecognized name alerts
To better test support for server_name extension in TLS, it's
necessary to be able to differentiate between name being rejected
because it is unknown to the server and it being malformed.
Nikos Mavrogiannopoulos [Fri, 6 May 2016 09:41:12 +0000 (11:41 +0200)]
doc: TODO list references to gitlab
Nikos Mavrogiannopoulos [Thu, 5 May 2016 09:10:38 +0000 (11:10 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 5 May 2016 09:01:29 +0000 (11:01 +0200)]
priorities: when without AES acceleration prefer stream ciphers (i.e., CHACHA20)
Nikos Mavrogiannopoulos [Thu, 5 May 2016 20:49:50 +0000 (22:49 +0200)]
doc: updated documentation on rehandshake and GNUTLS_ALLOW_ID_CHANGE [ci skip]
Nikos Mavrogiannopoulos [Wed, 4 May 2016 07:13:50 +0000 (09:13 +0200)]
tests: use the 'b' modifier for writing binary data in set_x509_key_file_der
This allows the test to operate properly on windows systems.
Nikos Mavrogiannopoulos [Wed, 4 May 2016 06:07:37 +0000 (08:07 +0200)]
tests: avoid the usage of tmpnam()
Use a simpler version which is confined within the testsuite
build directories.
Nikos Mavrogiannopoulos [Wed, 4 May 2016 05:48:37 +0000 (07:48 +0200)]
tests: disable checks with tmpnam() on windows
Nikos Mavrogiannopoulos [Tue, 3 May 2016 18:14:37 +0000 (20:14 +0200)]
tests: fixed 64-bit check for time_t in mini-x509
Nikos Mavrogiannopoulos [Tue, 3 May 2016 13:26:52 +0000 (15:26 +0200)]
tests: added check for gnutls_certificate_set_x509_simple_pkcs12_file
Nikos Mavrogiannopoulos [Tue, 3 May 2016 13:12:47 +0000 (15:12 +0200)]
.gitignore: more files to ignore
Nikos Mavrogiannopoulos [Tue, 3 May 2016 13:12:00 +0000 (15:12 +0200)]
tests: added check of gnutls_certificate_set_x509_key_file2 with DER input
Nikos Mavrogiannopoulos [Tue, 3 May 2016 12:54:31 +0000 (14:54 +0200)]
tests: enhanced set_x509_key_file check
That now verifies that the input is the same as the data stored
in the credentials as well checks for valid operation.
Nikos Mavrogiannopoulos [Tue, 3 May 2016 12:29:35 +0000 (14:29 +0200)]
tests: mini-x509: include the legacy verification functions into the check
Nikos Mavrogiannopoulos [Tue, 3 May 2016 12:28:44 +0000 (14:28 +0200)]
tests: added check for gnutls_certificate_set_key()
Nikos Mavrogiannopoulos [Tue, 3 May 2016 12:24:08 +0000 (14:24 +0200)]
gnutls_certificate_set_key: duplicate the provided memory
That is, do not assume that a heap allocated value is provided.
Nikos Mavrogiannopoulos [Tue, 3 May 2016 09:54:04 +0000 (11:54 +0200)]
.gitlab-ci.yml: enabled coverage run in the x86 build
Nikos Mavrogiannopoulos [Tue, 3 May 2016 09:49:09 +0000 (11:49 +0200)]
tests: do not block server errors in testdsa from being printed out
Also added a delay prior to launching next server instance.
Nikos Mavrogiannopoulos [Tue, 3 May 2016 09:43:48 +0000 (11:43 +0200)]
.gitignore: more test files to ignore
Nikos Mavrogiannopoulos [Tue, 3 May 2016 09:26:04 +0000 (11:26 +0200)]
pkcs11: find_ext_cb: eliminated memory leak
Nikos Mavrogiannopoulos [Tue, 3 May 2016 08:56:44 +0000 (10:56 +0200)]
pkcs11: find_cert_cb: do not use C_FindObjectsInit() when another is already running
While some modules implicitly terminated the previous run, this is not
something that PKCS#11 modules are expected to typically do.
Nikos Mavrogiannopoulos [Tue, 3 May 2016 07:28:36 +0000 (09:28 +0200)]
pkcs11: the flag GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT will be respected by imported certificates
That is, certificates imported with gnutls_pkcs11_obj_import_url() or
gnutls_x509_crt_import_url() will be able to be extracted with their
extensions overriden. Previously that was available only on gnutls_pkcs11_get_raw_issuer()
and friends.
Nikos Mavrogiannopoulos [Mon, 2 May 2016 13:36:56 +0000 (15:36 +0200)]
tests: added a basic PKCS#11 mock module
This is used to test gnutls_pkcs11_obj_get_exts(), gnutls_x509_crt_import_url(),
and gnutls_pkcs11_get_raw_issuer() with the GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT
flag.
Nikos Mavrogiannopoulos [Mon, 2 May 2016 11:13:10 +0000 (13:13 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 2 May 2016 11:12:00 +0000 (13:12 +0200)]
_gnutls_x509_crt_cpy: optimized and simplified
Nikos Mavrogiannopoulos [Mon, 2 May 2016 10:53:54 +0000 (12:53 +0200)]
exported gnutls_x509_crt_equals() and gnutls_x509_crt_equals2()
These functions provide a way to compare parsed certificates. They
were used internally and they are quite useful to be made available.
Nikos Mavrogiannopoulos [Mon, 2 May 2016 13:36:37 +0000 (15:36 +0200)]
gnutls_pkcs11_obj_get_exts: updated documentation
Nikos Mavrogiannopoulos [Mon, 2 May 2016 10:09:03 +0000 (12:09 +0200)]
gnutls_x509_crt_import_url: updated documentation for new function name
Nikos Mavrogiannopoulos [Mon, 2 May 2016 10:05:48 +0000 (12:05 +0200)]
gnutls_pkcs11_add_provider: clarified params description
Nikos Mavrogiannopoulos [Mon, 2 May 2016 06:38:32 +0000 (08:38 +0200)]
tests: added checks on PKCS#1 digest info encoding/decoding
Nikos Mavrogiannopoulos [Mon, 2 May 2016 06:37:45 +0000 (08:37 +0200)]
gnutls_decode_ber_digest_info: return more precise error code on unknown hash
That is instead of returning GNUTLS_E_UNKNOWN_ALGORITHM on unknown hash,
return GNUTLS_E_UNKNOWN_HASH_ALGORITHM.
Nikos Mavrogiannopoulos [Mon, 2 May 2016 06:35:58 +0000 (08:35 +0200)]
errors.h: removed terminating colon on gnutls_assert() output
Nikos Mavrogiannopoulos [Sun, 1 May 2016 10:13:26 +0000 (12:13 +0200)]
doc: updated PKCS #11 documentation
Nikos Mavrogiannopoulos [Sat, 30 Apr 2016 16:09:18 +0000 (18:09 +0200)]
gnutls_certificate_get_crt_raw: doc update
Nikos Mavrogiannopoulos [Sat, 30 Apr 2016 16:06:51 +0000 (18:06 +0200)]
doc update
Nikos Mavrogiannopoulos [Sat, 30 Apr 2016 15:50:45 +0000 (17:50 +0200)]
doc: mention the version after which gnutls_pem_base64_en/decode2() are available
Nikos Mavrogiannopoulos [Sat, 30 Apr 2016 06:26:37 +0000 (08:26 +0200)]
tests: use one-time files in crl
Nikos Mavrogiannopoulos [Sat, 30 Apr 2016 05:14:13 +0000 (07:14 +0200)]
tests: check whether the randomly generate port is used
Nikos Mavrogiannopoulos [Sat, 30 Apr 2016 05:05:46 +0000 (07:05 +0200)]
.gitlab-ci.yml: enabled the code coverage checks in the valgrind and ubsan targets
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 17:38:44 +0000 (19:38 +0200)]
tests: enhanced the key-import-export tests
This check now includes the abstract privkey import/export interfaces.
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 17:38:01 +0000 (19:38 +0200)]
corrected import issue in gnutls_privkey_import_ecc_raw
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 17:31:48 +0000 (19:31 +0200)]
x509/privkey: in raw import functions set the parameter's algorithm type
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 17:03:11 +0000 (19:03 +0200)]
srp base64: return proper gnutls errors codes on error rather than -1
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 17:02:45 +0000 (19:02 +0200)]
tests: added checks for base64 functions
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 16:04:50 +0000 (18:04 +0200)]
.gitlab-ci.yml: added code coverage run
This enhances a test to print the code coverage of the test suite,
which in turn is being used/reported by gitlab CI interface.
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 12:53:40 +0000 (14:53 +0200)]
ax_code_coverage.m4: updated to latest version
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 11:12:36 +0000 (13:12 +0200)]
libtasn1: updated to latest version
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 10:57:23 +0000 (12:57 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 10:56:24 +0000 (12:56 +0200)]
errors.h: gnutls_assert() will log the function name in addition to filename/line
This is quite necessary after the filenames were simplified and we have
filenames with identical names in the directory structure.
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 10:34:43 +0000 (12:34 +0200)]
tests: added check for SRP ID change during rehandshake
The tests make sure that username changes are allowed if the
flag GNUTLS_ALLOW_ID_CHANGE is specified, and prohibited otherwise.
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 09:47:58 +0000 (11:47 +0200)]
tests: added check for PSK ID change during rehandshake
The tests make sure that username changes are allowed if the
flag GNUTLS_ALLOW_ID_CHANGE is specified, and prohibited otherwise.
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 08:23:45 +0000 (10:23 +0200)]
handshake: enhance same certificate checks to apply to PSK/SRP username
That is, unless GNUTLS_ALLOW_ID_CHANGE is specified, during a rehandshake
clients will not be allowed to present another certificate than the original,
or change their username for PSK or SRP ciphersuites.
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 07:39:13 +0000 (09:39 +0200)]
tests: added 'PFS' and 'SUITEB128' into the list of checked priority strings
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 07:29:45 +0000 (09:29 +0200)]
tests: fail() function will also print function and line information
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 07:36:02 +0000 (09:36 +0200)]
_gnutls_hex2bin: refuse to decode odd-sized hex data
Nikos Mavrogiannopoulos [Fri, 29 Apr 2016 07:32:52 +0000 (09:32 +0200)]
tests: added unit tests on the HEX encoding/decoding functions
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 16:08:56 +0000 (18:08 +0200)]
certtool: eliminated memory leaks in DH parameter printing/generation.
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 15:42:49 +0000 (17:42 +0200)]
certtool: combined all the seed decoding methods to a single one
That not only simplifies the code, but also allows decoding hex strings
which contain not hex chars (and that allows decoding hex of the form XX:XX:XX)
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 15:31:24 +0000 (17:31 +0200)]
Revert "tests: ensure the seed is provided in plain hex"
This reverts commit
0ea7206e12f52f6ed50c4a76ea0a23f5470115b2 .
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 14:41:26 +0000 (16:41 +0200)]
tests: check certtool dh-parameter generation with --provable option
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 14:38:16 +0000 (16:38 +0200)]
tests: ensure the seed is provided in plain hex
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 14:34:29 +0000 (16:34 +0200)]
certtool: allow specifying seed size when generating provable DH parameters
Nikos Mavrogiannopoulos [Thu, 28 Apr 2016 12:34:17 +0000 (14:34 +0200)]
doc update