]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agodoc update
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:38:35 +0000 (11:38 +0200)] 
doc update

9 years agognutls_x509_cidr_to_rfc5280: removed double semi-colon
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:38:08 +0000 (11:38 +0200)] 
gnutls_x509_cidr_to_rfc5280: removed double semi-colon

9 years agoremoved c-ctype.h from files that wasn't used at
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:37:32 +0000 (11:37 +0200)] 
removed c-ctype.h from files that wasn't used at

9 years agoconfigure.ac: quote parameters when needed
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:36:27 +0000 (11:36 +0200)] 
configure.ac: quote parameters when needed

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

9 years agoPOTFILES: added libdane files
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:34:53 +0000 (11:34 +0200)] 
POTFILES: added libdane files

9 years agodoc update
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:25:15 +0000 (11:25 +0200)] 
doc update

9 years agotests/tools: avoid non-null check before free()
Nikos Mavrogiannopoulos [Sun, 11 Sep 2016 09:23:15 +0000 (11:23 +0200)] 
tests/tools: avoid non-null check before free()

9 years agolatex manual: added backwards compatibility options
Nikos Mavrogiannopoulos [Sat, 10 Sep 2016 21:02:13 +0000 (23:02 +0200)] 
latex manual: added backwards compatibility options

9 years ago.gitlab-ci.yml: windows DLL builds now include all required dependencies
Nikos Mavrogiannopoulos [Sat, 10 Sep 2016 09:04:51 +0000 (11:04 +0200)] 
.gitlab-ci.yml: windows DLL builds now include all required dependencies

Also improved naming conventions for builds

9 years agoinet_ntop4: casted signed/unsigned comparison
Nikos Mavrogiannopoulos [Sat, 10 Sep 2016 05:49:59 +0000 (07:49 +0200)] 
inet_ntop4: casted signed/unsigned comparison

9 years agosystem.h: undefine macros before defining them
Nikos Mavrogiannopoulos [Sat, 10 Sep 2016 05:48:22 +0000 (07:48 +0200)] 
system.h: undefine macros before defining them

9 years ago_gnutls_fbase64_decode: use memsub macro instead of casts
Nikos Mavrogiannopoulos [Sat, 10 Sep 2016 05:44:21 +0000 (07:44 +0200)] 
_gnutls_fbase64_decode: use memsub macro instead of casts

9 years agognutls-cli: use gnutls_set_default_priority if no priorities are given
Nikos Mavrogiannopoulos [Fri, 9 Sep 2016 13:04:52 +0000 (15:04 +0200)] 
gnutls-cli: use gnutls_set_default_priority if no priorities are given

9 years agognutls-serv: removed '...' from documentation
Nikos Mavrogiannopoulos [Fri, 9 Sep 2016 13:01:05 +0000 (15:01 +0200)] 
gnutls-serv: removed '...' from documentation

That caused caused problems in generated manpage.

9 years agoconfigure: better document the random generator variant used
Nikos Mavrogiannopoulos [Fri, 9 Sep 2016 11:59:05 +0000 (13:59 +0200)] 
configure: better document the random generator variant used

9 years agoreleased 3.5.4 gnutls_3_5_4
Nikos Mavrogiannopoulos [Thu, 8 Sep 2016 05:30:33 +0000 (07:30 +0200)] 
released 3.5.4

9 years ago.gitlab-ci.yml: corrected wrong operation in minimal build
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 20:44:08 +0000 (22:44 +0200)] 
.gitlab-ci.yml: corrected wrong operation in minimal build

9 years agoupdated auto-generated files
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 20:25:47 +0000 (22:25 +0200)] 
updated auto-generated files

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 20:20:10 +0000 (22:20 +0200)] 
doc update

9 years agobumped versions
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 11:17:56 +0000 (13:17 +0200)] 
bumped versions

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 11:16:41 +0000 (13:16 +0200)] 
doc update

