mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
agent: Print a warning for obsolete options.
* g10/misc.c (obsolete_scdaemon_option): Move to * common/miscellaneous.c (obsolete_option): ... here. * agent/gpg-agent.c (main): Use obsolete_option for the 3 obsolete options. -- GnuPG-bug-id: 2016 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
685b782a18
commit
010d26a85b
5 changed files with 24 additions and 18 deletions
|
@ -104,6 +104,7 @@ setup_libgcrypt_logging (void)
|
|||
gcry_set_outofcore_handler (my_gcry_outofcore_handler, NULL);
|
||||
}
|
||||
|
||||
|
||||
/* A wrapper around gcry_cipher_algo_name to return the string
|
||||
"AES-128" instead of "AES". Given that we have an alias in
|
||||
libgcrypt for it, it does not harm to too much to return this other
|
||||
|
@ -122,6 +123,19 @@ gnupg_cipher_algo_name (int algo)
|
|||
}
|
||||
|
||||
|
||||
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%s\" is an obsolete option - it has no effect\n"),
|
||||
"--", name);
|
||||
}
|
||||
|
||||
|
||||
/* Decide whether the filename is stdout or a real filename and return
|
||||
* an appropriate string. */
|
||||
const char *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue