** 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
+<v.mayatskih@gmail.com> in
+<http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/4096>.
+
** API and ABI modifications:
gnutls_cipher_decrypt: Added
gnutls_cipher_deinit: Added
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.
Jason Pettiss <jpettiss@yahoo.com>
Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Steve Dispensa <dispensa@phonefactor.com>
+Vitaly Mayatskikh <v.mayatskih@gmail.com>
----------------------------------------------------------------------
Copying and distribution of this file, with or without modification,
/*
- * 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.
struct timeval tv;
int user_term = 0, retval = 0;
socket_st hd;
+ ssize_t bytes;
set_program_name (argv[0]);
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)
{
{
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)
{