]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agognutls_priority_init: multiple @KEYWORD lookups with fallback
Daniel P. Berrange [Fri, 3 Jun 2016 15:57:02 +0000 (16:57 +0100)] 
gnutls_priority_init: multiple @KEYWORD lookups with fallback

The support for using "@KEYWORD" as a priority string is very
useful to separate selection of priorities from application
specific code or config files. It is, however, not general
enough to fully serve all reasonable use cases.

For example, consider an application sets

  gnutls_priority_set_direct(session, "@SYSTEM", NULL);

The system administrator can modify the global priorities
file to change what "@SYSTEM" resolves to for all apps using
GNUTLS. As soon as one application wishes to have a slightly
different configuration from others on the host, you have to
go back and start modifying application specific configuration
files once more. This is bad for the system administrator as
it means there's no longer one single place where they can
see the priority configuration for all apps.

They may try to get around this problem by configuring the
app to use a different keyword, instead of a full priority
string, eg "@LIBVIRT". So the global priorities file can
now define entries for both "SYSTEM" and "LIBVIRT". This
has still placed a burden on the administrator change the
config in two places - both libvirt config files and the
global priorities file.

What is more desirable is if applications were able to provide
a list of keywords that would be tried in order, picking the
first that existed. For example, libvirt could be written to
request the following by default

  gnutls_priority_set_direct(session, "@LIBVIRT,SYSTEM", NULL);

With this, gnutls would first try to find the "LIBVIRT" keyword
in the global configuration file, and if that is not present,
then it would fallback to trying to find the "SYSTEM" keyword.

This provides nice "out of the box" behaviour for system
administrators, whereby the app would be using "SYSTEM" initially
and if the admin wishes to give the app a custom configuration,
they can simply modify the global priorities file to add in the
application specific keyword "LIBVIRT". There is never a need
for the sysadmin to modify any application specific configuration
files any more. It is exclusively controlled in one place via the
global priorities file.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
9 years agotests: enhanced system priority file testing
Nikos Mavrogiannopoulos [Thu, 9 Jun 2016 15:20:22 +0000 (17:20 +0200)] 
tests: enhanced system priority file testing

This checks whether appending to system priority options work.

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 9 Jun 2016 15:21:57 +0000 (17:21 +0200)] 
doc update

9 years agodoc: remove all references to openpgp auth example
Nikos Mavrogiannopoulos [Thu, 9 Jun 2016 15:01:06 +0000 (17:01 +0200)] 
doc: remove all references to openpgp auth example

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 9 Jun 2016 14:48:14 +0000 (16:48 +0200)] 
doc update

9 years ago_gnutls_resolve_priorities: always try to re-read sys priority file
Daniel P. Berrange [Fri, 3 Jun 2016 13:59:11 +0000 (14:59 +0100)] 
_gnutls_resolve_priorities: always try to re-read sys priority file

Previously if the system priority file was edited, that would
take effect on the very next TLS session an application created.

As of:

  commit 006b89d4464ae1bb6d545ea5716998654124df45
  Author: Nikos Mavrogiannopoulos <nmav@redhat.com>
  Date:   Fri Apr 1 10:46:12 2016 +0200

    priorities: preload the system priorities on library loading time

It is required to restart every application after changing the
system priority file to get changes to take effect.

Further, for applications running in a chroot, it will no longer
honour a system priority file that may exist inside the chroot,
always using the originally cached data from outside the chroot.

This patch changes the caching so that we always try to reload
the cache of system priorities. A mtime check is used to avoid
actually re-reading the file unless its content has obviously
changed. If the file no longer exists, the cache will not be
invalidated. This ensures that the current priority file is
always honoured, whether inside a chroot or not, while at the
same time allowing apps to work in a chroot when no system
priority file is present.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
9 years agodoc: remove references to GNUTLS_KEYLOGFILE
Nikos Mavrogiannopoulos [Wed, 8 Jun 2016 17:38:07 +0000 (19:38 +0200)] 
doc: remove references to GNUTLS_KEYLOGFILE

9 years agotests: renamed rehandshake checks for clarity
Nikos Mavrogiannopoulos [Mon, 6 Jun 2016 17:33:34 +0000 (19:33 +0200)] 
tests: renamed rehandshake checks for clarity

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 6 Jun 2016 16:47:28 +0000 (18:47 +0200)] 
doc update

