gnutls:gnutls.git
9 years agoRemoved LGPLv3 gnulib components.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 22:13:37 +0000 (00:13 +0200)]
Removed LGPLv3 gnulib components.

This removes the gnulib iconv, and uses libc or libiconv if needed.

9 years agoreleased 3.2.3pre0
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 21:57:47 +0000 (23:57 +0200)]
released 3.2.3pre0

9 years agoAdded new functions
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 21:53:19 +0000 (23:53 +0200)]
Added new functions

9 years agobumped version
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 21:52:29 +0000 (23:52 +0200)]
bumped version

9 years agouse common macros to calculate the overhead.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 09:05:00 +0000 (11:05 +0200)]
use common macros to calculate the overhead.

9 years agoThe after handshake function is now called before epoch change.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 07:47:23 +0000 (09:47 +0200)]
The after handshake function is now called before epoch change.

This allows enabling certain features, such as the new record padding, prior to exchanging finished messages.

9 years agotest sending and receiving the maximum allowed TLS buffer size.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 07:22:00 +0000 (09:22 +0200)]
test sending and receiving the maximum allowed TLS buffer size.

9 years agocorrected guile-site-dir option. Patch by Steve Erhart.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 07:06:45 +0000 (09:06 +0200)]
corrected guile-site-dir option. Patch by Steve Erhart.

9 years agoDo not count pad and MAC as received data.
Nikos Mavrogiannopoulos [Sat, 27 Jul 2013 11:24:42 +0000 (13:24 +0200)]
Do not count pad and MAC as received data.

9 years agosimplified decrypted data allocation.
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 18:10:55 +0000 (20:10 +0200)]
simplified decrypted data allocation.

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 16:12:59 +0000 (18:12 +0200)]
doc update

9 years agosmall optimizations.
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 15:11:43 +0000 (17:11 +0200)]
small optimizations.

9 years agoWhen in compatibility mode allow for larger record sizes than the maximum.
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 15:08:19 +0000 (17:08 +0200)]
When in compatibility mode allow for larger record sizes than the maximum.

9 years agoUpdated mini test.
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 04:50:17 +0000 (06:50 +0200)]
Updated mini test.

9 years agoApplied Bruce Korb's fix on unacceptable chars.
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 21:14:20 +0000 (23:14 +0200)]
Applied Bruce Korb's fix on unacceptable chars.

9 years agoRevert "Ignore non-ascii characters in configuration file."
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 21:14:08 +0000 (23:14 +0200)]
Revert "Ignore non-ascii characters in configuration file."

This reverts commit b973840f5dff9924108af9574bdee1064e06fb88.

9 years agotest also the number of ciphers.
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 11:42:31 +0000 (13:42 +0200)]
test also the number of ciphers.

9 years agoAdded helper functions to export the available ciphers in a priority structure
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 11:36:46 +0000 (13:36 +0200)]
Added helper functions to export the available ciphers in a priority structure

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 11:30:12 +0000 (13:30 +0200)]
doc update

9 years agoAdded a test that checks whether the priorities behave as expected (depends on the...
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 11:28:08 +0000 (13:28 +0200)]
Added a test that checks whether the priorities behave as expected (depends on the supported ciphersuite numbers)

9 years agoWhen adding a bulk of priorities make sure they don't replace the whole list. Reporte...
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 11:27:52 +0000 (13:27 +0200)]
When adding a bulk of priorities make sure they don't replace the whole list. Reported by Stefan Buehler.

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 10:16:45 +0000 (12:16 +0200)]
doc update

9 years agoupdated doc
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 10:15:20 +0000 (12:15 +0200)]
updated doc

9 years agoIgnore non-ascii characters in configuration file.
Nikos Mavrogiannopoulos [Wed, 24 Jul 2013 05:15:10 +0000 (07:15 +0200)]
Ignore non-ascii characters in configuration file.

This is a quick fix for http://lists.infradead.org/pipermail/openconnect-devel/2013-July/001126.html

9 years agomake sure that the .info files are as new as the pdfs and html.
Nikos Mavrogiannopoulos [Tue, 23 Jul 2013 21:06:16 +0000 (23:06 +0200)]
make sure that the .info files are as new as the pdfs and html.

