diff options
| author | Werner Koch <[email protected]> | 2009-03-18 11:19:29 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2009-03-18 11:19:29 +0000 | 
| commit | aceb60d4dd12bac405c4fa670e772965903ed04d (patch) | |
| tree | eb5a8f42cc673156cacb5f2b11954cc94c6f1912 /src/engine-gpgsm.c | |
| parent | Fix locale problem, e.g. for et_ET. (diff) | |
| download | gpgme-aceb60d4dd12bac405c4fa670e772965903ed04d.tar.gz gpgme-aceb60d4dd12bac405c4fa670e772965903ed04d.zip | |
Add GPGME_KEYLIST_MODE_EPHEMERAL.
Diffstat (limited to 'src/engine-gpgsm.c')
| -rw-r--r-- | src/engine-gpgsm.c | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/src/engine-gpgsm.c b/src/engine-gpgsm.c index 7179b3c4..bdd1ff92 100644 --- a/src/engine-gpgsm.c +++ b/src/engine-gpgsm.c @@ -1,6 +1,6 @@  /* engine-gpgsm.c - GpgSM engine.     Copyright (C) 2000 Werner Koch (dd9jn) -   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007 g10 Code GmbH +   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007, 2009 g10 Code GmbH     This file is part of GPGME. @@ -1575,13 +1575,20 @@ gpgsm_keylist (void *engine, const char *pattern, int secret_only,    /* Always send key validation because RESET does not reset it.  */ -  /* Use the validation mode if required.  We don't check for an error +  /* Use the validation mode if requested.  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); +  /* Include the ephemeral keys if requested.  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_EPHEMERAL)? +                               "OPTION with-ephemeral-keys=1": +                               "OPTION with-ephemeral-keys=0" , +                               NULL, NULL);    /* Length is "LISTSECRETKEYS " + p + '\0'.  */ | 
