diff options
author | Werner Koch <[email protected]> | 2017-07-28 15:46:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-28 15:46:43 +0000 |
commit | efe187e8a2b583defdcd9d4b96e3dc83f95bef0d (patch) | |
tree | 2de5ecaa06fb5e45c0a3c3b11f9962cd186140ac /g10/sign.c | |
parent | agent: For OCB key files return Bad Passprase instead of Checksum Error. (diff) | |
download | gnupg-efe187e8a2b583defdcd9d4b96e3dc83f95bef0d.tar.gz gnupg-efe187e8a2b583defdcd9d4b96e3dc83f95bef0d.zip |
gpg,sm: String changes for compliance diagnostics.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/sign.c')
-rw-r--r-- | g10/sign.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/g10/sign.c b/g10/sign.c index f7dd974fe..4cf0cd39a 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -281,8 +281,7 @@ do_sign (ctrl_t ctrl, PKT_public_key *pksk, PKT_signature *sig, /* Check compliance. */ if (! gnupg_digest_is_allowed (opt.compliance, 1, mdalgo)) { - log_error (_("you may not use digest algorithm '%s'" - " while in %s mode\n"), + log_error (_("digest algorithm '%s' may not be used in %s mode\n"), gcry_md_algo_name (mdalgo), gnupg_compliance_option_string (opt.compliance)); err = gpg_error (GPG_ERR_DIGEST_ALGO); @@ -292,7 +291,7 @@ do_sign (ctrl_t ctrl, PKT_public_key *pksk, PKT_signature *sig, if (! gnupg_pk_is_allowed (opt.compliance, PK_USE_SIGNING, pksk->pubkey_algo, pksk->pkey, nbits_from_pk (pksk), NULL)) { - log_error (_("key %s not suitable for signing while in %s mode\n"), + log_error (_("key %s may not be used for signing in %s mode\n"), keystr_from_pk (pksk), gnupg_compliance_option_string (opt.compliance)); err = gpg_error (GPG_ERR_PUBKEY_ALGO); |