9 years agoX.509 server example updated to include OCSP stapling
Nikos Mavrogiannopoulos [Fri, 19 Jul 2013 18:42:14 +0000 (20:42 +0200)]
X.509 server example updated to include OCSP stapling

9 years agoavoid leaking a buffer element when _gnutls_stream_read returns 0
Matt Whitlock [Tue, 16 Jul 2013 11:24:10 +0000 (07:24 -0400)]
avoid leaking a buffer element when _gnutls_stream_read returns 0

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 19 Jul 2013 08:44:16 +0000 (10:44 +0200)]
doc update

9 years agognutls priority string parsing bug fix
Stefan Bühler [Wed, 17 Jul 2013 21:51:51 +0000 (23:51 +0200)]
gnutls priority string parsing bug fix

Fix priority string parsing (example: "NONE:+MAC-ALL:-SHA1:+SHA1" misses SHA1 and has MD5 twice)

prio_remove doesn't zero the removed element, prio_add (and perhaps
other functions) assumes the list to be zero terminated.

Make prio_remove zero the element at the end, and use the actual length
of the list in prio_add.

Relying on the trailing zero will fail if the list is full, and might
lead to invalid memory accesses as the loop won't stop until it finds
either the algorithm identifier or 0.

9 years agoDisable tests that use socketpair on _WIN32.
Adam Sampson [Wed, 17 Jul 2013 12:44:03 +0000 (13:44 +0100)]
Disable tests that use socketpair on _WIN32.

socketpair isn't provided on Windows, so these tests should just exit
77.

Note that resume-dtls.c already had a guard like this -- I've rewritten
it to match the others, but socketpair (presumably!) isn't the only
reason that test is disabled on Win32.

Signed-off-by: Adam Sampson <ats@offog.org>
9 years agoUse socketpair() rather than TCP connections.
Adam Sampson [Tue, 16 Jul 2013 15:22:37 +0000 (16:22 +0100)]
Use socketpair() rather than TCP connections.

Besides simplifying the code, this also makes it possible to run "make check"
in parallel -- previously this didn't work because several tests were trying to
bind the same port.

Signed-off-by: Adam Sampson <ats@offog.org>
9 years agoDetect socket() error responses correctly.
Adam Sampson [Tue, 16 Jul 2013 14:16:22 +0000 (15:16 +0100)]
Detect socket() error responses correctly.

The code was testing the wrong variable...

Signed-off-by: Adam Sampson <ats@offog.org>
9 years agoAvoid depending on hash order in gdoc.
Adam Sampson [Tue, 16 Jul 2013 13:17:18 +0000 (14:17 +0100)]
Avoid depending on hash order in gdoc.

Previously, gdoc had a hash of regexp replacements for each output
format, and applied the replacements in the order that "keys" returned
for the hash. However, not all orders are safe -- and now that Perl 5.18
randomises hash order per-process, it only worked sometimes!

For example, this order is OK:

'is a #gnutls_session_t structure.'
'\@([A-Za-z0-9_]+)\s*' -> 'is a #gnutls_session_t structure.'
'\%([A-Za-z0-9_]+)' -> 'is a #gnutls_session_t structure.'
'\#([A-Za-z0-9_]+)' -> 'is a @code{gnutls_session_t}  structure.'
'([A-Za-z0-9_]+\(\))' -> 'is a @code{gnutls_session_t}  structure.'

This one, however, winds up producing invalid texinfo:

'is a #gnutls_session_t structure.'
'\%([A-Za-z0-9_]+)' -> 'is a #gnutls_session_t structure.'
'([A-Za-z0-9_]+\(\))' -> 'is a #gnutls_session_t structure.'
'\#([A-Za-z0-9_]+)' -> 'is a @code{gnutls_session_t}  structure.'
'\@([A-Za-z0-9_]+)\s*' -> 'is a  @code{code} {gnutls_session_t}  structure.'

This patch turns the hash into a list, so the replacements will always
be done in the intended order.

