1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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
(cherry picked from commit 465ea9116d)
This commit is contained in:
Werner Koch 2024-06-05 10:00:38 +02:00
parent c6cecbd89a
commit 330354972a
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 42 additions and 27 deletions

View file

@ -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. */