]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agotests: split provable-privkey into multiple checks
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 12:25:06 +0000 (14:25 +0200)] 
tests: split provable-privkey into multiple checks

This allows the tests to be run in parallel.

9 years agotests: provable-dh was split into two programs
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 12:17:52 +0000 (14:17 +0200)] 
tests: provable-dh was split into two programs

This allows the test to be run more efficiently when run
in parallel.

9 years ago.gitlab-ci.yml: do not run the full test suite on valgrind test
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 14:48:54 +0000 (16:48 +0200)] 
.gitlab-ci.yml: do not run the full test suite on valgrind test

This allows the CI test to run on reasonable time.

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 12:16:01 +0000 (14:16 +0200)] 
doc update

9 years agomore files to ignore
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 11:00:36 +0000 (13:00 +0200)] 
more files to ignore

9 years agodevel/openssl: updated to 1.1.0 release
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 11:08:53 +0000 (13:08 +0200)] 
devel/openssl: updated to 1.1.0 release

9 years agoaarch64: added optimized AES-CCM mode
Nikos Mavrogiannopoulos [Thu, 29 Sep 2016 13:41:23 +0000 (15:41 +0200)] 
aarch64: added optimized AES-CCM mode

9 years agoImported Andy Polyakov's implementation of AES-GCM in aarch64
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 19:43:05 +0000 (21:43 +0200)] 
Imported Andy Polyakov's implementation of AES-GCM in aarch64

9 years agoImported Andy Polyakov's implementation of AES in aarch64
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 09:55:37 +0000 (11:55 +0200)] 
Imported Andy Polyakov's implementation of AES in aarch64

9 years agoAdded HMAC-SHA* optimizations for aarch64
Nikos Mavrogiannopoulos [Thu, 29 Sep 2016 11:36:55 +0000 (13:36 +0200)] 
Added HMAC-SHA* optimizations for aarch64

9 years agoImported Andy Polyakov's implementations for SHA* in aarch64
Nikos Mavrogiannopoulos [Fri, 23 Sep 2016 12:55:37 +0000 (14:55 +0200)] 
Imported Andy Polyakov's implementations for SHA* in aarch64

9 years agofix zero-termination in _gnutls_server_name_set_raw() for large server names
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 10:53:43 +0000 (12:53 +0200)] 
fix zero-termination in _gnutls_server_name_set_raw() for large server names

9 years ago_gnutls_check_id_for_change: added check for NULL username
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 10:56:07 +0000 (12:56 +0200)] 
_gnutls_check_id_for_change: added check for NULL username

This is not required, but may prevent from issues if code-reorganizations
which may set a NULL username, occur.

9 years agognutls_*_crt_print: better error checking
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 10:58:17 +0000 (12:58 +0200)] 
gnutls_*_crt_print: better error checking

9 years agotests: added test for CKA_ALWAYS_AUTHENTICATE handling in PKCS#11
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 08:29:29 +0000 (10:29 +0200)] 
tests: added test for CKA_ALWAYS_AUTHENTICATE handling in PKCS#11

This checks whether GnuTLS properly calls login prior to any sign
operations when the object is marked as CKA_ALWAYS_AUTHENTICATE.

9 years agopkcs11: improved debugging output in pkcs11_login
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 09:11:55 +0000 (11:11 +0200)] 
pkcs11: improved debugging output in pkcs11_login

9 years agoname constraints: removed unused variable
Nikos Mavrogiannopoulos [Mon, 3 Oct 2016 08:22:44 +0000 (10:22 +0200)] 
name constraints: removed unused variable

9 years agotools: clarify errors when reading files
Nikos Mavrogiannopoulos [Fri, 30 Sep 2016 11:25:41 +0000 (13:25 +0200)] 
tools: clarify errors when reading files

Previously certtool and ocsptool would report:
```
$ certtool --generate-request --load-privkey=foo --outfile=bar
Generating a PKCS #10 certificate request...
reading --load-privkey: foo
```

And that doesn't make apparent what the issue was. Modified
to print:
```
error reading --load-privkey: foo
```

Report and initial patch by Thibault NĂ©lis.

Resolves !97