9 years agotests: do not run pkcs12-utf8 under windows
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 07:30:18 +0000 (09:30 +0200)] 
tests: do not run pkcs12-utf8 under windows

This test required to pass UTF8 data under command line, and that
doesn't seem to work under windows.

9 years ago_gnutls_ucs2_to_utf8: corrected use of WideCharToMultiByte in windows
Nikos Mavrogiannopoulos [Wed, 7 Sep 2016 06:45:24 +0000 (08:45 +0200)] 
_gnutls_ucs2_to_utf8: corrected use of WideCharToMultiByte in windows

9 years agotests: added debugging info in conv-utf8
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 16:45:17 +0000 (18:45 +0200)] 
tests: added debugging info in conv-utf8

9 years agotests: don't build cmocka tests with libutils - they conflict
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 14:45:19 +0000 (16:45 +0200)] 
tests: don't build cmocka tests with libutils - they conflict

9 years ago.gitlab-ci.yml: keep config.log in windows builds
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 13:58:59 +0000 (15:58 +0200)] 
.gitlab-ci.yml: keep config.log in windows builds

9 years ago.gitlab-ci.yml: corrected typo for libidn installation in windows64
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 13:14:01 +0000 (15:14 +0200)] 
.gitlab-ci.yml: corrected typo for libidn installation in windows64

9 years ago.gitlab-ci.yml: install our internal cmocka for windows
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 12:52:54 +0000 (14:52 +0200)] 
.gitlab-ci.yml: install our internal cmocka for windows

9 years agotests: added unit tests of _gnutls_utf8_to_ucs2 and _gnutls_ucs2_to_utf8
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 11:18:10 +0000 (13:18 +0200)] 
tests: added unit tests of _gnutls_utf8_to_ucs2 and _gnutls_ucs2_to_utf8

9 years agolibgnutls.map: export _gnutls_utf8_to_ucs2 and _gnutls_ucs2_to_utf8 for testing
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 09:40:36 +0000 (11:40 +0200)] 
libgnutls.map: export _gnutls_utf8_to_ucs2 and _gnutls_ucs2_to_utf8 for testing

9 years agopkcs12: enhanced to allow encrypting using UCS2 passwords
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 12:49:07 +0000 (14:49 +0200)] 
pkcs12: enhanced to allow encrypting using UCS2 passwords

That is use _gnutls_utf8_to_ucs2() to convert the provided
password to UCS2.

9 years ago_gnutls_ucs2_to_utf8: fixed null termination check in windows code
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 13:56:19 +0000 (15:56 +0200)] 
_gnutls_ucs2_to_utf8: fixed null termination check in windows code

9 years agoAdded _gnutls_utf8_to_ucs2()
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 12:48:24 +0000 (14:48 +0200)] 
Added _gnutls_utf8_to_ucs2()

This function allows to convert between UTF8 to UCS2 big-endian.

9 years agotests: added tests for PKCS#12 decoding with UTF8 passwords
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 12:23:13 +0000 (14:23 +0200)] 
tests: added tests for PKCS#12 decoding with UTF8 passwords

9 years agopkcs7 encryption: corrected memory leaks
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 12:34:07 +0000 (14:34 +0200)] 
pkcs7 encryption: corrected memory leaks

9 years agoMakefile: local-code-coverage-output always succeeds
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 12:54:30 +0000 (14:54 +0200)] 
Makefile: local-code-coverage-output always succeeds

9 years agox509: Adjust IP name constraints behavior
Martin Ukrop [Fri, 2 Sep 2016 08:30:54 +0000 (10:30 +0200)] 
x509: Adjust IP name constraints behavior

- Modified IPv4/IPv6 interaction in name constraints -- IPv4 and IPv6 no have empty intersection (previously: were treated independently).
- Current behavior is more conservative -- in case of IPv4 constraint cert, subcerts will not be able to have IPv6 addresses.
- Tests updated accordingly.
- Behavior now matches NSS.

