+2002-05-21 Werner Koch <wk@gnupg.org>
+
+ * configure.ac (NEED_GPGSM_VERSION): We need gpgsm 0.3.7.
+
2002-05-03 Werner Koch <wk@gnupg.org>
Released 0.3.6.
LIBGPGME_LT_AGE=2
LIBGPGME_LT_REVISION=0
NEED_GPG_VERSION=1.0.7
-NEED_GPGSM_VERSION=0.3.6
+NEED_GPGSM_VERSION=0.3.7
##############################################
AC_PREREQ(2.52)
AC_REVISION($Revision$)
+2002-05-21 Werner Koch <wk@gnupg.org>
+
+ * engine-gpgsm.c (_gpgme_gpgsm_op_keylist)
+ (_gpgme_gpgsm_op_keylist_ext): Pass the keylist mode to gpgsm.
+
2002-05-10 Werner Koch <wk@gnupg.org>
* key.h (gpgme_key_s): Add OTRUST.
int secret_only, int keylist_mode)
{
char *line;
+ GpgmeError err;
if (!pattern)
pattern = "";
+ if (asprintf (&line, "OPTION list-mode=%d", (keylist_mode & 3)) < 0)
+ return mk_error (Out_Of_Core);
+ err = gpgsm_assuan_simple_command (gpgsm->assuan_ctx, line);
+ free (line);
+ if (err)
+ return err;
+
/* Length is "LISTSECRETKEYS " + p + '\0'. */
line = xtrymalloc (15 + strlen (pattern) + 1);
if (!line)
if (reserved)
return mk_error (Invalid_Value);
+ if (asprintf (&line, "OPTION list-mode=%d", (keylist_mode & 3)) < 0)
+ return mk_error (Out_Of_Core);
+ err = gpgsm_assuan_simple_command (gpgsm->assuan_ctx, line);
+ free (line);
+ if (err)
+ return err;
+
if (pattern && *pattern)
{
const char **pat = pattern;