diff options
author | Ingo Klöcker <[email protected]> | 2025-05-13 12:54:11 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2025-05-13 12:54:11 +0000 |
commit | 8f08ca0e382085f9caba8ff969aa1ce66b6a84c8 (patch) | |
tree | ed1f4e23162dbd39b153d540b2e93b10ea780db1 | |
parent | Add GPGME_CREATE_GROUP flag for gpgme_op_createkey and _createsubkey. (diff) | |
download | gpgme-8f08ca0e382085f9caba8ff969aa1ce66b6a84c8.tar.gz gpgme-8f08ca0e382085f9caba8ff969aa1ce66b6a84c8.zip |
Add algorithm, usage and expire also if only the group flag is set
* src/engine-gpg.c (gpg_add_algo_usage_expire): Check flags for
GPGME_CREATE_GROUP flag.
--
With this change a cert-only group-owned key will be created if only the
group flag is set.
-rw-r--r-- | src/engine-gpg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine-gpg.c b/src/engine-gpg.c index e41fb69a..483eda74 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -2888,7 +2888,7 @@ gpg_add_algo_usage_expire (engine_gpg_t gpg, if (algo || (flags & (GPGME_CREATE_SIGN | GPGME_CREATE_ENCR | GPGME_CREATE_CERT | GPGME_CREATE_AUTH - | GPGME_CREATE_NOEXPIRE)) + | GPGME_CREATE_GROUP | GPGME_CREATE_NOEXPIRE)) || expires) { err = add_arg (gpg, algo? algo : "default"); |