9 years agotests: added checks to verify behavior in writing pkcs11 objects
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 07:05:59 +0000 (09:05 +0200)] 
tests: added checks to verify behavior in writing pkcs11 objects

That is, verify that private keys are marked as private by default,
and public objects are marked as non-private by default.

9 years agop11tool: eliminated memory leak in --list options
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 07:00:20 +0000 (09:00 +0200)] 
p11tool: eliminated memory leak in --list options

9 years agop11tool: do not mark written objects as private by default
Nikos Mavrogiannopoulos [Tue, 6 Sep 2016 06:49:01 +0000 (08:49 +0200)] 
p11tool: do not mark written objects as private by default

That is, when --mark-private or --no-mark-private are not specified,
set non-private for public objects and private for private ones.

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 16:16:57 +0000 (18:16 +0200)] 
doc update

9 years agominitasn1: updated to latest git version
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 16:15:25 +0000 (18:15 +0200)] 
minitasn1: updated to latest git version

9 years ago_gnutls_encode_ber_rs_raw: simplified
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 16:08:50 +0000 (18:08 +0200)] 
_gnutls_encode_ber_rs_raw: simplified

That is, use a single allocation for temporary data.

9 years ago.gitlab-ci.yml: use fedora24 with address sanitizer
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 11:05:17 +0000 (13:05 +0200)] 
.gitlab-ci.yml: use fedora24 with address sanitizer

The fix in fbb9618b25b77c65e24a6ce224d53bc9a0b81457 addresses
the problems with asan in fedora24.

9 years agotests: use LSAN_OPTIONS instead of ASAN_OPTIONS
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 11:01:31 +0000 (13:01 +0200)] 
tests: use LSAN_OPTIONS instead of ASAN_OPTIONS

New versions of address sanitizer do not parse this file
otherwise.

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 07:48:24 +0000 (09:48 +0200)] 
doc update

9 years agotests: corrected detection of 64-bit systems in softhsm.h
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 07:41:30 +0000 (09:41 +0200)] 
tests: corrected detection of 64-bit systems in softhsm.h

9 years agotests: added check for PKCS#11 signature validity
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 07:37:51 +0000 (09:37 +0200)] 
tests: added check for PKCS#11 signature validity

That is, tests whether our generated DSASignatureValue with PKCS#11
contains r, s values that are non-negative, i.e., are zero padded
when necessary. This utilizes _gnutls_decode_ber_rs_raw().

9 years agoIntroduced helper function _gnutls_decode_ber_rs_raw()
Nikos Mavrogiannopoulos [Mon, 5 Sep 2016 07:29:24 +0000 (09:29 +0200)] 
Introduced helper function _gnutls_decode_ber_rs_raw()

9 years ago_gnutls_encode_ber_rs_raw: zero-pad values when necessary
Nikos Mavrogiannopoulos [Sat, 3 Sep 2016 09:39:57 +0000 (11:39 +0200)] 
_gnutls_encode_ber_rs_raw: zero-pad values when necessary

This addresses issue when encoding values obtained via
PKCS#11 which may not be necessarily padded.

Resolves #122

9 years agotests: template-test: use uniform way to detect 32-bit systems
Nikos Mavrogiannopoulos [Sat, 3 Sep 2016 08:23:49 +0000 (10:23 +0200)] 
tests: template-test: use uniform way to detect 32-bit systems

9 years ago.gitlab-ci.yml: use the gitlab.com shared runners
Nikos Mavrogiannopoulos [Thu, 1 Sep 2016 10:35:55 +0000 (12:35 +0200)] 
.gitlab-ci.yml: use the gitlab.com shared runners

This removes the need to administer custom runners (except for
the FreeBSD runner which cannot run under Linux), makes the
testing on other platforms such as Debian simpler, and allows
merge requests to pass through the CI.

9 years agoImport DTLS sliding window validation from OpenConnect ESP code
David Woodhouse [Tue, 30 Aug 2016 14:26:27 +0000 (15:26 +0100)] 
Import DTLS sliding window validation from OpenConnect ESP code