Signed-off-by: Adam Sampson <ats@offog.org>
9 years agoRun DTLS tests under reliable transports to avoid unexpected packet loss.
Nikos Mavrogiannopoulos [Mon, 15 Jul 2013 17:36:16 +0000 (19:36 +0200)]
Run DTLS tests under reliable transports to avoid unexpected packet loss.

9 years agoLink with librt when needed. Reported by Joern Clausen.
Nikos Mavrogiannopoulos [Mon, 15 Jul 2013 09:55:37 +0000 (11:55 +0200)]
Link with librt when needed. Reported by Joern Clausen.

9 years agoeliminated the need for the additional version variable.
Nikos Mavrogiannopoulos [Mon, 15 Jul 2013 09:51:51 +0000 (11:51 +0200)]
eliminated the need for the additional version variable.

9 years agoupdated w32 makefile
Nikos Mavrogiannopoulos [Sun, 14 Jul 2013 11:53:36 +0000 (13:53 +0200)]
updated w32 makefile

9 years agoupdated gnulib
Nikos Mavrogiannopoulos [Sun, 14 Jul 2013 11:52:58 +0000 (13:52 +0200)]
updated gnulib

9 years agoreleased 3.2.2 gnutls_3_2_2
Nikos Mavrogiannopoulos [Sun, 14 Jul 2013 08:59:08 +0000 (10:59 +0200)]
released 3.2.2

9 years agodoc update
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:27:13 +0000 (12:27 +0200)]
doc update

9 years agotypo fix
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:20:13 +0000 (12:20 +0200)]
typo fix

9 years agognutls-cli -l prints the supported digest algorithms as well.
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:04:01 +0000 (12:04 +0200)]
gnutls-cli -l prints the supported digest algorithms as well.

9 years agocorrected return value.
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:00:47 +0000 (12:00 +0200)]
corrected return value.

9 years agoCheck for nanosleep in librt, when not in libc. Reported by Joern Clausen.
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 08:59:04 +0000 (10:59 +0200)]
Check for nanosleep in librt, when not in libc. Reported by Joern Clausen.

9 years agocorrected typo
Nikos Mavrogiannopoulos [Fri, 12 Jul 2013 18:35:05 +0000 (20:35 +0200)]
corrected typo

9 years agoupdated
Nikos Mavrogiannopoulos [Fri, 12 Jul 2013 14:55:26 +0000 (16:55 +0200)]
updated

9 years agotry to reduce memory in internal structure
Nikos Mavrogiannopoulos [Thu, 11 Jul 2013 21:29:34 +0000 (23:29 +0200)]
try to reduce memory in internal structure

9 years agoAllow hooks to be called before or after generation/receiving.
Nikos Mavrogiannopoulos [Thu, 11 Jul 2013 21:03:35 +0000 (23:03 +0200)]
Allow hooks to be called before or after generation/receiving.

9 years agoRevert "simplified hook function, to apply only to post-processing or generation...
Nikos Mavrogiannopoulos [Thu, 11 Jul 2013 20:53:34 +0000 (22:53 +0200)]
Revert "simplified hook function, to apply only to post-processing or generation of messages."

This reverts commit 7b14a8217b78aaf3367d13181237bf937292f5ba.

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 11 Jul 2013 20:50:07 +0000 (22:50 +0200)]
doc update

9 years agoEliminate reset from cryptodev hashes and mac
Gustavo Zacarias [Wed, 10 Jul 2013 20:26:19 +0000 (17:26 -0300)]
Eliminate reset from cryptodev hashes and mac

It wasn't done in 73ec74c2 and 6f0ecbf4 for cryptodev causing build
failures.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 10:17:07 +0000 (12:17 +0200)]
doc update

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 10:13:06 +0000 (12:13 +0200)]
doc update

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 07:03:55 +0000 (09:03 +0200)]
doc update

9 years agomake sure that the hook function is always called.
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 06:50:24 +0000 (08:50 +0200)]
make sure that the hook function is always called.

9 years agoNew functions added
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 06:45:47 +0000 (08:45 +0200)]
New functions added