9 years agokeylogfile: only consider the SSLKEYLOGFILE variable
Nikos Mavrogiannopoulos [Mon, 6 Jun 2016 16:43:12 +0000 (18:43 +0200)] 
keylogfile: only consider the SSLKEYLOGFILE variable

In addition do not check the environment in the constructor
but instead use static variables to save the key file name.
The GNUTLS_KEYLOGFILE environment variable is no longer used
since there is no reason to have a separate one.

9 years agolib: eliminated the use of deprecated variables
Nikos Mavrogiannopoulos [Mon, 6 Jun 2016 16:39:18 +0000 (18:39 +0200)] 
lib: eliminated the use of deprecated variables

10 years agodoc: removed OpenPGP examples
Nikos Mavrogiannopoulos [Sat, 4 Jun 2016 09:42:21 +0000 (11:42 +0200)] 
doc: removed OpenPGP examples

Relates #102

10 years agopkcs12: corrected return type of gnutls_pkcs12_bag_get_type()
Nikos Mavrogiannopoulos [Sat, 4 Jun 2016 09:36:34 +0000 (11:36 +0200)] 
pkcs12: corrected return type of gnutls_pkcs12_bag_get_type()

10 years agotests: move pkcs11-cert-import-url4-exts with the other pkcs11 tests
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 15:07:28 +0000 (17:07 +0200)] 
tests: move pkcs11-cert-import-url4-exts with the other pkcs11 tests

This prevents a build failure in windows.

10 years agodoc clarify the version since when GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT...
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 13:01:59 +0000 (15:01 +0200)] 
doc clarify the version since when GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT is accepted

10 years agotests: corrected typo in crl-test
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 12:53:04 +0000 (14:53 +0200)] 
tests: corrected typo in crl-test

10 years agotests: check gnutls_pkcs11_obj_list_import_url4() with GNUTLS_PKCS11_OBJ_FLAG_OVERWRI...
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 12:24:32 +0000 (14:24 +0200)] 
tests: check gnutls_pkcs11_obj_list_import_url4() with GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT

10 years agognutls_pkcs11_obj_list_import_url4: accepts the GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUS...
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 12:50:45 +0000 (14:50 +0200)] 
gnutls_pkcs11_obj_list_import_url4: accepts the GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT flag

10 years agognutls_pkcs11_obj_list_import_url3: rewritten to use gnutls_pkcs11_obj_list_import_url4
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 12:41:25 +0000 (14:41 +0200)] 
gnutls_pkcs11_obj_list_import_url3: rewritten to use gnutls_pkcs11_obj_list_import_url4

10 years agopkcs11: use ctx as variable name for ck_object_handle_t for clarity
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 12:29:45 +0000 (14:29 +0200)] 
pkcs11: use ctx as variable name for ck_object_handle_t for clarity

10 years agopkcs11: doc update
Nikos Mavrogiannopoulos [Fri, 3 Jun 2016 11:47:44 +0000 (13:47 +0200)] 
pkcs11: doc update

10 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Thu, 2 Jun 2016 12:37:11 +0000 (14:37 +0200)] 
doc update [ci skip]

10 years ago_gnutls_check_key_purpose: in CA certificates treat the SGC key purpose as GNUTLS_KP_...
Nikos Mavrogiannopoulos [Thu, 2 Jun 2016 12:28:52 +0000 (14:28 +0200)] 
_gnutls_check_key_purpose: in CA certificates treat the SGC key purpose as GNUTLS_KP_TLS_WWW_SERVER

This is a hack for certain very old CA certificates lurking around which instead
of having the GNUTLS_KP_TLS_WWW_SERVER have some old OIDs for that purpose. Consider
these OIDs equivalent to GNUTLS_KP_TLS_WWW_SERVER in marked as CA certificates.

10 years agognutls-cli: --save-ocsp will work even if verification fails
Nikos Mavrogiannopoulos [Thu, 2 Jun 2016 07:22:26 +0000 (09:22 +0200)] 
gnutls-cli: --save-ocsp will work even if verification fails

That is, allow saving the response even if the OCSP response caused
a verification error. That way the response can be examined for possible
issues.

10 years agoocsp: attempt harder to figure an OCSP staple issuer
Nikos Mavrogiannopoulos [Thu, 2 Jun 2016 07:20:13 +0000 (09:20 +0200)] 
ocsp: attempt harder to figure an OCSP staple issuer

