[svn] gpgme - r1202 - in trunk: . gpgme
svn author wk
cvs at cvs.gnupg.org
Wed Jan 10 11:18:05 CET 2007
Author: wk
Date: 2007-01-10 11:18:05 +0100 (Wed, 10 Jan 2007)
New Revision: 1202
Modified:
trunk/ChangeLog
trunk/TODO
trunk/configure.ac
trunk/gpgme/ChangeLog
trunk/gpgme/ttyname_r.c
Log:
/
* configure.ac (NEED_GPG_VERSION,
(NEED_GPGSM_VERSION): Must define after it may have been changed
by an option.
* configure.ac: Require gpg-error 1.4 due to the use of
gpg_error_from_syserror.
(HAVE_ASSUAN_H): New.
gpgme/
* ttyname_r.c (ttyname_r) [W32]: Return a dummy name.
* version.c (do_subsystem_inits): Do assuan init only if building
with Assuan.
* setenv.c: Include assuan-def.h only if building with Assuan
support.
* op-support.c (_gpgme_op_reset): Set LC_MESSAGES only if
if defined.
* engine-gpgsm.c (gpgsm_set_locale): Ditto.
* rungpg.c (gpg_set_locale): Ditto.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-08 12:05:07 UTC (rev 1201)
+++ trunk/ChangeLog 2007-01-10 10:18:05 UTC (rev 1202)
@@ -1,3 +1,9 @@
+2007-01-09 Werner Koch <wk at g10code.com>
+
+ * configure.ac (NEED_GPG_VERSION,
+ (NEED_GPGSM_VERSION): Must define after it may have been changed
+ by an option.
+
2007-01-08 Werner Koch <wk at g10code.com>
* configure.ac: Require gpg-error 1.4 due to the use of
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2007-01-08 12:05:07 UTC (rev 1201)
+++ trunk/TODO 2007-01-10 10:18:05 UTC (rev 1202)
@@ -99,7 +99,12 @@
gpg: test: sign+encrypt failed: general error
** Without agent and with wrong passphrase, gpg 1.4.2 enters into an
infinite loop.
+** Use correct argv[0]
+ In rungpg.c:build_argv we use
+ argv[argc] = strdup ("gpg"); /* argv[0] */
+ This should be changed to take the real file name used in account.
+
* Operations
** Include cert values -2, -1, 0 and 1 should be defined as macros.
** If an operation failed, make sure that the result functions don't return
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2007-01-08 12:05:07 UTC (rev 1201)
+++ trunk/configure.ac 2007-01-10 10:18:05 UTC (rev 1202)
@@ -87,10 +87,6 @@
AC_SUBST(LIBGPGME_LT_CURRENT)
AC_SUBST(LIBGPGME_LT_AGE)
AC_SUBST(LIBGPGME_LT_REVISION)
-AC_DEFINE_UNQUOTED(NEED_GPG_VERSION, "$NEED_GPG_VERSION",
- [Min. needed GnuPG version.])
-AC_DEFINE_UNQUOTED(NEED_GPGSM_VERSION, "$NEED_GPGSM_VERSION",
- [Min. needed GPGSM version.])
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
@@ -273,7 +269,12 @@
NEED_GPGSM_VERSION=0.0.0
fi
+AC_DEFINE_UNQUOTED(NEED_GPG_VERSION, "$NEED_GPG_VERSION",
+ [Min. needed GnuPG version.])
+AC_DEFINE_UNQUOTED(NEED_GPGSM_VERSION, "$NEED_GPGSM_VERSION",
+ [Min. needed GPGSM version.])
+
NO_OVERRIDE=no
AC_ARG_WITH(gpg,
AC_HELP_STRING([--with-gpg=PATH], [use GnuPG binary at PATH]),
Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog 2007-01-08 12:05:07 UTC (rev 1201)
+++ trunk/gpgme/ChangeLog 2007-01-10 10:18:05 UTC (rev 1202)
@@ -1,3 +1,7 @@
+2007-01-10 Werner Koch <wk at g10code.com>
+
+ * ttyname_r.c (ttyname_r) [W32]: Return a dummy name.
+
2007-01-08 Werner Koch <wk at g10code.com>
* version.c (do_subsystem_inits): Do assuan init only if building
Modified: trunk/gpgme/ttyname_r.c
===================================================================
--- trunk/gpgme/ttyname_r.c 2007-01-08 12:05:07 UTC (rev 1201)
+++ trunk/gpgme/ttyname_r.c 2007-01-10 10:18:05 UTC (rev 1202)
@@ -32,17 +32,22 @@
int
ttyname_r (int fd, char *buf, size_t buflen)
{
+ char *tty;
+
#if HAVE_W32_SYSTEM
- errno = ENOTTY; /* The best error code I have under mingw. */
+ /* We use this default one for now. AFAICS we only need it to be
+ passed to gpg and in turn to pinentry. Providing a replacement
+ is needed because elsewhere we bail out on error. If we
+ eventually implement a pinentry for Windows it is uinlikely that
+ we need a real tty at all. */
+ tty = "/dev/tty";
#else
- char *tty;
-
tty = ttyname (fd);
if (!tty)
return errno;
+#endif
strncpy (buf, tty, buflen);
buf[buflen - 1] = '\0';
return (strlen (tty) >= buflen) ? ERANGE : 0;
-#endif
}
More information about the Gnupg-commits
mailing list