9 years agobumped version
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 06:43:16 +0000 (08:43 +0200)]
bumped version

9 years agoWhen resuming a session send only the mandatory extensions.
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 07:31:21 +0000 (09:31 +0200)]
When resuming a session send only the mandatory extensions.

That will make server behavior to conform to TLS RFC. Reported by Peter Dettman.

9 years agocorrected typo
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 07:26:50 +0000 (09:26 +0200)]
corrected typo

9 years agodoc update
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 06:42:17 +0000 (08:42 +0200)]
doc update

9 years agoInclude MKI size in size calculations for the extension.
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 06:39:51 +0000 (08:39 +0200)]
Include MKI size in size calculations for the extension.

This prevents a parsing error when MKI is being used.
Reported by Gábor Tatárka.

9 years agoFix for NetBSD systems that do not have CLOCK_PROCESS_CPUTIME_ID. Patch by Thomas...
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 06:34:44 +0000 (08:34 +0200)]
Fix for NetBSD systems that do not have CLOCK_PROCESS_CPUTIME_ID. Patch by Thomas Klausner.

9 years agomake sure that a valid number of days is entered
Nikos Mavrogiannopoulos [Sat, 6 Jul 2013 14:48:06 +0000 (16:48 +0200)]
make sure that a valid number of days is entered

9 years agoAdded DCO
Nikos Mavrogiannopoulos [Fri, 5 Jul 2013 10:58:12 +0000 (12:58 +0200)]
Added DCO

9 years agoadded new functions
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:51:46 +0000 (23:51 +0200)]
added new functions

9 years agosimplified structure
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:27:25 +0000 (23:27 +0200)]
simplified structure

9 years agocorrected issue in client hello verify.
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:26:50 +0000 (23:26 +0200)]
corrected issue in client hello verify.

9 years agoAdded helper functions for digests.
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:03:59 +0000 (23:03 +0200)]
Added helper functions for digests.

9 years agopkcs11: Use the correct attribute length for CKA_TRUSTED
Stef Walter [Thu, 4 Jul 2013 14:15:03 +0000 (16:15 +0200)]
pkcs11: Use the correct attribute length for CKA_TRUSTED

CKA_TRUSTED is a CK_BBOOL value in PKCS#11. Since object searches
are done with the attribute byte values, we need to get the length
exactly right.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoupdated for new callback format
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 17:42:04 +0000 (19:42 +0200)]
updated for new callback format

9 years agocorrected typo
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 16:23:51 +0000 (18:23 +0200)]
corrected typo

9 years agomore files to ignore
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 06:34:15 +0000 (08:34 +0200)]
more files to ignore

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 06:31:40 +0000 (08:31 +0200)]
doc update

9 years agowhen removing a cipher priority, make sure the order is kept
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 06:29:26 +0000 (08:29 +0200)]
when removing a cipher priority, make sure the order is kept

9 years agognutls_record_overhead_size2 -> gnutls_est_record_overhead_size
Nikos Mavrogiannopoulos [Sun, 30 Jun 2013 07:27:09 +0000 (09:27 +0200)]
gnutls_record_overhead_size2 -> gnutls_est_record_overhead_size

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 1 Jul 2013 09:44:54 +0000 (11:44 +0200)]
doc update

9 years agoSync with TP.
Nikos Mavrogiannopoulos [Sat, 29 Jun 2013 09:29:09 +0000 (11:29 +0200)]
Sync with TP.

9 years agoguile: Keep a weak reference on objects aggregated by other objects.
Ludovic Courtès [Thu, 27 Jun 2013 22:42:44 +0000 (00:42 +0200)]
guile: Keep a weak reference on objects aggregated by other objects.

Before, in cases such as `set-anonymous-server-dh-parameters!' where the
C object beneath CRED keeps a pointer to the C object beneath DH_PARAMS,
DH_PARAMS could be garbage-collected before CRED, leading to the
destruction of the underlying C object.

Reported by Nikos Mavrogiannopoulos <nmav@gnutls.org>.

9 years agoguile: tests: Use `port->fdes' rather than `fileno'.
Ludovic Courtès [Thu, 27 Jun 2013 22:39:35 +0000 (00:39 +0200)]
guile: tests: Use `port->fdes' rather than `fileno'.