In this implementation, the end of the sliding window is always advanced
to the latest received packet, and we accept up to 64 packets before
that one. We no longer refuse to accept packets because they are
*too* far ahead of what we've already seen.

Some of the test cases are fixed up accordingly.

This matches the code in OpenConnect esp-seqno.c at commit 314ac65.

9 years agotools: Use correct include dir with minitasn
Jussi Kukkonen [Wed, 31 Aug 2016 08:04:06 +0000 (11:04 +0300)] 
tools: Use correct include dir with minitasn

This allows compiling certtool without libtasn headers.

9 years agonettle: removed unused variable in windows rng
Nikos Mavrogiannopoulos [Mon, 29 Aug 2016 12:16:16 +0000 (14:16 +0200)] 
nettle: removed unused variable in windows rng

9 years agotests: don't run danetool.sh when not compiled with dane support
Nikos Mavrogiannopoulos [Mon, 29 Aug 2016 11:52:24 +0000 (13:52 +0200)] 
tests: don't run danetool.sh when not compiled with dane support

9 years agotests: mini-dtls-record: modified expected order to account for new SW behavior
Nikos Mavrogiannopoulos [Mon, 29 Aug 2016 11:48:04 +0000 (13:48 +0200)] 
tests: mini-dtls-record: modified expected order to account for new SW behavior

9 years agodtls: ensure that the DTLS window doesn't get stalled
Nikos Mavrogiannopoulos [Mon, 29 Aug 2016 11:02:54 +0000 (13:02 +0200)] 
dtls: ensure that the DTLS window doesn't get stalled

That is ensure that it is forwarded at least one place if more than 16
packets have been received since the first one.

9 years agotests: enhance the DTLS window unit test to account for lost packets
Nikos Mavrogiannopoulos [Mon, 29 Aug 2016 11:25:23 +0000 (13:25 +0200)] 
tests: enhance the DTLS window unit test to account for lost packets

This adds tests for cases where many lost packets are encountered,
such as 50% of the packets received, as well as 3 consequent packets
being lost.

9 years agoREADME.md: added coverage report [ci skip]
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 14:52:19 +0000 (16:52 +0200)] 
README.md: added coverage report [ci skip]

9 years agognutls_pkcs12_simple_parse: set the key value to null on failure
David Woodhouse [Sun, 28 Aug 2016 20:42:34 +0000 (21:42 +0100)] 
gnutls_pkcs12_simple_parse: set the key value to null on failure

9 years agotests: added basic operational check of gnutls_ocsp_resp_get_single()
Nikos Mavrogiannopoulos [Sat, 27 Aug 2016 22:55:30 +0000 (00:55 +0200)] 
tests: added basic operational check of gnutls_ocsp_resp_get_single()

9 years agognutls_ocsp_resp_get_single: reorganized function to eliminate memory leaks
Nikos Mavrogiannopoulos [Sat, 27 Aug 2016 22:40:49 +0000 (00:40 +0200)] 
gnutls_ocsp_resp_get_single: reorganized function to eliminate memory leaks

Simplified and optimized the function operation, by removing
unecessary memory allocations, as well as eliminate memory leaks
on certain error cases.

9 years agoocsp: corrected the comparison of the serial size in OCSP response
Nikos Mavrogiannopoulos [Sat, 27 Aug 2016 15:00:22 +0000 (17:00 +0200)] 
ocsp: corrected the comparison of the serial size in OCSP response

Previously the OCSP certificate check wouldn't verify the serial length
and could succeed in cases it shouldn't.

Reported by Stefan Buehler.

9 years agotools: eliminated memory leaks in deinitialization
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 09:35:50 +0000 (11:35 +0200)] 
tools: eliminated memory leaks in deinitialization

9 years agotools: allow socket_bye() to be used for non-polite terminations
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 09:28:51 +0000 (11:28 +0200)] 
tools: allow socket_bye() to be used for non-polite terminations

