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.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 21:57:47 +0000 (23:57 +0200)]
released 3.2.3pre0
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 21:53:19 +0000 (23:53 +0200)]
Added new functions
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 21:52:29 +0000 (23:52 +0200)]
bumped version
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 09:05:00 +0000 (11:05 +0200)]
use common macros to calculate the overhead.
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.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 07:22:00 +0000 (09:22 +0200)]
test sending and receiving the maximum allowed TLS buffer size.
Nikos Mavrogiannopoulos [Sun, 28 Jul 2013 07:06:45 +0000 (09:06 +0200)]
corrected guile-site-dir option. Patch by Steve Erhart.
Nikos Mavrogiannopoulos [Sat, 27 Jul 2013 11:24:42 +0000 (13:24 +0200)]
Do not count pad and MAC as received data.
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 18:10:55 +0000 (20:10 +0200)]
simplified decrypted data allocation.
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 16:12:59 +0000 (18:12 +0200)]
doc update
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 15:11:43 +0000 (17:11 +0200)]
small optimizations.
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.
Nikos Mavrogiannopoulos [Fri, 26 Jul 2013 04:50:17 +0000 (06:50 +0200)]
Updated mini test.
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 21:14:20 +0000 (23:14 +0200)]
Applied Bruce Korb's fix on unacceptable chars.
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.
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 11:42:31 +0000 (13:42 +0200)]
test also the number of ciphers.
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
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 11:30:12 +0000 (13:30 +0200)]
doc update
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)
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.
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 10:16:45 +0000 (12:16 +0200)]
doc update
Nikos Mavrogiannopoulos [Thu, 25 Jul 2013 10:15:20 +0000 (12:15 +0200)]
updated doc
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
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.
Nikos Mavrogiannopoulos [Fri, 19 Jul 2013 18:42:14 +0000 (20:42 +0200)]
X.509 server example updated to include OCSP stapling
Matt Whitlock [Tue, 16 Jul 2013 11:24:10 +0000 (07:24 -0400)]
avoid leaking a buffer element when _gnutls_stream_read returns 0
Nikos Mavrogiannopoulos [Fri, 19 Jul 2013 08:44:16 +0000 (10:44 +0200)]
doc update
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.
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>
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>
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>
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>
Nikos Mavrogiannopoulos [Mon, 15 Jul 2013 17:36:16 +0000 (19:36 +0200)]
Run DTLS tests under reliable transports to avoid unexpected packet loss.
Nikos Mavrogiannopoulos [Mon, 15 Jul 2013 09:55:37 +0000 (11:55 +0200)]
Link with librt when needed. Reported by Joern Clausen.
Nikos Mavrogiannopoulos [Mon, 15 Jul 2013 09:51:51 +0000 (11:51 +0200)]
eliminated the need for the additional version variable.
Nikos Mavrogiannopoulos [Sun, 14 Jul 2013 11:53:36 +0000 (13:53 +0200)]
updated w32 makefile
Nikos Mavrogiannopoulos [Sun, 14 Jul 2013 11:52:58 +0000 (13:52 +0200)]
updated gnulib
Nikos Mavrogiannopoulos [Sun, 14 Jul 2013 08:59:08 +0000 (10:59 +0200)]
released 3.2.2
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:27:13 +0000 (12:27 +0200)]
doc update
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:20:13 +0000 (12:20 +0200)]
typo fix
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:04:01 +0000 (12:04 +0200)]
gnutls-cli -l prints the supported digest algorithms as well.
Nikos Mavrogiannopoulos [Sat, 13 Jul 2013 10:00:47 +0000 (12:00 +0200)]
corrected return value.
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.
Nikos Mavrogiannopoulos [Fri, 12 Jul 2013 18:35:05 +0000 (20:35 +0200)]
corrected typo
Nikos Mavrogiannopoulos [Fri, 12 Jul 2013 14:55:26 +0000 (16:55 +0200)]
updated
Nikos Mavrogiannopoulos [Thu, 11 Jul 2013 21:29:34 +0000 (23:29 +0200)]
try to reduce memory in internal structure
Nikos Mavrogiannopoulos [Thu, 11 Jul 2013 21:03:35 +0000 (23:03 +0200)]
Allow hooks to be called before or after generation/receiving.
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.
Nikos Mavrogiannopoulos [Thu, 11 Jul 2013 20:50:07 +0000 (22:50 +0200)]
doc update
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>
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 10:17:07 +0000 (12:17 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 10:13:06 +0000 (12:13 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 07:03:55 +0000 (09:03 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 06:50:24 +0000 (08:50 +0200)]
make sure that the hook function is always called.
Nikos Mavrogiannopoulos [Wed, 10 Jul 2013 06:45:47 +0000 (08:45 +0200)]
New functions added
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 06:43:16 +0000 (08:43 +0200)]
bumped version
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.
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 07:26:50 +0000 (09:26 +0200)]
corrected typo
Nikos Mavrogiannopoulos [Tue, 9 Jul 2013 06:42:17 +0000 (08:42 +0200)]
doc update
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.
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.
Nikos Mavrogiannopoulos [Sat, 6 Jul 2013 14:48:06 +0000 (16:48 +0200)]
make sure that a valid number of days is entered
Nikos Mavrogiannopoulos [Fri, 5 Jul 2013 10:58:12 +0000 (12:58 +0200)]
Added DCO
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:51:46 +0000 (23:51 +0200)]
added new functions
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:27:25 +0000 (23:27 +0200)]
simplified structure
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:26:50 +0000 (23:26 +0200)]
corrected issue in client hello verify.
Nikos Mavrogiannopoulos [Thu, 4 Jul 2013 21:03:59 +0000 (23:03 +0200)]
Added helper functions for digests.
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>
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 17:42:04 +0000 (19:42 +0200)]
updated for new callback format
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 16:23:51 +0000 (18:23 +0200)]
corrected typo
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 06:34:15 +0000 (08:34 +0200)]
more files to ignore
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 06:31:40 +0000 (08:31 +0200)]
doc update
Nikos Mavrogiannopoulos [Wed, 3 Jul 2013 06:29:26 +0000 (08:29 +0200)]
when removing a cipher priority, make sure the order is kept
Nikos Mavrogiannopoulos [Sun, 30 Jun 2013 07:27:09 +0000 (09:27 +0200)]
gnutls_record_overhead_size2 -> gnutls_est_record_overhead_size
Nikos Mavrogiannopoulos [Mon, 1 Jul 2013 09:44:54 +0000 (11:44 +0200)]
doc update
Nikos Mavrogiannopoulos [Sat, 29 Jun 2013 09:29:09 +0000 (11:29 +0200)]
Sync with TP.
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>.
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.
Nikos Mavrogiannopoulos [Wed, 26 Jun 2013 21:30:29 +0000 (23:30 +0200)]
removed unsupported RSA-EXPORT
Nikos Mavrogiannopoulos [Wed, 26 Jun 2013 21:28:16 +0000 (23:28 +0200)]
documented private extensions
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.
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 21:13:13 +0000 (23:13 +0200)]
documented dtls behavior.
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 21:02:45 +0000 (23:02 +0200)]
enforce the maximum TLS size when setting MTU
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 21:02:15 +0000 (23:02 +0200)]
make sure that no DTLS MTU size can exceed 2^14.
Nikos Mavrogiannopoulos [Wed, 19 Jun 2013 17:05:19 +0000 (19:05 +0200)]
Revert "Add nettle dependencies to libcrypto.la"
This reverts commit
f3ef68f4f79434fadc3f28c649744e57f3eef99b.
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
Nikos Mavrogiannopoulos [Tue, 18 Jun 2013 06:44:21 +0000 (08:44 +0200)]
Sync with TP.
Nikos Mavrogiannopoulos [Sat, 15 Jun 2013 14:38:10 +0000 (16:38 +0200)]
check for zero values when import DH parameters.
Nikos Mavrogiannopoulos [Sat, 15 Jun 2013 08:28:34 +0000 (10:28 +0200)]
Sync with TP.
Nikos Mavrogiannopoulos [Fri, 14 Jun 2013 14:23:39 +0000 (16:23 +0200)]
doc update
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.
Nikos Mavrogiannopoulos [Thu, 13 Jun 2013 16:40:20 +0000 (18:40 +0200)]
added BCC to avoid forgetting it in the future
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 23:04:53 +0000 (01:04 +0200)]
doc update
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 23:04:07 +0000 (01:04 +0200)]
avoid the introduction of a new function to disable replay protection.
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:31:53 +0000 (19:31 +0200)]
changed port to avoid conflicts
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:25:30 +0000 (19:25 +0200)]
small update
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:24:18 +0000 (19:24 +0200)]
removed unused var
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:23:38 +0000 (19:23 +0200)]
updated tpmtool auto-gen'ed files
Nikos Mavrogiannopoulos [Mon, 10 Jun 2013 17:22:32 +0000 (19:22 +0200)]
Added gnutls_record_overhead_size() and Added gnutls_record_overhead_size2().