This has no practical impact, but it's a better way to express that we
don't want the file descriptors closed behind our back.

9 years agoremoved unsupported RSA-EXPORT
Nikos Mavrogiannopoulos [Wed, 26 Jun 2013 21:30:29 +0000 (23:30 +0200)]
removed unsupported RSA-EXPORT

9 years agodocumented private extensions
Nikos Mavrogiannopoulos [Wed, 26 Jun 2013 21:28:16 +0000 (23:28 +0200)]
documented private extensions

9 years agosimplified hook function, to apply only to post-processing or generation of messages.
Nikos Mavrogiannopoulos [Wed, 26 Jun 2013 07:43:05 +0000 (09:43 +0200)]
simplified hook function, to apply only to post-processing or generation of messages.

9 years agodocumented dtls behavior.
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 21:13:13 +0000 (23:13 +0200)]
documented dtls behavior.

9 years agoenforce the maximum TLS size when setting MTU
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 21:02:45 +0000 (23:02 +0200)]
enforce the maximum TLS size when setting MTU

9 years agomake sure that no DTLS MTU size can exceed 2^14.
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 21:02:15 +0000 (23:02 +0200)]
make sure that no DTLS MTU size can exceed 2^14.

9 years agoRevert "Add nettle dependencies to libcrypto.la"
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 17:05:19 +0000 (19:05 +0200)]
Revert "Add nettle dependencies to libcrypto.la"

This reverts commit f3ef68f4f79434fadc3f28c649744e57f3eef99b.

9 years agoAdded test to verify whether DTLS layer will send GNUTLS_E_LARGE_PACKET on large...
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 16:24:37 +0000 (18:24 +0200)]
Added test to verify whether DTLS layer will send GNUTLS_E_LARGE_PACKET on large packets

9 years agoSync with TP.
Nikos Mavrogiannopoulos [Tue, 18 Jun 2013 06:44:21 +0000 (08:44 +0200)]
Sync with TP.

9 years agocheck for zero values when import DH parameters.
Nikos Mavrogiannopoulos [Sat, 15 Jun 2013 14:38:10 +0000 (16:38 +0200)]
check for zero values when import DH parameters.

9 years agoSync with TP.
Nikos Mavrogiannopoulos [Sat, 15 Jun 2013 08:28:34 +0000 (10:28 +0200)]
Sync with TP.

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 14 Jun 2013 14:23:39 +0000 (16:23 +0200)]
doc update

9 years agoAdded gnutls_handshake_set_hook_function() to allow hooks on arbitrary handshake...
Nikos Mavrogiannopoulos [Fri, 14 Jun 2013 13:31:05 +0000 (15:31 +0200)]
Added gnutls_handshake_set_hook_function() to allow hooks on arbitrary handshake messages.

9 years agoadded BCC to avoid forgetting it in the future
Nikos Mavrogiannopoulos [Thu, 13 Jun 2013 16:40:20 +0000 (18:40 +0200)]
added BCC to avoid forgetting it in the future

9 years agodoc update
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 23:04:53 +0000 (01:04 +0200)]
doc update

9 years agoavoid the introduction of a new function to disable replay protection.
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 23:04:07 +0000 (01:04 +0200)]
avoid the introduction of a new function to disable replay protection.

9 years agochanged port to avoid conflicts
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:31:53 +0000 (19:31 +0200)]
changed port to avoid conflicts

9 years agosmall update
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:25:30 +0000 (19:25 +0200)]
small update

9 years agoremoved unused var
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:24:18 +0000 (19:24 +0200)]
removed unused var

9 years agoupdated tpmtool auto-gen'ed files
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:23:38 +0000 (19:23 +0200)]
updated tpmtool auto-gen'ed files

9 years agoAdded gnutls_record_overhead_size() and Added gnutls_record_overhead_size2().
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:22:32 +0000 (19:22 +0200)]
Added gnutls_record_overhead_size() and Added gnutls_record_overhead_size2().