9 years agop11tool: doc update [ci skip]
Nikos Mavrogiannopoulos [Wed, 28 Sep 2016 05:41:13 +0000 (07:41 +0200)] 
p11tool: doc update [ci skip]

9 years agoRemoved C99 constructions in for-loops
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 21:42:01 +0000 (23:42 +0200)] 
Removed C99 constructions in for-loops

These constructions although valid for C99 they are
being rejected by various compilers. Get rid of them.

9 years agocerttool: print correct size of EC keys
Daiki Ueno [Tue, 27 Sep 2016 09:04:16 +0000 (11:04 +0200)] 
certtool: print correct size of EC keys

Previously certtool complained about key size if --curve is given:

 $ certtool --generate-privkey --ecc --curve secp256r1 --outfile key.pem
 Generating a -2147483646 bit EC/ECDSA private key...
 Note that ECDSA keys with size less than 256 are not widely supported.

9 years agop11tool: documented the p11-kit relevancy of distrust and stapled
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 07:51:56 +0000 (09:51 +0200)] 
p11tool: documented the p11-kit relevancy of distrust and stapled

9 years agopkcs11: forbid PKCS#11 extensions to be used in other than trust modules
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 07:39:09 +0000 (09:39 +0200)] 
pkcs11: forbid PKCS#11 extensions to be used in other than trust modules

That is, only use the CKA_X_DISTRUSTED and the extension override in
p11-kit trust modules, to avoid conflicts with potentially other
PKCS#11 extensions.

9 years ago.gitlab-ci.yml: enabled valgrind tests build
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 09:46:24 +0000 (11:46 +0200)] 
.gitlab-ci.yml: enabled valgrind tests build

9 years agotests: allow handshake-large-packet to run under valgrind
Nikos Mavrogiannopoulos [Tue, 27 Sep 2016 09:44:16 +0000 (11:44 +0200)] 
tests: allow handshake-large-packet to run under valgrind

That is, initialize the allocated buffers with a known value.

9 years agop11tool: introduced the --mark-distrusted and --distrusted options
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 12:24:31 +0000 (14:24 +0200)] 
p11tool: introduced the --mark-distrusted and --distrusted options

This allows to mark objects as distrusted, as well as list all
distrusted certificates (blacklisted) for a p11-kit trust module as:
p11tool --list-all-certs --distrusted

9 years agopkcs11: introduced flag GNUTLS_PKCS11_OBJ_FLAG_MARK_DISTRUSTED
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 12:23:24 +0000 (14:23 +0200)] 
pkcs11: introduced flag GNUTLS_PKCS11_OBJ_FLAG_MARK_DISTRUSTED

This allows to mark objects as distrusted, as well as to be
able to list distrusted objects.

9 years agopkcs11: only staple extensions from a trust module when they are from a non-distruste...
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 12:00:32 +0000 (14:00 +0200)] 
pkcs11: only staple extensions from a trust module when they are from a non-distrusted certificate

That is, make sure that the API for stapling extensions is only used
for non-distrusted (blacklisted) certificates. The reason is to avoid
duplicate extension entries from the p11-kit trust database. These
come from blacklisted certificates, and we have no reason to support
stapled extensions with blacklisted certificates.

9 years agop11tool: allow to export a certificate with its stapled extensions
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 11:47:19 +0000 (13:47 +0200)] 
p11tool: allow to export a certificate with its stapled extensions

9 years agognutls_oid_to_ecc_curve: fix null pointer dereference
Nikos Mavrogiannopoulos [Mon, 26 Sep 2016 06:12:52 +0000 (08:12 +0200)] 
gnutls_oid_to_ecc_curve: fix null pointer dereference

This addresses issue where an unknown curve would cause a
null pointer dereference. This was introduced with the addition
of X25519. Reported by Theofilos Petsios.

9 years agoOnly send the status request extension on cert authentication
Nikos Mavrogiannopoulos [Fri, 23 Sep 2016 14:01:07 +0000 (16:01 +0200)] 
Only send the status request extension on cert authentication

That is, do not both asking for it, or replying to it, if we are
not using any certificates.

9 years agogdoc: improved the detection and display of escaped characters (@%)
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 12:49:57 +0000 (14:49 +0200)] 
gdoc: improved the detection and display of escaped characters (@%)

This allows to properly display strings like %COMPAT and @SYSTEM
in the manual and the manpages.

