mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
Fix for bug#1313. de.po update.
This commit is contained in:
parent
49d25d3185
commit
2b933ae8f6
3
NEWS
3
NEWS
@ -17,6 +17,9 @@ Noteworthy changes in version 2.1.0beta2 (unreleased)
|
|||||||
* Fixed TTY management for pinentries and session variable update
|
* Fixed TTY management for pinentries and session variable update
|
||||||
problem.
|
problem.
|
||||||
|
|
||||||
|
* Dirmngr has taken over the function of the keyserver helpers. Thus
|
||||||
|
we now have a specified direct interface to keyservers via Dirmngr.
|
||||||
|
|
||||||
|
|
||||||
Noteworthy changes in version 2.1.0beta1 (2010-10-26)
|
Noteworthy changes in version 2.1.0beta1 (2010-10-26)
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
2011-01-20 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
Fix bug#1313.
|
||||||
|
|
||||||
|
* http.c (my_select): New. Define to pth_select if building with Pth.
|
||||||
|
(start_server, write_server, cookie_read, cookie_write): Use it.
|
||||||
|
(my_connect): New. Define to pth_connect if building with Pth.
|
||||||
|
(connect_server): Use it.
|
||||||
|
(my_accept): New. Define to pth_accept if building with Pth.
|
||||||
|
(start_server): Use it.
|
||||||
|
|
||||||
2011-01-20 Werner Koch <wk@g10code.com>
|
2011-01-20 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* util.h (struct b64state): Add field LASTERR.
|
* util.h (struct b64state): Add field LASTERR.
|
||||||
|
@ -105,6 +105,16 @@ struct srventry
|
|||||||
#endif/*!USE_DNS_SRV*/
|
#endif/*!USE_DNS_SRV*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_PTH
|
||||||
|
# define my_select(a,b,c,d,e) pth_select ((a), (b), (c), (d), (e))
|
||||||
|
# define my_connect(a,b,c) pth_connect ((a), (b), (c))
|
||||||
|
# define my_accept(a,b,c) pth_accept ((a), (b), (c))
|
||||||
|
#else
|
||||||
|
# define my_select(a,b,c,d,e) select ((a), (b), (c), (d), (e))
|
||||||
|
# define my_connect(a,b,c) connect ((a), (b), (c))
|
||||||
|
# define my_accept(a,b,c) accept ((a), (b), (c))
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_W32_SYSTEM
|
#ifdef HAVE_W32_SYSTEM
|
||||||
#define sock_close(a) closesocket(a)
|
#define sock_close(a) closesocket(a)
|
||||||
#else
|
#else
|
||||||
@ -1421,14 +1431,14 @@ start_server ()
|
|||||||
FD_ZERO (&rfds);
|
FD_ZERO (&rfds);
|
||||||
FD_SET (fd, &rfds);
|
FD_SET (fd, &rfds);
|
||||||
|
|
||||||
if (select (fd + 1, &rfds, NULL, NULL, NULL) <= 0)
|
if (my_select (fd + 1, &rfds, NULL, NULL, NULL) <= 0)
|
||||||
continue; /* ignore any errors */
|
continue; /* ignore any errors */
|
||||||
|
|
||||||
if (!FD_ISSET (fd, &rfds))
|
if (!FD_ISSET (fd, &rfds))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
addrlen = sizeof peer;
|
addrlen = sizeof peer;
|
||||||
client = accept (fd, (struct sockaddr *) &peer, &addrlen);
|
client = my_accept (fd, (struct sockaddr *) &peer, &addrlen);
|
||||||
if (client == -1)
|
if (client == -1)
|
||||||
continue; /* oops */
|
continue; /* oops */
|
||||||
|
|
||||||
@ -1498,7 +1508,7 @@ connect_server (const char *server, unsigned short port,
|
|||||||
addr.sin_port = htons(port);
|
addr.sin_port = htons(port);
|
||||||
memcpy (&addr.sin_addr,&inaddr,sizeof(inaddr));
|
memcpy (&addr.sin_addr,&inaddr,sizeof(inaddr));
|
||||||
|
|
||||||
if (!connect (sock,(struct sockaddr *)&addr,sizeof(addr)) )
|
if (!my_connect (sock,(struct sockaddr *)&addr,sizeof(addr)) )
|
||||||
return sock;
|
return sock;
|
||||||
sock_close(sock);
|
sock_close(sock);
|
||||||
return -1;
|
return -1;
|
||||||
@ -1566,7 +1576,7 @@ connect_server (const char *server, unsigned short port,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (connect (sock, ai->ai_addr, ai->ai_addrlen))
|
if (my_connect (sock, ai->ai_addr, ai->ai_addrlen))
|
||||||
last_errno = errno;
|
last_errno = errno;
|
||||||
else
|
else
|
||||||
connected = 1;
|
connected = 1;
|
||||||
@ -1620,7 +1630,7 @@ connect_server (const char *server, unsigned short port,
|
|||||||
for (i = 0; host->h_addr_list[i] && !connected; i++)
|
for (i = 0; host->h_addr_list[i] && !connected; i++)
|
||||||
{
|
{
|
||||||
memcpy (&addr.sin_addr, host->h_addr_list[i], host->h_length);
|
memcpy (&addr.sin_addr, host->h_addr_list[i], host->h_length);
|
||||||
if (connect (sock, (struct sockaddr *) &addr, sizeof (addr)))
|
if (my_connect (sock, (struct sockaddr *) &addr, sizeof (addr)))
|
||||||
last_errno = errno;
|
last_errno = errno;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1660,7 +1670,6 @@ write_server (int sock, const char *data, size_t length)
|
|||||||
int nleft;
|
int nleft;
|
||||||
int nwritten;
|
int nwritten;
|
||||||
|
|
||||||
/* FIXME: We would better use pth I/O functions. */
|
|
||||||
nleft = length;
|
nleft = length;
|
||||||
while (nleft > 0)
|
while (nleft > 0)
|
||||||
{
|
{
|
||||||
@ -1687,7 +1696,7 @@ write_server (int sock, const char *data, size_t length)
|
|||||||
|
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
tv.tv_usec = 50000;
|
tv.tv_usec = 50000;
|
||||||
select (0, NULL, NULL, NULL, &tv);
|
my_select (0, NULL, NULL, NULL, &tv);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
log_info ("network write failed: %s\n", strerror (errno));
|
log_info ("network write failed: %s\n", strerror (errno));
|
||||||
@ -1733,7 +1742,7 @@ cookie_read (void *cookie, void *buffer, size_t size)
|
|||||||
|
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
tv.tv_usec = 50000;
|
tv.tv_usec = 50000;
|
||||||
select (0, NULL, NULL, NULL, &tv);
|
my_select (0, NULL, NULL, NULL, &tv);
|
||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
if (nread == GNUTLS_E_REHANDSHAKE)
|
if (nread == GNUTLS_E_REHANDSHAKE)
|
||||||
@ -1795,7 +1804,7 @@ cookie_write (void *cookie, const void *buffer, size_t size)
|
|||||||
|
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
tv.tv_usec = 50000;
|
tv.tv_usec = 50000;
|
||||||
select (0, NULL, NULL, NULL, &tv);
|
my_select (0, NULL, NULL, NULL, &tv);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
log_info ("TLS network write failed: %s\n",
|
log_info ("TLS network write failed: %s\n",
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2011-01-20 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* de.po: Fix two fuzzies.
|
||||||
|
|
||||||
2010-10-21 Werner Koch <wk@g10code.com>
|
2010-10-21 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* POTFILES.in: Add files in dirmngr/.
|
* POTFILES.in: Add files in dirmngr/.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user