diff options
author | Daniel Kahn Gillmor <[email protected]> | 2014-09-25 18:45:37 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-09-25 20:05:29 +0000 |
commit | 371c2b14b0347209efd23b4e54e1981a12d7aeab (patch) | |
tree | 41a8fade58574e0f25bc492bf6690b2808a3eba8 /g10/main.h | |
parent | build: Change urlbase of getswdb.sh. (diff) | |
download | gnupg-371c2b14b0347209efd23b4e54e1981a12d7aeab.tar.gz gnupg-371c2b14b0347209efd23b4e54e1981a12d7aeab.zip |
gpg: Warn about (but don't fail) on scdaemon options in gpg.conf.
* g10/gpg.c: Add config options that should belong in scdaemon.conf
* g10/main.h, g10/misc.c (obsolete_scdaemon_option): New.
--
In gpg2, the following options are only relevant for scdaemon:
reader-port
ctapi-driver
pcsc-driver
disable-ccid
but in gpg1, they are options for gpg itself.
Some users of gpg1 might have these options in their
~/.gnupg/gpg.conf, which causes gpg2 to fail hard if it reads that
config file.
gpg2 should not fail hard, though giving a warning (and suggesting a
move to scdaemon.conf) seems OK.
This patch does *not* reintroduce any documentation for these options
in gpg.texi, even to indicate that they are "dummy" options, since
scdaemon.texi contains the appropriate documentation.
Debian-bug-id: 762844
- Program names factored out from obsolete_scdaemon_option to make
reuse without new translations easier. -wk
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h index 44c447866..ad528b439 100644 --- a/g10/main.h +++ b/g10/main.h @@ -136,6 +136,8 @@ void deprecated_warning(const char *configname,unsigned int configlineno, void deprecated_command (const char *name); void obsolete_option (const char *configname, unsigned int configlineno, const char *name); +void obsolete_scdaemon_option (const char *configname, + unsigned int configlineno, const char *name); int string_to_cipher_algo (const char *string); int string_to_digest_algo (const char *string); |