aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-06-05 08:00:38 +0000
committerWerner Koch <[email protected]>2024-06-05 08:01:36 +0000
commit465ea9116d1f9467814143ed35b515034a849e86 (patch)
tree12717a50da05875d88b8ea3f6fe5011d8f7fd283 /g10/keydb.h
parentgpg: Implement the LDAP AKL method. (diff)
downloadgnupg-465ea9116d1f9467814143ed35b515034a849e86.tar.gz
gnupg-465ea9116d1f9467814143ed35b515034a849e86.zip
gpg: Autoload designated revoker key and ADSK when needed.
* g10/options.h (opt): Move the definition of struct akl to global scope. * g10/keydb.h (enum get_pubkey_modes): Add GET_PUBKEY_TRY_LDAP. * g10/getkey.c (get_pubkey_byname): Implement GET_PUBKEY_BYNAME. * g10/keygen.c (prepare_desig_revoker): Use it here. (prepare_adsk): and here. -- The revoker key is required before we create it along with a new key. This is because the we need to know the algo and also to make sure that the key really exists. GnuPG-bug-id: 7133
Diffstat (limited to 'g10/keydb.h')
-rw-r--r--g10/keydb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index d43d1bcaa..9cb63cf73 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -372,7 +372,8 @@ enum get_pubkey_modes
{
GET_PUBKEY_NORMAL = 0,
GET_PUBKEY_NO_AKL = 1,
- GET_PUBKEY_NO_LOCAL = 2
+ GET_PUBKEY_NO_LOCAL = 2,
+ GET_PUBKEY_TRY_LDAP = 3
};
/* Find a public key identified by NAME. */