9 years agodoc: gnutls_priority_init: fixed %COMPAT [ci skip]
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 11:46:19 +0000 (13:46 +0200)] 
doc: gnutls_priority_init: fixed %COMPAT [ci skip]

9 years ago.gitlab-ci.yml: corrected debian build's dependency
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 10:08:45 +0000 (12:08 +0200)] 
.gitlab-ci.yml: corrected debian build's dependency

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 09:07:45 +0000 (11:07 +0200)] 
doc update

9 years agoOn client side allow signing with the signature algorithm of our cert
Nikos Mavrogiannopoulos [Wed, 21 Sep 2016 15:59:18 +0000 (17:59 +0200)] 
On client side allow signing with the signature algorithm of our cert

That allows to sign for example with DSA-SHA1 as client even if we do not
allow DSA-SHA1 as signature algorithm for server's certificate. This allows
to use a deprecated certificate without enabling deprecated algorithms
globally.

9 years ago_gnutls_session_get_sign_algo: always return GNUTLS_SIGN_UNKNOWN on failure
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 09:01:22 +0000 (11:01 +0200)] 
_gnutls_session_get_sign_algo: always return GNUTLS_SIGN_UNKNOWN on failure

9 years agotests: added check for server-side ECDSA keys
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 08:35:13 +0000 (10:35 +0200)] 
tests: added check for server-side ECDSA keys

These tests check whether a server ECDSA key will be rejected by
the client in case the client has no ECDSA signature algorithms
available.

9 years agotests: added check for client-side DSA key
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 07:54:12 +0000 (09:54 +0200)] 
tests: added check for client-side DSA key

This checks whether a client can use and send a DSA key, even
if DSA is not enabled (which should prohibit the server from providing
a DSA certificate).

9 years agocerttool: do not require a certificate to generate a PKCS#12 file
Nikos Mavrogiannopoulos [Thu, 22 Sep 2016 07:21:06 +0000 (09:21 +0200)] 
certtool: do not require a certificate to generate a PKCS#12 file

That is, allow generating PKCS#12 files with private keys only as well.

9 years ago.gitlab-ci.yml: added debian build
Nikos Mavrogiannopoulos [Tue, 20 Sep 2016 07:00:23 +0000 (09:00 +0200)] 
.gitlab-ci.yml: added debian build

9 years agoREADME.md: depend on softhsm2 and net-tools on debian
Nikos Mavrogiannopoulos [Tue, 20 Sep 2016 12:31:12 +0000 (14:31 +0200)] 
README.md: depend on softhsm2 and net-tools on debian

9 years agotests: mini-server-name: skip invalid UTF-8 check if compiled without libidn
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 13:36:21 +0000 (15:36 +0200)] 
tests: mini-server-name: skip invalid UTF-8 check if compiled without libidn

This allows the test suite to run in systems without libidn. Reported
by Thomas Klausner.

9 years agotests: added the macros test_fail() and test_success()
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 12:55:24 +0000 (14:55 +0200)] 
tests: added the macros test_fail() and test_success()

These macros allow test programs which run multiple checks,
to report the name of the check failed. Modified mini-server-name
and x509-dn-decode to use the macro.

9 years agocfg.mk: removed invalid rule in web target
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 16:55:59 +0000 (18:55 +0200)] 
cfg.mk: removed invalid rule in web target

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 12:24:10 +0000 (14:24 +0200)] 
doc update

9 years agoadded debugging message when session fails due to handshake hash buffer
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 12:12:56 +0000 (14:12 +0200)] 
added debugging message when session fails due to handshake hash buffer

9 years agotests: check whether large packets are allowed on the handshake
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 06:02:14 +0000 (08:02 +0200)] 
tests: check whether large packets are allowed on the handshake

9 years agoDo not allow sending overflowed extensions field
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 06:01:24 +0000 (08:01 +0200)] 
Do not allow sending overflowed extensions field

That is, restrict the extensions to a 2^16 total size.

9 years agotests: minor improvements in mini-extension
Nikos Mavrogiannopoulos [Mon, 19 Sep 2016 05:42:41 +0000 (07:42 +0200)] 
tests: minor improvements in mini-extension

This will improve recovery from error conditions.