That is, check initially against the trust list set on the credentials,
and if verification is not possible attempt with all certificates in
the chain as possible issuers. The reason of this enhancement is the
few servers have an OCSP response signed not by their direct CA but
rather by one of the higher level CAs.

10 years agotests: added comprehensive OCSP test suite with MUST-staple PKIX extension
Nikos Mavrogiannopoulos [Wed, 1 Jun 2016 12:10:59 +0000 (14:10 +0200)] 
tests: added comprehensive OCSP test suite with MUST-staple PKIX extension

This includes the tests:
 - Server with valid certificate - no staple
 - Server with valid certificate - valid staple
 - Server with valid certificate - invalid staple
 - Server with valid certificate - unrelated cert staple
 - Server with valid certificate - expired staple
 - Server with valid certificate - old staple

10 years agotests: utils: added c_print()
Nikos Mavrogiannopoulos [Wed, 1 Jun 2016 08:09:54 +0000 (10:09 +0200)] 
tests: utils: added c_print()

10 years agoext: status_request: added more descriptive name
Nikos Mavrogiannopoulos [Wed, 1 Jun 2016 08:33:15 +0000 (10:33 +0200)] 
ext: status_request: added more descriptive name

10 years agoocsp: fail certificate verification on expired or too old revocation data info
Nikos Mavrogiannopoulos [Wed, 1 Jun 2016 12:15:49 +0000 (14:15 +0200)] 
ocsp: fail certificate verification on expired or too old revocation data info

10 years agoocsp: Introduced GNUTLS_CERT_INVALID_OCSP_STATUS
Nikos Mavrogiannopoulos [Wed, 1 Jun 2016 12:13:52 +0000 (14:13 +0200)] 
ocsp: Introduced GNUTLS_CERT_INVALID_OCSP_STATUS

