+2007-01-09 Werner Koch <wk@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@g10code.com>
* configure.ac: Require gpg-error 1.4 due to the use of
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.
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)
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,
+2007-01-10 Werner Koch <wk@g10code.com>
+
+ * ttyname_r.c (ttyname_r) [W32]: Return a dummy name.
+
2007-01-08 Werner Koch <wk@g10code.com>
* version.c (do_subsystem_inits): Do assuan init only if building
int
ttyname_r (int fd, char *buf, size_t buflen)
{
-#if HAVE_W32_SYSTEM
- errno = ENOTTY; /* The best error code I have under mingw. */
-#else
char *tty;
+#if HAVE_W32_SYSTEM
+ /* 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
tty = ttyname (fd);
if (!tty)
return errno;
+#endif
strncpy (buf, tty, buflen);
buf[buflen - 1] = '\0';
return (strlen (tty) >= buflen) ? ERANGE : 0;
-#endif
}