9 years agoIncreased the maximum size allowed for handshake messages to 128kb
Nikos Mavrogiannopoulos [Fri, 16 Sep 2016 11:12:50 +0000 (13:12 +0200)] 
Increased the maximum size allowed for handshake messages to 128kb

This would allow the library to cope with larger packets, as well
as TLS 1.3 hellos. Suggested by Hubert Kario.

9 years agotests: added check for insecure key
Nikos Mavrogiannopoulos [Sat, 17 Sep 2016 10:52:41 +0000 (12:52 +0200)] 
tests: added check for insecure key

That is, a check which verified whether a connection to a server with
a very small key will fail the certificate verification check.

9 years agodoc update
Nikos Mavrogiannopoulos [Sat, 17 Sep 2016 09:43:45 +0000 (11:43 +0200)] 
doc update

9 years agoIntroduced separate error codes for invalid private and public keys
Nikos Mavrogiannopoulos [Sat, 17 Sep 2016 09:31:29 +0000 (11:31 +0200)] 
Introduced separate error codes for invalid private and public keys

This allows functions like decryption and verification to report
the specific issue they encountered on public key error.
The new codes are GNUTLS_E_PK_INVALID_PUBKEY and GNUTLS_E_PK_INVALID_PRIVKEY

9 years ago.gitlab-ci.yml: no longer require gnutls-devel
Nikos Mavrogiannopoulos [Thu, 15 Sep 2016 14:50:26 +0000 (16:50 +0200)] 
.gitlab-ci.yml: no longer require gnutls-devel

This package is no longer needed to run abi-check.

9 years agoMakefile: abi-check no longer require gnutls headers to be installed
Nikos Mavrogiannopoulos [Thu, 15 Sep 2016 14:49:37 +0000 (16:49 +0200)] 
Makefile: abi-check no longer require gnutls headers to be installed

This addresses the issue of requiring gnutls-devel in the CI system
to run abi-check.

9 years agodoc: remove the conditional self_test functions
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 13:17:29 +0000 (15:17 +0200)] 
doc: remove the conditional self_test functions

Also prevent them by re-entering the documented functions list
by restricting the header files that contribute functions to the
known list defined by $(HEADER_FILES).

9 years agoMakefile.am: introduced 'make files-update' rule
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:37:54 +0000 (10:37 +0200)] 
Makefile.am: introduced 'make files-update' rule

This rule updates the makefiles in doc/ and the kept symbol list.
This allows for easier automation of the symbol change 'make dist'
breakages.

9 years agomanpages: delete comparison temp file
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:33:00 +0000 (10:33 +0200)] 
manpages: delete comparison temp file

9 years agoMakefile.am: symbol changes were made more elaborate
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:30:09 +0000 (10:30 +0200)] 
Makefile.am: symbol changes were made more elaborate

During make dist, the makefile will report the appropriate
symbol change message with instructions and fail.

9 years agoupdated doc and symbol files for gnutls_certificate_set_ocsp_status_request_function2
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:02:48 +0000 (10:02 +0200)] 
updated doc and symbol files for gnutls_certificate_set_ocsp_status_request_function2

9 years agoMakefile.am: print the symbols.last diff on make dist
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 08:00:42 +0000 (10:00 +0200)] 
Makefile.am: print the symbols.last diff on make dist

This allows to manually verify the contents before overriding
the old file.

9 years agodoc: allow creation of gnutls.epub without running epub-fix
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 15:23:07 +0000 (17:23 +0200)] 
doc: allow creation of gnutls.epub without running epub-fix

9 years ago.gitlab-ci.yml: use nproc as argument to 'make -j'
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 13:50:52 +0000 (15:50 +0200)] 
.gitlab-ci.yml: use nproc as argument to 'make -j'

That way, we use as many make processes, as the number of
CPUs in the CI system.

9 years ago.gitlab-ci.yml: added build which runs 'make dist'
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 13:31:13 +0000 (15:31 +0200)] 
.gitlab-ci.yml: added build which runs 'make dist'

This tests whether the manpages, info, html, pdf and epub
manual are properly generated, and whether any new functions
were included into makefiles.

9 years agodoc: fixed the epub documentation generation
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 13:30:07 +0000 (15:30 +0200)] 
doc: fixed the epub documentation generation

