diff options
| author | Giacomo Tesio <[email protected]> | 2025-11-08 13:47:53 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-11-10 08:28:45 +0000 |
| commit | 964bc14ccfba84b050c20dc5035414438b10bd74 (patch) | |
| tree | cce1c2367cfcdde00b6a3a9a00c981e1b246e0a6 /src/keylist.c | |
| parent | doc: Clarify that keygrip lists multiple keygrips for combined algos (diff) | |
| download | gpgme-master.tar.gz gpgme-master.zip | |
Diffstat (limited to 'src/keylist.c')
| -rw-r--r-- | src/keylist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keylist.c b/src/keylist.c index 3246aaf0..67ac0fba 100644 --- a/src/keylist.c +++ b/src/keylist.c @@ -1534,13 +1534,18 @@ gpgme_get_key (gpgme_ctx_t ctx, const char *fpr, gpgme_key_t *r_key, if (err) return TRACE_ERR (err); { + const char *ctx_flag; gpgme_protocol_t proto; gpgme_engine_info_t info; /* Clone the relevant state. */ proto = gpgme_get_protocol (ctx); gpgme_set_protocol (listctx, proto); + gpgme_set_offline (listctx, gpgme_get_offline (ctx)); gpgme_set_keylist_mode (listctx, gpgme_get_keylist_mode (ctx)); + ctx_flag = gpgme_get_ctx_flag (ctx, "auto-key-locate"); + if (ctx_flag != NULL) + gpgme_set_ctx_flag (listctx, "auto-key-locate", ctx_flag); info = gpgme_ctx_get_engine_info (ctx); while (info && info->protocol != proto) info = info->next; |