9 years agotests: added suppressions.valgrind in ocsp-tests
Nikos Mavrogiannopoulos [Fri, 26 Aug 2016 09:14:19 +0000 (11:14 +0200)] 
tests: added suppressions.valgrind in ocsp-tests

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 25 Aug 2016 13:48:03 +0000 (15:48 +0200)] 
doc update

9 years agotests: added check for the decoding of pbes1-des-md5 key
Nikos Mavrogiannopoulos [Thu, 25 Aug 2016 13:46:06 +0000 (15:46 +0200)] 
tests: added check for the decoding of pbes1-des-md5 key

9 years agopkcs8: cleaned up PKCS#8 decoding from common code with PKCS#7
Nikos Mavrogiannopoulos [Thu, 25 Aug 2016 15:27:16 +0000 (17:27 +0200)] 
pkcs8: cleaned up PKCS#8 decoding from common code with PKCS#7

9 years agopkcs8: added support for decryption with PBES1-DES-CBC-MD5
Nikos Mavrogiannopoulos [Thu, 25 Aug 2016 13:40:28 +0000 (15:40 +0200)] 
pkcs8: added support for decryption with PBES1-DES-CBC-MD5

While this is a legacy (and insecure) cipher combination it is the
default output of openssl up until the 1.0.2 version. We introduce
this option to allow decrypting private keys from these versions of
openssl.

9 years agofix memleak in pkcs11_get_random
raspa0 [Thu, 25 Aug 2016 08:58:22 +0000 (10:58 +0200)] 
fix memleak in pkcs11_get_random

9 years agoocsptool: reduce memory leaks on execution
Nikos Mavrogiannopoulos [Thu, 25 Aug 2016 07:57:55 +0000 (09:57 +0200)] 
ocsptool: reduce memory leaks on execution

9 years agotests: enable ocsp-must-staple-connection check
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 12:09:13 +0000 (14:09 +0200)] 
tests: enable ocsp-must-staple-connection check

9 years agodoc: be more explicit about the usage of gnutls_global_init/deinit [ci skip]
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 14:17:20 +0000 (16:17 +0200)] 
doc: be more explicit about the usage of gnutls_global_init/deinit [ci skip]

9 years agotests: don't use piped tee in pkcs8-decode
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 12:41:33 +0000 (14:41 +0200)] 
tests: don't use piped tee in pkcs8-decode

It would prevent error codes from being detected in the tests.

9 years agoocsptool: corrected bug in session establishment
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 12:04:52 +0000 (14:04 +0200)] 
ocsptool: corrected bug in session establishment

9 years agotests: ocsp-tls-connection: no longer check for netcat; it was not needed
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 11:57:00 +0000 (13:57 +0200)] 
tests: ocsp-tls-connection: no longer check for netcat; it was not needed

9 years agotests: added decoding of key with pbes2 and SHA256 PRF
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 11:39:43 +0000 (13:39 +0200)] 
tests: added decoding of key with pbes2 and SHA256 PRF

9 years agoAdded support for decrypting PKCS#8 files which use HMAC-SHA256 as PRF
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 11:32:04 +0000 (13:32 +0200)] 
Added support for decrypting PKCS#8 files which use HMAC-SHA256 as PRF

This improves compatibility with new openssl versions.

9 years agoPorted openssl format fix from openconnect
Nikos Mavrogiannopoulos [Wed, 24 Aug 2016 08:49:13 +0000 (10:49 +0200)] 
Ported openssl format fix from openconnect

Patch by David Woodhouse

9 years agosrc/pkcs11.c: fix mech_list out-of-bounds check
raspa0 [Wed, 24 Aug 2016 06:15:03 +0000 (06:15 +0000)] 
src/pkcs11.c: fix mech_list out-of-bounds check

