diff options
| author | Werner Koch <[email protected]> | 2025-05-05 15:02:52 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-05-05 15:03:01 +0200 |
| commit | 87d6da1188db3c7df899821e4c0d895c61504522 (patch) | |
| tree | 4304e4775c4d828c6371cecc471463c81e396a89 /src/gpgme.h.in | |
| parent | New decrypt flags GPGME_DECRYPT_LISTONLY. (diff) | |
| download | gpgme-87d6da1188db3c7df899821e4c0d895c61504522.tar.gz gpgme-87d6da1188db3c7df899821e4c0d895c61504522.zip | |
Mark the subkey used to find a key.
* src/gpgme.h.in (struct _gpgme_subkey): New flag subkey_match.
* src/keylist.c (spacep): New.
(op_data_t): Add field requested_subkey.
(release_op_data): Free it.
(exact_match_pattern): New.
(maybe_setup_for_requested_subkey): New.
(gpgme_op_keylist_start): Call it here.
(gpgme_op_keylist_ext_start): Call it for each pattern until one
found.
(gpgme_op_keylist_next): Set the subkey_match field.
---
This is needed for
GnuPG-bug-id: 3325
Diffstat (limited to 'src/gpgme.h.in')
| -rw-r--r-- | src/gpgme.h.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in index 69d9f54c..e56c293d 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -590,8 +590,11 @@ struct _gpgme_subkey /* The compliance mode (is_de_vs) has not yet been approved. */ unsigned int beta_compliance : 1; + /* The key was found by an exact fingerprint match on this subkey. */ + unsigned int subkey_match : 1; + /* Internal to GPGME, do not use. */ - unsigned int _unused : 16; + unsigned int _unused : 15; /* Public key algorithm supported by this subkey. */ gpgme_pubkey_algo_t pubkey_algo; |
