[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_9-76-ga0e69d2
From: |
Simon Josefsson |
Subject: |
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_9-76-ga0e69d2 |
Date: |
Wed, 27 Jan 2010 14:57:07 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".
http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=a0e69d2a86fc8e670cb9e7fa4afe21fd809bd2d2
The branch, master has been updated
via a0e69d2a86fc8e670cb9e7fa4afe21fd809bd2d2 (commit)
from 4b699948260c21eb97fe4a0f5a57c20e038d3d59 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a0e69d2a86fc8e670cb9e7fa4afe21fd809bd2d2
Author: Simon Josefsson <address@hidden>
Date: Wed Jan 27 15:56:51 2010 +0100
gnutls-cli: Handle reading binary data from server.
Reported by and tiny patch from Vitaly Mayatskikh
<address@hidden> in
<http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/4096>.
-----------------------------------------------------------------------
Summary of changes:
NEWS | 5 +++++
THANKS | 3 ++-
src/cli.c | 12 ++++++++----
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/NEWS b/NEWS
index ecbed1c..3b24437 100644
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,11 @@ now different than previous gnutls releases.
** certtool: New option --no-crq-extensions to avoid extensions in CSRs.
+** gnutls-cli: Handle reading binary data from server.
+Reported by and tiny patch from Vitaly Mayatskikh
+<address@hidden> in
+<http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/4096>.
+
** API and ABI modifications:
gnutls_cipher_decrypt: Added
gnutls_cipher_deinit: Added
diff --git a/THANKS b/THANKS
index a4a72f8..383a91c 100644
--- a/THANKS
+++ b/THANKS
@@ -1,5 +1,5 @@
GNU TLS THANKS -- Acknowledgements.
-Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation
+Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation
Copyright (C) 2000, 2001, 2002, 2003, 2004 Nikos Mavrogiannopoulos
See the end for copying conditions.
@@ -104,6 +104,7 @@ Fabian Keil <address@hidden>
Jason Pettiss <address@hidden>
Ilari Liusvaara <address@hidden>
Steve Dispensa <address@hidden>
+Vitaly Mayatskikh <address@hidden>
----------------------------------------------------------------------
Copying and distribution of this file, with or without modification,
diff --git a/src/cli.c b/src/cli.c
index ff34ece..d167f57 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Foundation, Inc.
* Copyright (C) 2000,2001,2002,2003 Nikos Mavrogiannopoulos
*
* This file is part of GNUTLS.
@@ -606,6 +606,7 @@ main (int argc, char **argv)
struct timeval tv;
int user_term = 0, retval = 0;
socket_st hd;
+ ssize_t bytes;
set_program_name (argv[0]);
@@ -817,7 +818,7 @@ after_handshake:
if (FD_ISSET (fileno (stdin), &rset))
{
- if (fgets (buffer, MAX_BUF, stdin) == NULL)
+ if ((bytes = read (fileno(stdin), buffer, MAX_BUF - 1)) < 0)
{
if (hd.secure == 0)
{
@@ -847,10 +848,13 @@ after_handshake:
{
char *b = strchr (buffer, '\n');
if (b != NULL)
- strcpy (b, "\r\n");
+ {
+ strcpy (b, "\r\n");
+ bytes++;
+ }
}
- ret = socket_send (&hd, buffer, strlen (buffer));
+ ret = socket_send (&hd, buffer, bytes);
if (ret > 0)
{
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, master, updated. gnutls_2_9_9-76-ga0e69d2,
Simon Josefsson <=