diff options
author | Ingo Klöcker <[email protected]> | 2025-05-14 09:16:28 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2025-05-14 09:16:28 +0000 |
commit | 15ae7da74bc403d19df8d3ca3c0176b7dac98e18 (patch) | |
tree | 7f5a2eef79e01a3bc38aac03aacc1a8ba1235a2b | |
parent | Add algorithm, usage and expire also if only the group flag is set (diff) | |
download | gpgme-master.tar.gz gpgme-master.zip |
* src/engine-gpg.c (gpg_add_algo_usage_expire): Add "default" as
algorithm argument if algo is NULL or an empty string.
--
-rw-r--r-- | src/engine-gpg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine-gpg.c b/src/engine-gpg.c index 483eda74..b3399027 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -2885,13 +2885,13 @@ gpg_add_algo_usage_expire (engine_gpg_t gpg, gpg_error_t err; /* This condition is only required to allow the use of gpg < 2.1.16 */ - if (algo + if ((algo && *algo) || (flags & (GPGME_CREATE_SIGN | GPGME_CREATE_ENCR | GPGME_CREATE_CERT | GPGME_CREATE_AUTH | GPGME_CREATE_GROUP | GPGME_CREATE_NOEXPIRE)) || expires) { - err = add_arg (gpg, algo? algo : "default"); + err = add_arg (gpg, (algo && *algo)? algo : "default"); if (!err) { char tmpbuf[6*5+1]; |