[svn] GnuPG - r5378 - in trunk: common dirmngr
svn author wk
cvs at cvs.gnupg.org
Mon Jul 26 16:28:00 CEST 2010
Author: wk
Date: 2010-07-26 16:27:59 +0200 (Mon, 26 Jul 2010)
New Revision: 5378
Modified:
trunk/common/estream.c
trunk/dirmngr/dirmngr_ldap.c
trunk/dirmngr/ldap-wrapper.h
Log:
Fixed couple of build problems. However the W32 version is currently
under work.
Modified: trunk/common/estream.c
===================================================================
--- trunk/common/estream.c 2010-07-26 14:01:32 UTC (rev 5377)
+++ trunk/common/estream.c 2010-07-26 14:27:59 UTC (rev 5378)
@@ -3412,18 +3412,18 @@
{
stream->intern->modeflags |= O_BINARY;
#ifdef HAVE_DOSISH_SYSTEM
- if (stream->intern->func_dest.func_read == es_func_fd_read)
+ if (stream->intern->func_read == es_func_fd_read)
{
- estream_cookie_fd_t fd_cookie;
+ estream_cookie_fd_t fd_cookie = stream->intern->cookie;
if (!IS_INVALID_FD (fd_cookie->fd))
- setmode (fd, O_BINARY);
+ setmode (fd_cookie->fd, O_BINARY);
}
- else if (stream->intern->func_dest.func_read == es_func_fp_read)
+ else if (stream->intern->func_read == es_func_fp_read)
{
- estream_cookie_fp_t fp_cookie;
+ estream_cookie_fp_t fp_cookie = stream->intern->cookie;
- if (fp_cookie->fd)
+ if (fp_cookie->fp)
setmode (fileno (fp_cookie->fp), O_BINARY);
}
#endif
Modified: trunk/dirmngr/dirmngr_ldap.c
===================================================================
--- trunk/dirmngr/dirmngr_ldap.c 2010-07-26 14:01:32 UTC (rev 5377)
+++ trunk/dirmngr/dirmngr_ldap.c 2010-07-26 14:27:59 UTC (rev 5378)
@@ -135,7 +135,7 @@
char *filter;/* Override filter. */
char *attr; /* Override attribute. */
};
-typedef struct my_opt_s my_opt_t;
+typedef struct my_opt_s *my_opt_t;
/* Prototypes. */
@@ -357,7 +357,7 @@
if (myopt->multi)
{ /* Write item marker. */
- if (es_fwrite ("I\0\0\0\0", 5, 1, myopt->oustream) != 1)
+ if (es_fwrite ("I\0\0\0\0", 5, 1, myopt->outstream) != 1)
{
log_error (_("error writing to stdout: %s\n"),
strerror (errno));
@@ -434,8 +434,8 @@
tmp[2] = (n >> 16);
tmp[3] = (n >> 8);
tmp[4] = (n);
- if (es_fwrite (tmp, 5, 1, myopt->oustream) != 1
- || es_fwrite (attr, n, 1, myopt->oustream) != 1)
+ if (es_fwrite (tmp, 5, 1, myopt->outstream) != 1
+ || es_fwrite (attr, n, 1, myopt->outstream) != 1)
{
log_error (_("error writing to stdout: %s\n"),
strerror (errno));
@@ -459,7 +459,7 @@
tmp[3] = (n >> 8);
tmp[4] = (n);
- if (es_fwrite (tmp, 5, 1, myopt->oustream) != 1)
+ if (es_fwrite (tmp, 5, 1, myopt->outstream) != 1)
{
log_error (_("error writing to stdout: %s\n"),
strerror (errno));
@@ -475,7 +475,7 @@
CRLs which are 52 KB or larger. */
#warning still true - implement in estream
if (es_fwrite (values[0]->bv_val, values[0]->bv_len,
- 1, myopt->oustream) != 1)
+ 1, myopt->outstream) != 1)
{
log_error (_("error writing to stdout: %s\n"),
strerror (errno));
@@ -498,7 +498,7 @@
cnt = MAX_CNT;
if (es_fwrite (((char *) values[0]->bv_val) + n, cnt, 1,
- myopt->oustream) != 1)
+ myopt->outstream) != 1)
{
log_error (_("error writing to stdout: %s\n"),
strerror (errno));
@@ -617,7 +617,7 @@
&myopt->timeout, &msg);
if (rc == LDAP_SIZELIMIT_EXCEEDED && myopt->multi)
{
- if (es_fwrite ("E\0\0\0\x09truncated", 14, 1, myopt->oustream) != 1)
+ if (es_fwrite ("E\0\0\0\x09truncated", 14, 1, myopt->outstream) != 1)
{
log_error (_("error writing to stdout: %s\n"), strerror (errno));
return -1;
Modified: trunk/dirmngr/ldap-wrapper.h
===================================================================
--- trunk/dirmngr/ldap-wrapper.h 2010-07-26 14:01:32 UTC (rev 5377)
+++ trunk/dirmngr/ldap-wrapper.h 2010-07-26 14:27:59 UTC (rev 5378)
@@ -20,6 +20,8 @@
#ifndef LDAP_WRAPPER_H
#define LDAP_WRAPPER_H
+#include <ksba.h>
+
/* ldap-wrapper.c or ldap-wrapper-ce.c */
void ldap_wrapper_launch_thread (void);
void ldap_wrapper_wait_connections (void);
@@ -31,7 +33,7 @@
/* dirmngr_ldap.c */
#ifndef USE_LDAPWRAPPER
-int ldap_wrapper_main (int argc, char **argv, estream_t outstream);
+int ldap_wrapper_main (char **argv, estream_t outstream);
#endif
More information about the Gnupg-commits
mailing list