gnutls:gnutls.git
13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls
Nikos Mavrogiannopoulos [Sat, 8 Aug 2009 06:07:14 +0000 (09:07 +0300)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls

13 years agoCorrected case where handshake data were received during a session. It now stores...
Nikos Mavrogiannopoulos [Sat, 8 Aug 2009 06:06:57 +0000 (09:06 +0300)]
Corrected case where handshake data were received during a session. It now stores them for future use by a gnutls_handshake(). Reported by Peter Hendrickson <pdh@wiredyne.com>.

13 years agoFix.
Simon Josefsson [Thu, 6 Aug 2009 22:51:50 +0000 (00:51 +0200)]
Fix.

13 years agoFix.
Simon Josefsson [Thu, 6 Aug 2009 22:50:53 +0000 (00:50 +0200)]
Fix.

13 years agoAdd.
Simon Josefsson [Thu, 6 Aug 2009 22:49:23 +0000 (00:49 +0200)]
Add.

13 years agoCheck for NUL in SANs and replace accordingly.
Simon Josefsson [Thu, 6 Aug 2009 22:39:13 +0000 (00:39 +0200)]
Check for NUL in SANs and replace accordingly.

13 years agoMove comment into source.
Simon Josefsson [Thu, 6 Aug 2009 22:28:20 +0000 (00:28 +0200)]
Move comment into source.

13 years agoRefuse to return DNs with embedded NULs which breaks other code.
Simon Josefsson [Thu, 6 Aug 2009 22:24:44 +0000 (00:24 +0200)]
Refuse to return DNs with embedded NULs which breaks other code.

Problem published by Dan Kaminsky and Moxie Marlinspike at BlackHat09.

13 years agoRevert everything since last release, to allow minimal patch to be applied.
Simon Josefsson [Thu, 6 Aug 2009 22:14:47 +0000 (00:14 +0200)]
Revert everything since last release, to allow minimal patch to be applied.

13 years agoFix invocation of rfc2253-escape-test.
Simon Josefsson [Thu, 6 Aug 2009 15:11:13 +0000 (17:11 +0200)]
Fix invocation of rfc2253-escape-test.

Reported by Brad Hards <bradh@frogmouth.net> in
<http://permalink.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3750>.

13 years agoUpdate gnulib files.
Simon Josefsson [Thu, 6 Aug 2009 14:30:15 +0000 (16:30 +0200)]
Update gnulib files.

13 years agoAdd self-test of RFC 2253 escaping.
Simon Josefsson [Wed, 5 Aug 2009 10:03:01 +0000 (12:03 +0200)]
Add self-test of RFC 2253 escaping.

13 years agoSimplify and fix mem leak.
Simon Josefsson [Tue, 4 Aug 2009 15:32:16 +0000 (17:32 +0200)]
Simplify and fix mem leak.

13 years agoDon't use fixed size buffer for strings.
Simon Josefsson [Tue, 4 Aug 2009 14:21:14 +0000 (16:21 +0200)]
Don't use fixed size buffer for strings.

13 years agoExit with failure on failure.
Simon Josefsson [Tue, 4 Aug 2009 11:19:32 +0000 (13:19 +0200)]
Exit with failure on failure.

13 years agoFix output.
Simon Josefsson [Tue, 4 Aug 2009 11:18:54 +0000 (13:18 +0200)]
Fix output.

13 years agoCleanup code.
Simon Josefsson [Tue, 4 Aug 2009 11:18:18 +0000 (13:18 +0200)]
Cleanup code.

13 years agoGnuTLS vs. NULL chars in CNs
Tomas Hoger [Tue, 4 Aug 2009 08:39:24 +0000 (10:39 +0200)]
GnuTLS vs. NULL chars in CNs

Check cert name size in _gnutls_hostname_compare()

    This is needed to protect against NULL (\0) characters embedded in X509
    certificates' CNs or subjectAltNames, that can be used to fool SSL certificate
    verification as was demonstrated by Moxie Marlinspike on BH USA 2009:

    http://www.blackhat.com/html/bh-usa-09/bh-usa-09-archives.html#Marlinspike

Signed-off-by: Simon Josefsson <simon@josefsson.org>
13 years agoAdd self-test for NUL in X.509 CN/SAN problem.
Simon Josefsson [Tue, 4 Aug 2009 11:11:59 +0000 (13:11 +0200)]
Add self-test for NUL in X.509 CN/SAN problem.

13 years agoFix typo.
Simon Josefsson [Mon, 3 Aug 2009 21:48:36 +0000 (23:48 +0200)]
Fix typo.

13 years agoFix expected output, a cert have expired.
Simon Josefsson [Mon, 3 Aug 2009 21:40:23 +0000 (23:40 +0200)]
Fix expected output, a cert have expired.

13 years agoFix crash.
Simon Josefsson [Mon, 3 Aug 2009 21:37:39 +0000 (23:37 +0200)]
Fix crash.

13 years agoMake it build.
Simon Josefsson [Mon, 3 Aug 2009 21:11:39 +0000 (23:11 +0200)]
Make it build.

13 years agoDrop .c and sort.
Simon Josefsson [Wed, 29 Jul 2009 21:02:34 +0000 (23:02 +0200)]
Drop .c and sort.

13 years agoUse libtasn1 v2.3.
Simon Josefsson [Wed, 29 Jul 2009 20:43:41 +0000 (22:43 +0200)]
Use libtasn1 v2.3.

13 years agoAdd.
Simon Josefsson [Wed, 29 Jul 2009 18:58:44 +0000 (20:58 +0200)]
Add.

13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls
Nikos Mavrogiannopoulos [Sun, 26 Jul 2009 12:27:54 +0000 (15:27 +0300)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls

13 years agomore careful decoding of OID.
Nikos Mavrogiannopoulos [Sun, 26 Jul 2009 12:22:06 +0000 (15:22 +0300)]
more careful decoding of OID.

13 years agodo not allow null character in DN.
Nikos Mavrogiannopoulos [Sun, 26 Jul 2009 12:21:13 +0000 (15:21 +0300)]
do not allow null character in DN.

13 years agoupdated files to be ignored.
Nikos Mavrogiannopoulos [Thu, 16 Jul 2009 20:23:50 +0000 (23:23 +0300)]
updated files to be ignored.

13 years agoTypo fix in test output. Patch by Brad Hards <bradh@frogmouth.net>
Nikos Mavrogiannopoulos [Wed, 15 Jul 2009 21:04:13 +0000 (00:04 +0300)]
Typo fix in test output. Patch by Brad Hards <bradh@frogmouth.net>

13 years agoRemoved duplicate entry of Daniel and added Fabian, Brad and Daiki.
Nikos Mavrogiannopoulos [Wed, 15 Jul 2009 19:13:30 +0000 (22:13 +0300)]
Removed duplicate entry of Daniel and added Fabian, Brad and Daiki.

13 years agoSeveral bug fixes by Fabian Keil (some were modified by me).
Nikos Mavrogiannopoulos [Wed, 15 Jul 2009 19:01:47 +0000 (22:01 +0300)]
Several bug fixes by Fabian Keil (some were modified by me).

13 years agoreduced transferred data size.
Nikos Mavrogiannopoulos [Wed, 15 Jul 2009 19:00:43 +0000 (22:00 +0300)]
reduced transferred data size.

13 years agoAdded casts to reduce warnings (based on report by Brad Hards).
Nikos Mavrogiannopoulos [Mon, 13 Jul 2009 17:25:20 +0000 (20:25 +0300)]
Added casts to reduce warnings (based on report by Brad Hards).

13 years agoAdded more stuff to have a clean status.
Nikos Mavrogiannopoulos [Mon, 13 Jul 2009 17:25:17 +0000 (20:25 +0300)]
Added more stuff to have a clean status.

13 years agoDocumentation corrections by Brad Hards.
Nikos Mavrogiannopoulos [Mon, 13 Jul 2009 17:17:56 +0000 (20:17 +0300)]
Documentation corrections by Brad Hards.

13 years agosize_t and unsigned int fixes.
Nikos Mavrogiannopoulos [Mon, 13 Jul 2009 08:08:45 +0000 (11:08 +0300)]
size_t and unsigned int fixes.

13 years agoThere are cases where those buffers might overlap
Nikos Mavrogiannopoulos [Wed, 1 Jul 2009 19:23:33 +0000 (22:23 +0300)]
There are cases where those buffers might overlap

13 years agoPatch by Tim Kosse:
Nikos Mavrogiannopoulos [Wed, 1 Jul 2009 19:15:29 +0000 (22:15 +0300)]
Patch by Tim Kosse:
"If _gnutls_send_finished fails with GNUTLS_E_AGAIN or GNUTLS_E_AGAIN it
eventually gets called a second time.

It however does not call _gnutls_send_handshake with a NULL pointer on
repeated calls, ultimately leading to an internal error in
_gnutls_handshake_io_send_int."

13 years agoCorrected gnutls_certificate_client_get_request_status(). Based on observation by...
Nikos Mavrogiannopoulos [Wed, 1 Jul 2009 19:10:04 +0000 (22:10 +0300)]
Corrected gnutls_certificate_client_get_request_status(). Based on observation by Peter Hendrickson <pdh@wiredyne.com>.

13 years agoAdded bug fix that allows gnutls_record_recv/send resuming from previously interrupted
Nikos Mavrogiannopoulos [Wed, 1 Jul 2009 18:50:27 +0000 (21:50 +0300)]
Added bug fix that allows gnutls_record_recv/send resuming from previously interrupted
actions. Patch by from Tim Kosse <tim.kosse@filezilla-project.org>.

Added a self test to check those functions in handling interrupted states.

13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls
Nikos Mavrogiannopoulos [Tue, 30 Jun 2009 17:16:12 +0000 (20:16 +0300)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls

13 years agoAssume gmtime_r.
Simon Josefsson [Tue, 23 Jun 2009 21:04:51 +0000 (23:04 +0200)]
Assume gmtime_r.

13 years agoDoc fix.
Simon Josefsson [Tue, 23 Jun 2009 20:56:12 +0000 (22:56 +0200)]
Doc fix.

13 years agoFix.
Simon Josefsson [Mon, 22 Jun 2009 09:43:42 +0000 (11:43 +0200)]
Fix.

13 years agoAdd self-test of off-by-one size error.
Simon Josefsson [Mon, 22 Jun 2009 09:43:04 +0000 (11:43 +0200)]
Add self-test of off-by-one size error.

13 years agoAdd.
Simon Josefsson [Mon, 22 Jun 2009 09:32:23 +0000 (11:32 +0200)]
Add.

13 years agoAdd.
Simon Josefsson [Mon, 22 Jun 2009 09:31:23 +0000 (11:31 +0200)]
Add.

13 years agoFix off-by-one size computation that leads to truncated strings.
Simon Josefsson [Mon, 22 Jun 2009 09:30:05 +0000 (11:30 +0200)]
Fix off-by-one size computation that leads to truncated strings.
Reported by Tim Kosse <tim.kosse@filezilla-project.org> in
<http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3651>.

13 years agoUpdate gnulib files.
Simon Josefsson [Thu, 18 Jun 2009 20:30:54 +0000 (22:30 +0200)]
Update gnulib files.

13 years agoFix --disable-openssl-compatibility parameter.
Simon Josefsson [Thu, 18 Jun 2009 20:26:03 +0000 (22:26 +0200)]
Fix --disable-openssl-compatibility parameter.
Reported by Matthias Drochner <M.Drochner@fz-juelich.de> in
<http://permalink.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3646>.

13 years agoTypo.
Simon Josefsson [Wed, 17 Jun 2009 15:51:39 +0000 (17:51 +0200)]
Typo.

13 years agoFix build error.
Simon Josefsson [Wed, 17 Jun 2009 07:25:16 +0000 (09:25 +0200)]
Fix build error.

13 years agoAdd.
Simon Josefsson [Wed, 17 Jun 2009 07:21:48 +0000 (09:21 +0200)]
Add.

13 years agoReturn proper MPI lengths in bits.
Simon Josefsson [Wed, 17 Jun 2009 07:20:08 +0000 (09:20 +0200)]
Return proper MPI lengths in bits.
Reported by Peter Hendrickson <pdh@wiredyne.com> in
<http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3607>.

13 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls
Nikos Mavrogiannopoulos [Sat, 13 Jun 2009 15:07:45 +0000 (18:07 +0300)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/gnutls

13 years agoFix memory leak.
Simon Josefsson [Wed, 10 Jun 2009 15:55:05 +0000 (17:55 +0200)]
Fix memory leak.

13 years agoAdd.
Simon Josefsson [Wed, 10 Jun 2009 15:26:15 +0000 (17:26 +0200)]
Add.

13 years agoImprove test vectors.
Simon Josefsson [Wed, 10 Jun 2009 15:24:44 +0000 (17:24 +0200)]
Improve test vectors.

13 years agoAdded new self-test pkcs12_s2k_pem.
Simon Josefsson [Wed, 10 Jun 2009 14:49:59 +0000 (16:49 +0200)]
Added new self-test pkcs12_s2k_pem.

13 years agoFix.
Simon Josefsson [Wed, 10 Jun 2009 14:17:10 +0000 (16:17 +0200)]
Fix.

13 years agoAdd.
Simon Josefsson [Wed, 10 Jun 2009 14:11:34 +0000 (16:11 +0200)]
Add.

13 years agoFix PKCS#12 string to key function for 1/128 inputs.
Simon Josefsson [Wed, 10 Jun 2009 14:09:35 +0000 (16:09 +0200)]
Fix PKCS#12 string to key function for 1/128 inputs.
Reported by "Kukosa, Tomas" <tomas.kukosa@siemens-enterprise.com> in
<http://permalink.gmane.org/gmane.network.gnutls.general/1663>.

13 years agoUpdate gnulib files.
Simon Josefsson [Tue, 9 Jun 2009 11:21:23 +0000 (13:21 +0200)]
Update gnulib files.

13 years agoBump versions.
Simon Josefsson [Tue, 9 Jun 2009 04:58:27 +0000 (06:58 +0200)]
Bump versions.

13 years agoGenerated. gnutls_2_9_1
Simon Josefsson [Tue, 9 Jun 2009 04:42:05 +0000 (06:42 +0200)]
Generated.

13 years agoUpdate gnulib files.
Simon Josefsson [Tue, 9 Jun 2009 04:24:41 +0000 (06:24 +0200)]
Update gnulib files.

13 years agoVersion 2.9.1.
Simon Josefsson [Mon, 8 Jun 2009 17:14:50 +0000 (19:14 +0200)]
Version 2.9.1.

13 years agoMark global extfunc_size as having static scope.
Simon Josefsson [Mon, 8 Jun 2009 17:10:10 +0000 (19:10 +0200)]
Mark global extfunc_size as having static scope.

13 years agoAdd.
Simon Josefsson [Mon, 8 Jun 2009 16:46:07 +0000 (18:46 +0200)]
Add.

13 years agoAdd self-test to detect extension init/deinit problem.
Simon Josefsson [Mon, 8 Jun 2009 16:41:55 +0000 (18:41 +0200)]
Add self-test to detect extension init/deinit problem.

13 years agoDeinitalize extension global variable properly.
Simon Josefsson [Mon, 8 Jun 2009 16:41:22 +0000 (18:41 +0200)]
Deinitalize extension global variable properly.
See <http://bugs.gentoo.org/272388>.

13 years agoUpdate gnulib files.
Simon Josefsson [Wed, 3 Jun 2009 10:38:03 +0000 (12:38 +0200)]
Update gnulib files.

13 years agoRename _gnutls_dump_mpi to _gnutls_mpi_log. Rewrite to use less stack space.
Simon Josefsson [Wed, 3 Jun 2009 07:35:13 +0000 (09:35 +0200)]
Rename _gnutls_dump_mpi to _gnutls_mpi_log.  Rewrite to use less stack space.

13 years agoReduce stack size limit check.
Simon Josefsson [Wed, 3 Jun 2009 04:51:16 +0000 (06:51 +0200)]
Reduce stack size limit check.

13 years agoReduce stack size.
Simon Josefsson [Wed, 3 Jun 2009 04:48:46 +0000 (06:48 +0200)]
Reduce stack size.

13 years agoFix malloc failure error strings.
Simon Josefsson [Wed, 3 Jun 2009 04:44:19 +0000 (06:44 +0200)]
Fix malloc failure error strings.

13 years agoTest more.
Simon Josefsson [Wed, 3 Jun 2009 04:38:18 +0000 (06:38 +0200)]
Test more.

13 years ago(_gnutls_x509_oid_data2string): Return proper @res_size for NULL res.
Simon Josefsson [Wed, 3 Jun 2009 04:36:41 +0000 (06:36 +0200)]
(_gnutls_x509_oid_data2string): Return proper @res_size for NULL res.

13 years agoIndent.
Simon Josefsson [Wed, 3 Jun 2009 04:24:15 +0000 (06:24 +0200)]
Indent.

13 years agoDoc fix.
Simon Josefsson [Wed, 3 Jun 2009 04:17:56 +0000 (06:17 +0200)]
Doc fix.

13 years agoReduce stack usage.
Simon Josefsson [Wed, 3 Jun 2009 04:15:02 +0000 (06:15 +0200)]
Reduce stack usage.

13 years agoDoc fix.
Simon Josefsson [Wed, 3 Jun 2009 04:10:05 +0000 (06:10 +0200)]
Doc fix.

13 years agoSimplify.
Simon Josefsson [Wed, 3 Jun 2009 03:51:59 +0000 (05:51 +0200)]
Simplify.

13 years agoTest more.
Simon Josefsson [Wed, 3 Jun 2009 03:39:52 +0000 (05:39 +0200)]
Test more.

13 years agoReduce stack usage.
Simon Josefsson [Wed, 3 Jun 2009 03:39:44 +0000 (05:39 +0200)]
Reduce stack usage.

13 years agoTest more.
Simon Josefsson [Wed, 3 Jun 2009 03:21:05 +0000 (05:21 +0200)]
Test more.

13 years agoReduce stack usage.
Simon Josefsson [Wed, 3 Jun 2009 03:20:59 +0000 (05:20 +0200)]
Reduce stack usage.

13 years agoFix uninitialized variable access.
Simon Josefsson [Wed, 3 Jun 2009 03:16:01 +0000 (05:16 +0200)]
Fix uninitialized variable access.

13 years agoReduce stack frame usage.
Simon Josefsson [Wed, 3 Jun 2009 03:01:49 +0000 (05:01 +0200)]
Reduce stack frame usage.

13 years agoReduce stack usage.
Simon Josefsson [Wed, 3 Jun 2009 02:54:43 +0000 (04:54 +0200)]
Reduce stack usage.

13 years agoUpdate gnulib files.
Simon Josefsson [Tue, 2 Jun 2009 20:40:26 +0000 (22:40 +0200)]
Update gnulib files.

13 years agoAdd.
Simon Josefsson [Tue, 2 Jun 2009 06:43:06 +0000 (08:43 +0200)]
Add.

13 years agoDon't assert on expected errors.
Simon Josefsson [Tue, 2 Jun 2009 06:41:42 +0000 (08:41 +0200)]
Don't assert on expected errors.

13 years agoAdd.
Simon Josefsson [Mon, 1 Jun 2009 17:32:28 +0000 (19:32 +0200)]
Add.

13 years agoAdd crq self-test.
Simon Josefsson [Mon, 1 Jun 2009 17:32:09 +0000 (19:32 +0200)]
Add crq self-test.

13 years agoReduce stack usage.
Simon Josefsson [Mon, 1 Jun 2009 17:29:19 +0000 (19:29 +0200)]
Reduce stack usage.

13 years agoReduce stack usage. Fix build failure wrt variable names.
Simon Josefsson [Mon, 1 Jun 2009 17:29:04 +0000 (19:29 +0200)]
Reduce stack usage.  Fix build failure wrt variable names.

13 years agoDoc fix.
Simon Josefsson [Mon, 1 Jun 2009 17:17:52 +0000 (19:17 +0200)]
Doc fix.