]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
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

10 years agodoc update
Nikos Mavrogiannopoulos [Wed, 18 May 2016 12:00:06 +0000 (14:00 +0200)] 
doc update

10 years agotests: ocsp-tls-connection: use /bin/bash since we rely on the $RANDOM variable
Nikos Mavrogiannopoulos [Wed, 18 May 2016 20:24:33 +0000 (22:24 +0200)] 
tests: ocsp-tls-connection: use /bin/bash since we rely on the $RANDOM variable

10 years agotests: use _putenv() for setting environment on windows
Nikos Mavrogiannopoulos [Wed, 18 May 2016 20:20:47 +0000 (22:20 +0200)] 
tests: use _putenv() for setting environment on windows

10 years agotests: added check to verify that keylog file is being written
Nikos Mavrogiannopoulos [Wed, 18 May 2016 19:15:38 +0000 (21:15 +0200)] 
tests: added check to verify that keylog file is being written

10 years agodoc: documented the GNUTLS_KEYLOGFILE environment variable
Nikos Mavrogiannopoulos [Wed, 18 May 2016 14:38:13 +0000 (16:38 +0200)] 
doc: documented the GNUTLS_KEYLOGFILE environment variable

10 years agoWrite session keys into a file when GNUTLS_KEYLOGFILE is exported
Nikos Mavrogiannopoulos [Wed, 18 May 2016 14:31:28 +0000 (16:31 +0200)] 
Write session keys into a file when GNUTLS_KEYLOGFILE is exported

That is the file pointed from the variable is written to, and contain
the session parameters in the following format (identical to NSS key
log format):

CLIENT_RANDOM <space> <64 bytes of hex encoded client_random> <space> <96 bytes of hex encoded master secret>

and for the old RSA ciphersuites also in the format:
RSA <space> <16 bytes of hex encoded encrypted pre master secret> <space> <96 bytes of hex encoded master secret>

Resolves #64

10 years agosystemkey: corrected help output
Nikos Mavrogiannopoulos [Wed, 18 May 2016 11:39:06 +0000 (13:39 +0200)] 
systemkey: corrected help output

10 years agodoc: document the systems supported via systemkeys API
Nikos Mavrogiannopoulos [Wed, 18 May 2016 11:36:11 +0000 (13:36 +0200)] 
doc: document the systems supported via systemkeys API

10 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Tue, 17 May 2016 12:13:26 +0000 (14:13 +0200)] 
doc update [ci skip]

10 years agognutls-cli: corrected check for OCSP verification success
Nikos Mavrogiannopoulos [Tue, 17 May 2016 08:35:39 +0000 (10:35 +0200)] 
gnutls-cli: corrected check for OCSP verification success

10 years agoTest case for gnutls-cli --ocsp
Thomas Klute [Fri, 29 Apr 2016 00:50:31 +0000 (02:50 +0200)] 
Test case for gnutls-cli --ocsp

This new test case checks if gnutls-cli accepts OCSP responses for a
valid and a revoked server certificate when establishing TLS
connections. Uses the OpenSSL OCSP responder.

Signed-off-by: Thomas Klute <thomas2.klute@uni-dortmund.de>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
10 years agoINSTALL.md: no longer reference libgcrypt
Nikos Mavrogiannopoulos [Tue, 17 May 2016 07:23:22 +0000 (09:23 +0200)] 
INSTALL.md: no longer reference libgcrypt

10 years agodoc: updated README files
Nikos Mavrogiannopoulos [Tue, 17 May 2016 07:16:32 +0000 (09:16 +0200)] 
doc: updated README files

This makes the names a bit more reasonable, drops the very generic
INSTALL file, and also allows the github repository to print the
correct README file.

README -> INSTALL.md
README-alpha.md -> README.md

10 years agotests: renamed cert-callback checks for simplicity
Nikos Mavrogiannopoulos [Tue, 17 May 2016 06:56:59 +0000 (08:56 +0200)] 
tests: renamed cert-callback checks for simplicity

10 years agotests: added check with the legacy cert verification callback
Nikos Mavrogiannopoulos [Tue, 17 May 2016 06:55:50 +0000 (08:55 +0200)] 
tests: added check with the legacy cert verification callback

10 years agodoc update
Nikos Mavrogiannopoulos [Tue, 17 May 2016 06:54:43 +0000 (08:54 +0200)] 
doc update