9 years agognutls_record_recv(): doc: push -> pull
Philippe Proulx [Mon, 15 Aug 2016 05:13:16 +0000 (01:13 -0400)] 
gnutls_record_recv(): doc: push -> pull

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
9 years agornd-linux: added check for SYS_getrandom being defined
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 14:32:34 +0000 (16:32 +0200)] 
rnd-linux: added check for SYS_getrandom being defined

This allows to compile the getrandom() code in old Linux systems
which do not have the system call defined.

9 years agolibdane: include minitasn1 headers
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 14:29:09 +0000 (16:29 +0200)] 
libdane: include minitasn1 headers

9 years agognutls-cli: do not exit if fast open is not supported
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 15:11:53 +0000 (17:11 +0200)] 
gnutls-cli: do not exit if fast open is not supported

9 years agognutls-cli: added bufferring in starttls read of packets
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 11:21:07 +0000 (13:21 +0200)] 
gnutls-cli: added bufferring in starttls read of packets

9 years agotests: added basic test of STARTTLS over FTP for gnutls-cli
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 11:34:44 +0000 (13:34 +0200)] 
tests: added basic test of STARTTLS over FTP for gnutls-cli

9 years agotests: added basic starttls functionality testing on gnutls-cli
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 07:03:41 +0000 (09:03 +0200)] 
tests: added basic starttls functionality testing on gnutls-cli

9 years agognutls-cli: exit with error code 2 on starttls errors
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 07:13:50 +0000 (09:13 +0200)] 
gnutls-cli: exit with error code 2 on starttls errors

9 years agotests: fixed fastopen.sh to operate from cmd
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 06:57:23 +0000 (08:57 +0200)] 
tests: fixed fastopen.sh to operate from cmd

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 06:47:57 +0000 (08:47 +0200)] 
doc update

9 years agognutls-cli: fixed the behavior when --starttls or --starttls-proto is given
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 06:46:04 +0000 (08:46 +0200)] 
gnutls-cli: fixed the behavior when --starttls or --starttls-proto is given

The change of moving the handshake process as part of the socket establishment
broke the starttls functionality in gnutls-cli. This change fixes that functionality.
Reported by Andreas Metzler.

9 years agoFix HANDLE_LEAK and memory leak issues.
SUMIT AGGARWAL [Fri, 19 Aug 2016 09:58:39 +0000 (11:58 +0200)] 
Fix HANDLE_LEAK and memory leak issues.

9 years agognutls-cli: print 'Handshake was completed'
Nikos Mavrogiannopoulos [Mon, 22 Aug 2016 06:18:15 +0000 (08:18 +0200)] 
gnutls-cli: print 'Handshake was completed'

The change of moving the handshake process as part of the socket
establishment, prevented the text 'Handshake was completed' from
being printed as part of a successful handshake. That message was
used by applications like gnus which use gnutls-cli. This patch
reverts that change and prints that message on successful handshakes.

9 years agotests: openpgp-certs tests were moved to cert-tests
Nikos Mavrogiannopoulos [Wed, 10 Aug 2016 12:43:03 +0000 (14:43 +0200)] 
tests: openpgp-certs tests were moved to cert-tests

9 years agognutls_key_generate: fail if the state of the library is invalid
Nikos Mavrogiannopoulos [Wed, 10 Aug 2016 12:07:03 +0000 (14:07 +0200)] 
gnutls_key_generate: fail if the state of the library is invalid

Suggested by Stephan Mueller.

9 years agotests: mini-dtls-hello-verify: ignore SIGPIPE to avoid unexpected crashes
Nikos Mavrogiannopoulos [Wed, 10 Aug 2016 11:35:33 +0000 (13:35 +0200)] 
tests: mini-dtls-hello-verify: ignore SIGPIPE to avoid unexpected crashes

Resolves: #119

9 years agognutls_safe_renegotiation_status: changed return type to unsigned
Nikos Mavrogiannopoulos [Tue, 9 Aug 2016 10:00:57 +0000 (12:00 +0200)] 
gnutls_safe_renegotiation_status: changed return type to unsigned