This verification status flag indicates an OCSP status response
being stapled but it being invalid for some reason (e.g., unable
to parse or doesn't contain the expected certificate).

10 years agodoc: improved OCSP description and mention RFC7633
Nikos Mavrogiannopoulos [Wed, 1 Jun 2016 12:38:32 +0000 (14:38 +0200)] 
doc: improved OCSP description and mention RFC7633

10 years agotests: added basic check for gnutls_url_is_supported
Nikos Mavrogiannopoulos [Tue, 31 May 2016 14:52:06 +0000 (16:52 +0200)] 
tests: added basic check for gnutls_url_is_supported

10 years agognutls_url_is_supported: type changed to unsigned
Nikos Mavrogiannopoulos [Tue, 31 May 2016 14:47:34 +0000 (16:47 +0200)] 
gnutls_url_is_supported: type changed to unsigned

In addition function documentation was updated.

10 years agodoc update
Nikos Mavrogiannopoulos [Tue, 31 May 2016 14:42:22 +0000 (16:42 +0200)] 
doc update

10 years agopubkey_to_bits: return type was changed to unsigned
Nikos Mavrogiannopoulos [Tue, 31 May 2016 14:37:34 +0000 (16:37 +0200)] 
pubkey_to_bits: return type was changed to unsigned

This function did not return signed data, so the "int" return
type was confusing.

10 years agocrypto-selftests: removed unneeded cast
Nikos Mavrogiannopoulos [Tue, 31 May 2016 14:16:38 +0000 (16:16 +0200)] 
crypto-selftests: removed unneeded cast

10 years agoseveral sign-related API changes
Nikos Mavrogiannopoulos [Tue, 31 May 2016 11:49:13 +0000 (13:49 +0200)] 
several sign-related API changes

This replaces the usage of "int" in functions which could only
have accepted an "unsigned" value. Also functions which return
unsigned values are explicitly tagged as such. The ABI remains
the same with these changes.

This allows easier catching of sign/unsigned related errors from
the calling applications.

10 years agox509: simplified _gnutls_x509_get_tbs()
Nikos Mavrogiannopoulos [Tue, 31 May 2016 09:40:00 +0000 (11:40 +0200)] 
x509: simplified _gnutls_x509_get_tbs()

10 years agox509: replace the bool type with the unsigned type
Nikos Mavrogiannopoulos [Tue, 31 May 2016 08:08:14 +0000 (10:08 +0200)] 
x509: replace the bool type with the unsigned type

This allows to rely on gcc warnings for improper checks and
conversions. Unfortunately gcc does warn on invalid checks for
the bool type (e.g., b<0).

10 years agoconfigure: enable the type-limits gcc warnings
Nikos Mavrogiannopoulos [Tue, 31 May 2016 08:00:18 +0000 (10:00 +0200)] 
configure: enable the type-limits gcc warnings

In addition remove the unsafe-loop-optimizations warning
as they were not helpful.

10 years agocerttool: doc update
Nikos Mavrogiannopoulos [Tue, 31 May 2016 06:59:47 +0000 (08:59 +0200)] 
certtool: doc update

10 years agoDCO: added Tim Kosse [ci skip]
Nikos Mavrogiannopoulos [Mon, 30 May 2016 20:28:23 +0000 (22:28 +0200)] 
DCO: added Tim Kosse [ci skip]

10 years agotools: modify canonicalize_host to not depend on in6_addr
Nikos Mavrogiannopoulos [Mon, 30 May 2016 13:19:15 +0000 (15:19 +0200)] 
tools: modify canonicalize_host to not depend on in6_addr

10 years agotests: added unit tests for gnutls_x509_tlsfeatures_t handling funcs
Nikos Mavrogiannopoulos [Mon, 30 May 2016 13:17:06 +0000 (15:17 +0200)] 
tests: added unit tests for gnutls_x509_tlsfeatures_t handling funcs

This includes DER import/export as well as feature appending.

10 years agotests: tlsfeature-test will ignore the 'Algorithm Security Level' line in comparisons
Nikos Mavrogiannopoulos [Mon, 30 May 2016 12:19:20 +0000 (14:19 +0200)] 
tests: tlsfeature-test will ignore the 'Algorithm Security Level' line in comparisons

That is to allow depending on the certificate output validation without
relying on "moving" parameters such as the Algorithm Security Level.

10 years agotests: verify whether the TLSFeatures extension is copied
Nikos Mavrogiannopoulos [Mon, 30 May 2016 11:47:14 +0000 (13:47 +0200)] 
tests: verify whether the TLSFeatures extension is copied

Verify whether the TLSFeatures extension is copied from the certificate
request to the generated certificate.

10 years agodoc: updated since version of tlsfeature functionality and documented new functions
Nikos Mavrogiannopoulos [Mon, 30 May 2016 11:34:17 +0000 (13:34 +0200)] 
doc: updated since version of tlsfeature functionality and documented new functions

10 years agotests: add testcase to check for missing status request
Tim Kosse [Fri, 15 Jan 2016 13:45:03 +0000 (14:45 +0100)] 
tests: add testcase to check for missing status request

That is verify whether the OCSP MUST-staple extension, as can be
deduced from RFC7633, is accounted during handshake.

10 years agoReset extensions_sent_size only at start of handshake
Tim Kosse [Fri, 15 Jan 2016 13:45:42 +0000 (14:45 +0100)] 
Reset extensions_sent_size only at start of handshake

That is, do not reset it when completing it so that we can
use the negotiated extensions even after the handshake is
complete.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agoAccount the TLSFeature certificate extension in certificate verification
Tim Kosse [Sun, 20 Dec 2015 14:09:24 +0000 (15:09 +0100)] 
Account the TLSFeature certificate extension in certificate verification

That is, account for the OCSP-Must staple extension. If we have sent an OCSP
status request and have not gotten anything, but the certificate has the
Status Request TLSFeature extension present, fail to verify the certificate.

10 years agotools: allow specifying a hostname with a port attached
Nikos Mavrogiannopoulos [Mon, 30 May 2016 10:57:55 +0000 (12:57 +0200)] 
tools: allow specifying a hostname with a port attached

That is: gnutls-cli www.example.com:443 is equivalent to
gnutls-cli www.example.com -p 443

10 years agotests: check the generation and printing of TLS feature PKIX extension
Nikos Mavrogiannopoulos [Mon, 30 May 2016 10:35:45 +0000 (12:35 +0200)] 
tests: check the generation and printing of TLS feature PKIX extension

10 years agodoc: document tls_feature option in the sample template
Nikos Mavrogiannopoulos [Mon, 30 May 2016 09:23:39 +0000 (11:23 +0200)] 
doc: document tls_feature option in the sample template

10 years agoTLS extensions: use more human-friendly names
Nikos Mavrogiannopoulos [Mon, 30 May 2016 08:55:46 +0000 (10:55 +0200)] 
TLS extensions: use more human-friendly names

This is required to provide better output to gnutls_ext_get_name()

10 years agoexported function to convert TLS extension numbers to strings
Nikos Mavrogiannopoulos [Mon, 30 May 2016 08:50:38 +0000 (10:50 +0200)] 
exported function to convert TLS extension numbers to strings

The exported function is gnutls_ext_get_name()

10 years agox509/output: print the extension name of TLSFeatures
Nikos Mavrogiannopoulos [Mon, 30 May 2016 08:45:46 +0000 (10:45 +0200)] 
x509/output: print the extension name of TLSFeatures

10 years agoImplement setting the TLS features extension on certificates via certtool's template...
Tim Kosse [Thu, 7 Jan 2016 10:27:13 +0000 (11:27 +0100)] 
Implement setting the TLS features extension on certificates via certtool's template file.

10 years agolibgnutls.map: exported the tlsfeatures-related functions
Nikos Mavrogiannopoulos [Mon, 30 May 2016 08:20:00 +0000 (10:20 +0200)] 
libgnutls.map: exported the tlsfeatures-related functions

10 years agoAdd functions to get/set the tlsfeatures to certificate requests.
Tim Kosse [Fri, 15 Jan 2016 10:34:31 +0000 (11:34 +0100)] 
Add functions to get/set the tlsfeatures to certificate requests.

10 years agoAdded gnutls_x509_crt_set_tlsfeatures
Tim Kosse [Mon, 30 May 2016 07:57:42 +0000 (09:57 +0200)] 
Added gnutls_x509_crt_set_tlsfeatures

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agoAdded functions to add features and convert tlsfeatures back to DER
Tim Kosse [Mon, 30 May 2016 07:52:15 +0000 (09:52 +0200)] 
Added functions to add features and convert tlsfeatures back to DER

That adds:
  gnutls_x509_ext_export_tlsfeatures
  gnutls_x509_tlsfeatures_add

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agoMove call to terminate() until after printing the error message.
Tim Kosse [Fri, 15 Jan 2016 12:48:10 +0000 (13:48 +0100)] 
Move call to terminate() until after printing the error message.

10 years agoFix the description of two testcases.
Tim Kosse [Fri, 15 Jan 2016 11:04:00 +0000 (12:04 +0100)] 
Fix the description of two testcases.

10 years agoAdded functions to parse the TLSFeatures X.509 extension.
Tim Kosse [Mon, 30 May 2016 07:45:29 +0000 (09:45 +0200)] 
Added functions to parse the TLSFeatures X.509 extension.

In addition provide function to enumerate the features it lists,
and output information with the output functions.
This adds:
  gnutls_x509_tlsfeatures_init
  gnutls_x509_tlsfeatures_deinit
  gnutls_x509_tlsfeatures_get
  gnutls_x509_ext_import_tlsfeatures
  gnutls_x509_crt_get_tlsfeatures

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agoTypo fix: auxilary -> auxiliary [ci skip]
Andreas Metzler [Sun, 29 May 2016 09:53:22 +0000 (11:53 +0200)] 
Typo fix: auxilary -> auxiliary [ci skip]

10 years agotests: added DTLS 0.9 check with AES-128-GCM
Nikos Mavrogiannopoulos [Sat, 28 May 2016 20:26:48 +0000 (22:26 +0200)] 
tests: added DTLS 0.9 check with AES-128-GCM

10 years agogl: secure_getenv() will behave as getenv on windows
Nikos Mavrogiannopoulos [Sat, 28 May 2016 17:57:09 +0000 (19:57 +0200)] 
gl: secure_getenv() will behave as getenv on windows

10 years agotests: corrected definition of CryptSignHash in mock crypt32
Nikos Mavrogiannopoulos [Sat, 28 May 2016 17:32:12 +0000 (19:32 +0200)] 
tests: corrected definition of CryptSignHash in mock crypt32

10 years agoRely on gnulib's secure_getenv()
Nikos Mavrogiannopoulos [Sat, 28 May 2016 07:55:53 +0000 (09:55 +0200)] 
Rely on gnulib's secure_getenv()

10 years agox86-common: use secure_getenv()
Nikos Mavrogiannopoulos [Sat, 28 May 2016 07:55:07 +0000 (09:55 +0200)] 
x86-common: use secure_getenv()

10 years agoconfigure.ac: check for secure_getenv where available and always enable system extensions
Nikos Mavrogiannopoulos [Fri, 27 May 2016 20:48:48 +0000 (22:48 +0200)] 
configure.ac: check for secure_getenv where available and always enable system extensions

10 years agotests: keylog-env will check for SSLKEYLOGFILE as well
Nikos Mavrogiannopoulos [Fri, 27 May 2016 20:34:53 +0000 (22:34 +0200)] 
tests: keylog-env will check for SSLKEYLOGFILE as well

10 years agoenv: use secure_getenv when reading environment variables
Nikos Mavrogiannopoulos [Fri, 27 May 2016 20:26:02 +0000 (22:26 +0200)] 
env: use secure_getenv when reading environment variables

10 years agodoc update
Nikos Mavrogiannopoulos [Fri, 27 May 2016 20:21:50 +0000 (22:21 +0200)] 
doc update

10 years agoAppend keys on keylogfile
Nikos Mavrogiannopoulos [Fri, 27 May 2016 20:19:40 +0000 (22:19 +0200)] 
Append keys on keylogfile

Also consider the SSLKEYLOGFILE variable, since the format is
identical and we are always appending keys.

10 years agotests: ssl2-hello check is made conditional
Nikos Mavrogiannopoulos [Thu, 26 May 2016 09:05:40 +0000 (11:05 +0200)] 
tests: ssl2-hello check is made conditional

It is only run if ENABLE_SSL2 is defined.

10 years ago.gitignore: more files to ignore
Nikos Mavrogiannopoulos [Thu, 26 May 2016 09:04:27 +0000 (11:04 +0200)] 
.gitignore: more files to ignore

10 years agotests: added SSL2.0 client hello parsing check
Nikos Mavrogiannopoulos [Thu, 26 May 2016 09:02:34 +0000 (11:02 +0200)] 
tests: added SSL2.0 client hello parsing check

10 years agotests: added small text clarifying the purpose of the cert-common.h header
Nikos Mavrogiannopoulos [Thu, 26 May 2016 08:58:19 +0000 (10:58 +0200)] 
tests: added small text clarifying the purpose of the cert-common.h header

10 years agotests: add an upper limit in the run of compat tests
Nikos Mavrogiannopoulos [Tue, 24 May 2016 11:45:32 +0000 (13:45 +0200)] 
tests: add an upper limit in the run of compat tests

This allows the test suite to recover from the case of DTLS implementations
that do not properly retransmit and block on lost packets.

10 years agodoc: advise against using the TPM-specific API
Nikos Mavrogiannopoulos [Tue, 24 May 2016 11:27:12 +0000 (13:27 +0200)] 
doc: advise against using the TPM-specific API

It is restricted to TPM 1.2, and there are fine PKCS#11 wrappers that
will provide identifical functionality.

Relates #101

10 years ago.gitlab-ci.yml: corrected typo preventing the no-SSL 3.0 test part to be properly run
Nikos Mavrogiannopoulos [Tue, 24 May 2016 08:08:14 +0000 (10:08 +0200)] 
.gitlab-ci.yml: corrected typo preventing the no-SSL 3.0 test part to be properly run

Also test the --disable-ssl2-support option.

10 years agoAmend the "Allow for conditional compilation of SSL 3.0 protocol patch"
Nikos Mavrogiannopoulos [Tue, 24 May 2016 07:58:12 +0000 (09:58 +0200)] 
Amend the "Allow for conditional compilation of SSL 3.0 protocol patch"

That is fix bug introduced by an incorrect #ifdef, and unconditionally
provide access to certificate callbacks.

This amends 89faab9e9e9123f39e8c0c6f8da1f67de423254a

10 years agodoc: updated text on priority strings
Nikos Mavrogiannopoulos [Tue, 24 May 2016 07:17:53 +0000 (09:17 +0200)] 
doc: updated text on priority strings

Refer to RFC7685 for the TLS padding extension (%DUMBFW),
and mention the default behavior for the TLS client hello record version.

10 years agopkcs11: added sanity check to find_obj_url_cb() for object validity
Nikos Mavrogiannopoulos [Mon, 23 May 2016 09:33:53 +0000 (11:33 +0200)] 
pkcs11: added sanity check to find_obj_url_cb() for object validity

Also avoid unnecessary recursion.

10 years agotests: run compatibility checks in parallel for various modifiers
Nikos Mavrogiannopoulos [Sat, 21 May 2016 04:24:47 +0000 (06:24 +0200)] 
tests: run compatibility checks in parallel for various modifiers

That is, the various %NO_ETM, %COMPAT, ... modifiers are checked
in parallel in the testcompat suite, reducing the overall running
time significantly.

10 years agotests: enhance TLS version checks with DTLS
Nikos Mavrogiannopoulos [Sat, 21 May 2016 03:39:21 +0000 (05:39 +0200)] 
tests: enhance TLS version checks with DTLS

That is we check whether DTLS-1.0 and DTLS-1.2 can be negotiated
using the NORMAL priority string. We also add a custom check for
DTLS-0.9 as this is not fully supported for negotiation.

10 years agotests: use /bin/bash in tests which require common.sh
Nikos Mavrogiannopoulos [Fri, 20 May 2016 15:44:46 +0000 (17:44 +0200)] 
tests: use /bin/bash in tests which require common.sh

10 years ago.gitlab-ci.yml: minimal build disables SSL2 client hello
Nikos Mavrogiannopoulos [Fri, 20 May 2016 13:04:22 +0000 (15:04 +0200)] 
.gitlab-ci.yml: minimal build disables SSL2 client hello

10 years agodoc update
Nikos Mavrogiannopoulos [Fri, 20 May 2016 13:03:41 +0000 (15:03 +0200)] 
doc update

10 years agoAllow for conditional compilation of SSL 2.0 client hello support
Nikos Mavrogiannopoulos [Fri, 20 May 2016 13:01:49 +0000 (15:01 +0200)] 
Allow for conditional compilation of SSL 2.0 client hello support

This allows to completely remove SSL 2.0 support by calling configure
with the '--disable-ssl2-support' option.

Relates #97

10 years agoAmend: Allow for conditional compilation of SSL 3.0 protocol
Nikos Mavrogiannopoulos [Fri, 20 May 2016 12:54:38 +0000 (14:54 +0200)] 
Amend: Allow for conditional compilation of SSL 3.0 protocol

This patch makes conditional several more SSL 3.0-only parts of codebase.

10 years agoCONTRIBUTING.md: link to milestones instead of all issues
Nikos Mavrogiannopoulos [Fri, 20 May 2016 12:47:27 +0000 (14:47 +0200)] 
CONTRIBUTING.md: link to milestones instead of all issues

10 years agotests: mini-x509-cas: use cert-common.h
Nikos Mavrogiannopoulos [Fri, 20 May 2016 12:42:12 +0000 (14:42 +0200)] 
tests: mini-x509-cas: use cert-common.h

10 years agoCONTRIBUTING.md: doc update
Nikos Mavrogiannopoulos [Fri, 20 May 2016 12:41:08 +0000 (14:41 +0200)] 
CONTRIBUTING.md: doc update

10 years agotests: do not use pkglib to generate libpkcs11mock1.so
Nikos Mavrogiannopoulos [Fri, 20 May 2016 10:07:57 +0000 (12:07 +0200)] 
tests: do not use pkglib to generate libpkcs11mock1.so

This resulted in the test library being installed. Install we use noinst
for the library, but pass -rpath to LDFLAGS as a hack to for libtool
to generate the shared version.

10 years agoconfigure.ac: increased stack size usage to reduce warnings
Nikos Mavrogiannopoulos [Thu, 19 May 2016 10:08:13 +0000 (12:08 +0200)] 
configure.ac: increased stack size usage to reduce warnings

Also remove gcc flags from the banned list that no longer pose
and issue.

10 years agoannounce.txt: updated list email address
Nikos Mavrogiannopoulos [Fri, 20 May 2016 05:45:46 +0000 (07:45 +0200)] 
announce.txt:  updated list email address

10 years agopriority: CCM ciphersuites was promoted over the CBC ones
Nikos Mavrogiannopoulos [Thu, 19 May 2016 08:56:52 +0000 (10:56 +0200)] 
priority: CCM ciphersuites was promoted over the CBC ones

Also make explicit the prioritization rules for the default set
of ciphers.

10 years agognutls-cli: allow operation with stdin input
Nikos Mavrogiannopoulos [Thu, 19 May 2016 07:24:13 +0000 (09:24 +0200)] 
gnutls-cli: allow operation with stdin input

That is once commands from stdin are given, they are not only sent to server,
but we also wait for a response prior to exiting.

Resolves #96