9 years agognutls_certificate_set_ocsp_status_request_file: mention version it was enhanced
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 18:18:03 +0000 (20:18 +0200)] 
gnutls_certificate_set_ocsp_status_request_file: mention version it was enhanced

9 years agodoc: corrected typo
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 18:11:28 +0000 (20:11 +0200)] 
doc: corrected typo

9 years agoAdd ECDHE-* to the priority string docs for key exchange algorithms
Alex Monk [Mon, 12 Sep 2016 17:24:49 +0000 (18:24 +0100)] 
Add ECDHE-* to the priority string docs for key exchange algorithms

GNUTLS_KX_ECDHE_PSK was added in 2.99.3 (released 2011-06-18)
The other two were added in 2.99.2 (released 2011-05-26)

Signed-off-by: Alex Monk <krenair@gmail.com>
9 years agodoc update
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:54:42 +0000 (08:54 +0200)] 
doc update

9 years ago.gitlab-ci.yml: added check for position dependent code
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:49:10 +0000 (08:49 +0200)] 
.gitlab-ci.yml: added check for position dependent code

9 years agoMakefile.am: added check for position dependent code
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:46:51 +0000 (08:46 +0200)] 
Makefile.am: added check for position dependent code

This check will verify that the generated library doesn't contain
position dependent code. It depends on elf utilities.

9 years agoopenssl asm: reverted to AESNI-x86 code to gnutls 3.4.x code
Nikos Mavrogiannopoulos [Tue, 13 Sep 2016 06:38:36 +0000 (08:38 +0200)] 
openssl asm: reverted to AESNI-x86 code to gnutls 3.4.x code

The newer code was creating position dependent code.

9 years agotests: added checks to verify server understanding of UTF8 hostnames
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 09:59:37 +0000 (11:59 +0200)] 
tests: added checks to verify server understanding of UTF8 hostnames

This verifies whether a server can understand and serve requests
which contain UTF-8 server names.

9 years agotests: set_key: fixed the time override
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 09:51:07 +0000 (11:51 +0200)] 
tests: set_key: fixed the time override

9 years agotests: set_key: enabled failure_mode test
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 09:23:25 +0000 (11:23 +0200)] 
tests: set_key: enabled failure_mode test

Also eliminated memory leaks related to it.

9 years agoAdded IDNA support in server side
Nikos Mavrogiannopoulos [Sat, 10 Sep 2016 08:50:43 +0000 (10:50 +0200)] 
Added IDNA support in server side

Any server names provided to server side by the gnutls_certificate_set_*
functions, are converted to IDNA format for comparison with client provided
values.

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:52:18 +0000 (10:52 +0200)] 
doc update

9 years ago.gitlab-ci.yml: restrict the freebsd builds to local branches only
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:48:10 +0000 (10:48 +0200)] 
.gitlab-ci.yml: restrict the freebsd builds to local branches only

9 years agoAdd SIGN-ECDSA-SHA* to the priority strings docs
Alex Monk [Sun, 11 Sep 2016 21:10:14 +0000 (22:10 +0100)] 
Add SIGN-ECDSA-SHA* to the priority strings docs

There were added in version 2.99.2, 2011-05-26

Signed-off-by: Alex Monk <krenair@gmail.com>
9 years agognutls_certificate_set_*key: ensure proper cleanup on key mismatch failures
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:22:37 +0000 (10:22 +0200)] 
gnutls_certificate_set_*key: ensure proper cleanup on key mismatch failures

That is, ensure that we keep no local references that are shared with
the caller, and that we properly free all initialized values.

9 years agotests: check key mismatch on gnutls_certificate_set_*key
Nikos Mavrogiannopoulos [Mon, 12 Sep 2016 08:23:48 +0000 (10:23 +0200)] 
tests: check key mismatch on gnutls_certificate_set_*key

That is, check whether these functions can successfully
recover from such condition, without leaks or double freeing.

9 years agotests: added unit testing for gnutls_certificate_set_ocsp_status_request_function2
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 13:32:06 +0000 (15:32 +0200)] 
tests: added unit testing for gnutls_certificate_set_ocsp_status_request_function2

