gnupg/agent
Werner Koch 1aaadede76
agent: Show "no secret key" instead of "card removed".
* agent/findkey.c (agent_key_from_file): Check the error of
read_key_file again.
* agent/pkdecrypt.c (agent_pkdecrypt): Restore error if no card was
found.  Also remove useless condition.
--

The first patch fixes a likely merge error.  The second is about the
actual return code: If we have no smardcard but simply try to decrypt
with the current smartcard we should return the originla error code.

GnuPG-bug-id: 5170
Fixes-commit: eda3c688fc
2023-03-01 16:49:40 +01:00
..
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
Makefile.am build: Remove Windows CE support. 2022-12-09 14:06:08 +09:00
agent.h ssh: Allow to define the order in which keys are returned. 2023-02-01 09:27:28 +01:00
all-tests.scm tests: Support semihosted environment. 2022-12-01 13:59:06 +09:00
cache.c agent: Fix SEGV when debuging for cache enabled. 2020-10-09 13:57:29 +09:00
call-daemon.c agent,gpg,tools: Fix use of log_get_fd. 2022-06-22 13:34:06 +09:00
call-pinentry.c agent: Do not consider --min-passphrase-len for the magic wand. 2022-06-27 18:06:40 +02:00
call-scd.c agent: Handle USAGE information in KEYINFO. 2022-05-26 14:01:03 +09:00
call-tpm2d.c agent: always use hexgrip when storing key password 2022-01-24 22:22:05 +01:00
command-ssh.c ssh: Allow to define the order in which keys are returned. 2023-02-01 09:27:28 +01:00
command.c agent: Allow arguments to "scd serialno" in restricted mode. 2022-12-12 14:43:01 +01:00
cvt-openpgp.c agent: Fix import of protected v5 keys. 2022-12-01 10:12:21 +01:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c agent: Move confirmation handling into findkey.c. 2022-05-20 13:43:08 +09:00
divert-tpm2.c agent: Move confirmation handling into findkey.c. 2022-05-20 13:43:08 +09:00
findkey.c agent: Show "no secret key" instead of "card removed". 2023-03-01 16:49:40 +01:00
genkey.c agent,common,dirmngr,tests,tools: Remove spawn PREEXEC argument. 2022-10-20 14:19:19 +09:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c common: Slight redefinition of nvc_get_boolean. 2023-01-24 10:07:02 +01:00
keyformat.txt ssh: Allow to define the order in which keys are returned. 2023-02-01 09:27:28 +01:00
learncard.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
pkdecrypt.c agent: Show "no secret key" instead of "card removed". 2023-03-01 16:49:40 +01:00
pksign.c agent: Move confirmation handling into findkey.c. 2022-05-20 13:43:08 +09:00
preset-passphrase.c Use gpgrt's new option parser for the tools. 2020-02-21 20:28:47 +01:00
protect-tool.c agent: Avoid memory leaks in error code paths. 2021-05-20 13:38:07 +02:00
protect.c agent,dirmngr,gpg,scd: Clean up for modern compiler. 2022-09-14 12:08:58 +09:00
sexp-secret.c agent: Avoid uninitialized buffer. 2021-11-12 15:36:02 +09:00
t-protect.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
trans.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
trustlist.c agent: Allow trustlist on Windows in Unicode homedirs. 2022-11-10 14:55:38 +01:00
w32main.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00