10 years agotests: cert-callbacks check now checks the server-side callback operation as well
Nikos Mavrogiannopoulos [Tue, 17 May 2016 06:43:58 +0000 (08:43 +0200)] 
tests: cert-callbacks check now checks the server-side callback operation as well

10 years agotests: dtls-stress: fix debug argument accounting
Nikos Mavrogiannopoulos [Mon, 16 May 2016 16:08:27 +0000 (18:08 +0200)] 
tests: dtls-stress: fix debug argument accounting

It was not being considered when it was not the last argument.

10 years agotests: re-disabled dtls-nb check; it had random failures
Nikos Mavrogiannopoulos [Mon, 16 May 2016 16:05:34 +0000 (18:05 +0200)] 
tests: re-disabled dtls-nb check; it had random failures

This was disabled for quite long time already, and needs to
be investigated.

10 years agotests: added DTLS test suite when in session resumption
Nikos Mavrogiannopoulos [Mon, 16 May 2016 11:47:23 +0000 (13:47 +0200)] 
tests: added DTLS test suite when in session resumption

While there is already a test suite for DTLS lost packets/rearranges
it does not cover the session resumption flights. This patch
enhances the test suite with these checks.

10 years agodtls-stress: added session resumption option
Nikos Mavrogiannopoulos [Sun, 15 May 2016 08:44:42 +0000 (10:44 +0200)] 
dtls-stress: added session resumption option

This allows to perform tests on DTLS resumed sessions for
retransmitions due to lost packets.

10 years agotests: dtls: removed excessive debugging output from test
Nikos Mavrogiannopoulos [Sun, 15 May 2016 09:34:32 +0000 (11:34 +0200)] 
tests: dtls: removed excessive debugging output from test

10 years agotests: dtls-stress: corrected parsing of -d option
Nikos Mavrogiannopoulos [Sun, 15 May 2016 09:08:57 +0000 (11:08 +0200)] 
tests: dtls-stress: corrected parsing of -d option

10 years agorecord.c: removed superfluous debugging
Nikos Mavrogiannopoulos [Sun, 15 May 2016 08:49:42 +0000 (10:49 +0200)] 
record.c: removed superfluous debugging

10 years agognutls_assert_val: corrected regression from 78ee98e06c7862df38131b12083adc1a0c5eea4a
Nikos Mavrogiannopoulos [Sun, 15 May 2016 08:40:38 +0000 (10:40 +0200)] 
gnutls_assert_val: corrected regression from 78ee98e06c7862df38131b12083adc1a0c5eea4a

10 years agognutls_assert_val: was modified to be in line with gnutls_assert()
Nikos Mavrogiannopoulos [Sun, 15 May 2016 07:30:02 +0000 (09:30 +0200)] 
gnutls_assert_val: was modified to be in line with gnutls_assert()

10 years ago.gitlab-ci.yml: added new build target without SSL 3.0
Nikos Mavrogiannopoulos [Sat, 14 May 2016 11:03:27 +0000 (13:03 +0200)] 
.gitlab-ci.yml: added new build target without SSL 3.0

Also disable SSL3.0 in the minimal library compilation.

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

10 years agotests: added key exchange checks for all DTLS protocols
Nikos Mavrogiannopoulos [Sat, 14 May 2016 09:57:47 +0000 (11:57 +0200)] 
tests: added key exchange checks for all DTLS protocols

10 years agodoc: prefer the usage of VERS-ALL in documentation
Nikos Mavrogiannopoulos [Sat, 14 May 2016 09:48:45 +0000 (11:48 +0200)] 
doc: prefer the usage of VERS-ALL in documentation

10 years agoext master secret: don't enable when SSL 3.0 is the only protocol
Nikos Mavrogiannopoulos [Sat, 14 May 2016 09:47:18 +0000 (11:47 +0200)] 
ext master secret: don't enable when SSL 3.0 is the only protocol

That is on server side only. On client side this logic was already
present.

10 years agotests: separated the key exchange checks
Nikos Mavrogiannopoulos [Sat, 14 May 2016 09:18:44 +0000 (11:18 +0200)] 
tests: separated the key exchange checks

That is introduce separate checks for each key exchange on every TLS version.

10 years agodoc: mention the TLS 1.2 restriction of sign algo functions
Nikos Mavrogiannopoulos [Sat, 14 May 2016 09:12:56 +0000 (11:12 +0200)] 
doc: mention the TLS 1.2 restriction of sign algo functions