9 years agotests: added unit tests for gnutls_certificate_set_x509_key()
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 13:14:37 +0000 (15:14 +0200)] 
tests: added unit tests for gnutls_certificate_set_x509_key()

In addition these tests verify that the expected index is returned
and that can be used with gnutls_certificate_get_crt_raw() afterwards.

9 years agotests: enhanced set_x509_key tests to include index verification
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 13:03:00 +0000 (15:03 +0200)] 
tests: enhanced set_x509_key tests to include index verification

That is, verify that correct indexes are returned, and these
can be used with gnutls_certificate_get_crt_raw() afterwards.

9 years agotests: enhanced set_x509_key_file tests to include index verification
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 11:48:30 +0000 (13:48 +0200)] 
tests: enhanced set_x509_key_file tests to include index verification

That is, verify that correct indexes are returned, and these
can be used with gnutls_certificate_get_crt_raw() afterwards.

9 years agotests: more checks for functionality of gnutls_certificate_set_ocsp_status_request_file
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 15:55:38 +0000 (17:55 +0200)] 
tests: more checks for functionality of gnutls_certificate_set_ocsp_status_request_file

This introduces checks for the cases where gnutls_certificate_set_ocsp_status_request_file()
is called with multiple indexes, to set an OCSP response for different
certificates. The tests then verify whether the expected OCSP response
is received.

9 years agoAdded gnutls_certificate_set_ocsp_status_request_function2
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 12:49:35 +0000 (14:49 +0200)] 
Added gnutls_certificate_set_ocsp_status_request_function2

That introduces a new function to allow setting an OCSP status
request handling function per certificate. Furthermore it repurposes
the flag parameters to an index option on gnutls_certificate_set_ocsp_status_request_file.

The changes above allow setting a different OCSP status response
file per certificate, and a different function. The indexes they
rely on to associate with existing certs are the indexes returned
by the gnutls_certificate_set_key() and friends functions.

9 years agoAll the key and chain set functions return an index
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 11:38:19 +0000 (13:38 +0200)] 
All the key and chain set functions return an index

When setting key and certificate material to a gnutls_certificate_credentials_t
structure, the corresponding set functions will return an index.
That index could be used later either on the get functions, or
when setting corresponding data (e.g., an OCSP response).

9 years agodoc: clarifications in gnutls_certificate_set_ocsp_status_request_function()
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 11:29:54 +0000 (13:29 +0200)] 
doc: clarifications in gnutls_certificate_set_ocsp_status_request_function()

9 years agoTypo fixes found by lintian.
Andreas Metzler [Sun, 11 Sep 2016 14:00:57 +0000 (16:00 +0200)] 
Typo fixes found by lintian.

incosistent, ommited

9 years ago.gitlab-ci.yml: added code-coverage output to clang build
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 18:24:43 +0000 (20:24 +0200)] 
.gitlab-ci.yml: added code-coverage output to clang build

9 years ago.gitlab-ci.yml: the code-coverage command will always succeed
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 17:40:25 +0000 (19:40 +0200)] 
.gitlab-ci.yml: the code-coverage command will always succeed

This works around random failures while calculating the code coverage.

9 years ago.gitlab-ci.yml: moved commonly installed packages into the before_script field
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 17:37:45 +0000 (19:37 +0200)] 
.gitlab-ci.yml: moved commonly installed packages into the before_script field

9 years ago.gitlab-ci.yml: added syntax check build
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 10:57:04 +0000 (12:57 +0200)] 
.gitlab-ci.yml: added syntax check build

9 years agocfg.mk: revived 'make release'
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 10:51:11 +0000 (12:51 +0200)] 
cfg.mk: revived 'make release'

9 years agoseveral spacing fixes to keep syntax-check happy
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 10:21:59 +0000 (12:21 +0200)] 
several spacing fixes to keep syntax-check happy

9 years agoavoid the usage of '-a' and '-o' bash options
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:51:37 +0000 (11:51 +0200)] 
avoid the usage of '-a' and '-o' bash options

This keeps syntax-check happy.

9 years agoavoid the usage of strncpy
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:44:58 +0000 (11:44 +0200)] 
avoid the usage of strncpy

9 years agoremoved signal.h from files that wasn't used at
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:40:51 +0000 (11:40 +0200)] 
removed signal.h from files that wasn't used at