+2004-04-05 Werner Koch <wk@gnupg.org>
+
+ * engine-gpgsm.c (gpgsm_keylist_ext): Send with-validation
+ option. Fixed pattern construction.
+
2004-03-23 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (gpgsm_new): Protect _only_ tty related code with
/* Length is "LISTSECRETKEYS " + p + '\0'. */
int length = 15 + 1;
char *linep;
+ int any_pattern = 0;
int list_mode = 0;
if (reserved)
if (err)
return err;
+ /* Use the validation mode if required. We don't check for an error
+ yet because this is a pretty fresh gpgsm features. */
+ gpgsm_assuan_simple_command (gpgsm->assuan_ctx,
+ (mode & GPGME_KEYLIST_MODE_VALIDATE)?
+ "OPTION with-validation=1":
+ "OPTION with-validation=0" ,
+ NULL, NULL);
+
+
if (pattern && *pattern)
{
const char **pat = pattern;
patlet++;
}
pat++;
- /* This will allocate one byte more than necessary. */
length++;
}
}
}
patlet++;
}
+ any_pattern = 1;
+ *linep++ = ' ';
pattern++;
}
}
+ if (any_pattern)
+ linep--;
*linep = '\0';
_gpgme_io_close (gpgsm->input_cb.fd);
typedef long ssize_t;
#else
# include <sys/types.h>
+#ifdef _WIN32
+typedef long ssize_t;
+#endif
#endif
#ifdef __cplusplus
AM_PATH_GPGME macro) check that this header matches the installed
library. Warning: Do not edit the next line. configure will do
that for you! */
-#define GPGME_VERSION "0.4.5-cvs"
+#define GPGME_VERSION "0.4.6-cvs"
\f
/* Some opaque data types used by GPGME. */