10 years agoAllow for conditional compilation of SSL 3.0 protocol
Nikos Mavrogiannopoulos [Sat, 14 May 2016 08:28:49 +0000 (10:28 +0200)] 
Allow for conditional compilation of SSL 3.0 protocol

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

Resolves #93

10 years agoMakefile.am: include renamed files into distribution
Nikos Mavrogiannopoulos [Sat, 14 May 2016 06:03:48 +0000 (08:03 +0200)] 
Makefile.am: include renamed files into distribution

10 years agoREADME-alpha.md: refer to CONTRIBUTING.md [ci skip]
Nikos Mavrogiannopoulos [Fri, 13 May 2016 22:39:23 +0000 (00:39 +0200)] 
README-alpha.md: refer to CONTRIBUTING.md [ci skip]

10 years agoLICENSE: mention that documentation is under GNU FDL
Nikos Mavrogiannopoulos [Fri, 13 May 2016 22:38:59 +0000 (00:38 +0200)] 
LICENSE: mention that documentation is under GNU FDL

10 years agoLeave only LICENSE in the root directory and move licenses to doc/
Nikos Mavrogiannopoulos [Fri, 13 May 2016 22:35:45 +0000 (00:35 +0200)] 
Leave only LICENSE in the root directory and move licenses to doc/

10 years agoAdded a LICENSE file [ci skip]
Nikos Mavrogiannopoulos [Fri, 13 May 2016 22:13:44 +0000 (00:13 +0200)] 
Added a LICENSE file [ci skip]

10 years agoMoved coding style and contribution guide to CONTRIBUTION.md
Nikos Mavrogiannopoulos [Fri, 13 May 2016 22:31:43 +0000 (00:31 +0200)] 
Moved coding style and contribution guide to CONTRIBUTION.md

This aligns with gitlab's web interface.

10 years agotests: include unistd.h in tests which call _exit()
Nikos Mavrogiannopoulos [Fri, 13 May 2016 18:39:11 +0000 (20:39 +0200)] 
tests: include unistd.h in tests which call _exit()

10 years agotests: simplified server launching process
Nikos Mavrogiannopoulos [Fri, 13 May 2016 11:41:53 +0000 (13:41 +0200)] 
tests: simplified server launching process

Also attempt to use a new port on every started server and
added a waiting period for the port to become re-usable.

10 years agotests: avoid calling exit() from signal handlers
Nikos Mavrogiannopoulos [Fri, 13 May 2016 09:28:51 +0000 (11:28 +0200)] 
tests: avoid calling exit() from signal handlers

10 years agomemmem.m4: don't call exit() from signal handler
Nikos Mavrogiannopoulos [Fri, 13 May 2016 09:16:58 +0000 (11:16 +0200)] 
memmem.m4: don't call exit() from signal handler

10 years agotests: enhance SNI checking with invalid UTF8 and embedded NULL case
Nikos Mavrogiannopoulos [Thu, 12 May 2016 09:24:03 +0000 (11:24 +0200)] 
tests: enhance SNI checking with invalid UTF8 and embedded NULL case

10 years agoIntroduce _gnutls_server_name_set_raw
Nikos Mavrogiannopoulos [Thu, 12 May 2016 09:22:51 +0000 (11:22 +0200)] 
Introduce _gnutls_server_name_set_raw

This is an internal function intended for testing, which performs
the same as gnutls_server_name_set() but without any UTF8 conversions
or other checks in the input. It is intended to be used with raw data.

10 years agoerrors: include GNUTLS_E_IDNA_ERROR to the list
Nikos Mavrogiannopoulos [Thu, 12 May 2016 09:21:16 +0000 (11:21 +0200)] 
errors: include GNUTLS_E_IDNA_ERROR to the list

10 years agoserver_name: only save the supported server names in the session
Nikos Mavrogiannopoulos [Thu, 12 May 2016 08:58:58 +0000 (10:58 +0200)] 
server_name: only save the supported server names in the session

Invalid server names with embedded nulls and unsupported types
are not saved.

10 years agognutls_server_name_get: mention GNUTLS_E_IDNA_ERROR being returned
Nikos Mavrogiannopoulos [Thu, 12 May 2016 08:37:56 +0000 (10:37 +0200)] 
gnutls_server_name_get: mention GNUTLS_E_IDNA_ERROR being returned