diff options
author | Werner Koch <[email protected]> | 2007-01-30 20:16:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-01-30 20:16:28 +0000 |
commit | 7eec2efa66b55eab51e20d0fcc606763081d0024 (patch) | |
tree | 87dae67ea711626b9831caa374a3763ce2b7bf14 /g10/misc.c | |
parent | jnlib/ (diff) | |
download | gnupg-7eec2efa66b55eab51e20d0fcc606763081d0024.tar.gz gnupg-7eec2efa66b55eab51e20d0fcc606763081d0024.zip |
Added LIBINTL to more Makefile targets.
doc/
* com-certs.pem: Added the current root certifcates of D-Trust and
S-Trust.
g10/
* status.c (write_status_begin_signing): New.
* sign.c (sign_file, sign_symencrypt_file): Call it.
* textfilter.c (copy_clearsig_text): Call it.
* call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
required.
* gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
warning.
* misc.c (obsolete_option): New.
Diffstat (limited to 'g10/misc.c')
-rw-r--r-- | g10/misc.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c index bf32228c3..50bb6af13 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -469,6 +469,10 @@ openpgp_pk_algo_usage ( int algo ) int openpgp_md_test_algo( int algo ) { + /* Note: If the list of actual supported OpenPGP algorithms changes, + make sure that our hard coded values at + print_status_begin_signing() gets updated. */ + if (algo < 0 || algo > 110) return gpg_error (GPG_ERR_DIGEST_ALGO); return gcry_md_test_algo (algo); @@ -737,6 +741,19 @@ deprecated_command (const char *name) } +void +obsolete_option (const char *configname, unsigned int configlineno, + const char *name) +{ + if(configname) + log_info (_("%s:%u: obsolete option \"%s\" - it has no effect\n"), + configname, configlineno, name); + else + log_info (_("WARNING: \"%s\" is an obsolete option - it has no effect\n"), + name); +} + + /* * Wrapper around gcry_cipher_map_name to provide a fallback using the * "Sn" syntax as used by the preference strings. |